From d0619fb02ce1464ccc0aa75ebf28c3b2e1c5e11e Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 3 Aug 2009 10:54:04 +0200 Subject: [PATCH] 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 --- toolchain/kernel-headers/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1