Force remove of the symbolic link build_arm/linux, especially when switching from...
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 5 Aug 2006 00:55:41 +0000 (00:55 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 5 Aug 2006 00:55:41 +0000 (00:55 +0000)
(ex : switching from brcm-2.4 to au1000-2.6)

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4462 3c298f89-4303-0410-b956-a3cf2f4a3e73

include/kernel-build.mk

index 9af1142..bf6f2c2 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