From: Stefan Weil Date: Mon, 3 Aug 2009 08:54:04 +0000 (+0200) Subject: Remove existing old link before creating a new one X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d0619fb02ce1464ccc0aa75ebf28c3b2e1c5e11e;p=openwrt%2Fstaging%2Frobimarko.git Remove existing old link before creating a new one This is needed after a kernel update, otherwise the new link is written as linux/linux-$(LINUX_VERSION). Signed-off-by: Stefan Weil --- diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile index 68c83a065e..fa7d349baa 100644 --- a/toolchain/kernel-headers/Makefile +++ b/toolchain/kernel-headers/Makefile @@ -72,7 +72,8 @@ endef define Host/Prepare $(call Kernel/Prepare/Default) - ln -sf linux-$(LINUX_VERSION) $(BUILD_DIR_TOOLCHAIN)/linux + rm -f $(BUILD_DIR_TOOLCHAIN)/linux + ln -s linux-$(LINUX_VERSION) $(BUILD_DIR_TOOLCHAIN)/linux $(SED) 's/@expr length/@-expr length/' $(HOST_BUILD_DIR)/Makefile endef