summaryrefslogtreecommitdiff
path: root/target/sdk/Makefile
diff options
context:
space:
mode:
authorDaniel Dickinson <crazycshore@gmail.com>2012-11-01 07:15:49 +0000
committerDaniel Dickinson <crazycshore@gmail.com>2012-11-01 07:15:49 +0000
commit7e0f8049fa9480531da54eadb934414222caf72a (patch)
treebe463131ed65a98529d1cb9973293e3351d52c34 /target/sdk/Makefile
parent6c8c3ee77d98dcad2ad694bc7e5e53a0601963b8 (diff)
downloadmtk-20170518-7e0f8049fa9480531da54eadb934414222caf72a.zip
mtk-20170518-7e0f8049fa9480531da54eadb934414222caf72a.tar.gz
mtk-20170518-7e0f8049fa9480531da54eadb934414222caf72a.tar.bz2
Fix feeds.conf.default when no SVN info present
SVN-Revision: 34051
Diffstat (limited to 'target/sdk/Makefile')
-rw-r--r--target/sdk/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/sdk/Makefile b/target/sdk/Makefile
index 51bf47b..d6c42b0 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