summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-11-01 07:15:49 +0000
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-11-01 07:15:49 +0000
commit5a03b0a874a56a1e151b05588ad3b190657aa51c (patch)
tree64a5ab6c4b51fb073bd8fe1d7b2e6d8e44a184e5 /target
parent7564e5cb3796be98a75f35f2b8fffbe1b52266fa (diff)
[sdk] Fix feeds.conf.default when no SVN info present
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34051 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/sdk/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 51bf47b42..d6c42b052 100644
--- a/target/sdk/Makefile
+++ b/target/sdk/Makefile
@@ -52,8 +52,9 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
./files/package/rules.mk \
$(TOPDIR)/package/Makefile \
$(SDK_BUILD_DIR)/package/
- echo "src-svn trunk $(SVN_PACKAGE_URL)" \
- > $(SDK_BUILD_DIR)/feeds.conf.default
+ $(if $(SVN_PACKAGE_URL),echo "src-svn trunk $(SVN_PACKAGE_URL)" \
+ > $(SDK_BUILD_DIR)/feeds.conf.default,\
+ -rm -f $(SDK_BUILD_DIR)/feeds.conf.default)
cat $(TOPDIR)/feeds.conf.default \
>> $(SDK_BUILD_DIR)/feeds.conf.default
$(SED) 's,^# REVISION:=.*,REVISION:=$(REVISION),g' $(SDK_BUILD_DIR)/include/version.mk