Force remove of the symbolic link build_arm/linux, especially when switching from...
authorFlorian Fainelli <florian@openwrt.org>
Sat, 5 Aug 2006 00:55:41 +0000 (00:55 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 5 Aug 2006 00:55:41 +0000 (00:55 +0000)
SVN-Revision: 4462

openwrt/include/kernel-build.mk

index 9af1142d331171b4fbe1dea612c1c033b850f419..bf6f2c2ecac886c4856bc6996c0461d060449a15 100644 (file)
@@ -79,6 +79,7 @@ modules: $(LINUX_DIR)/.modules_done
 packages: $(TARGETS)
 
 $(LINUX_DIR)/.linux-compile:
+       @rm -f $(BUILD_DIR)/linux
        ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux
        @$(MAKE) modules
        @$(MAKE) packages