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 51bf47b420eae89741b284d460f4072e23f404a7..d6c42b0525f26a8962eabcfc00489a3b3fb42a3d 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