[sdk] Fix feeds.conf.default when no SVN info present
authorDaniel Dickinson <crazycshore@gmail.com>
Thu, 1 Nov 2012 07:15:49 +0000 (07:15 +0000)
committerDaniel Dickinson <crazycshore@gmail.com>
Thu, 1 Nov 2012 07:15:49 +0000 (07:15 +0000)
SVN-Revision: 34051

target/sdk/Makefile

index 51bf47b..d6c42b0 100644 (file)
@@ -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