diff options
author | Stefan Weil <sw@weilnetz.de> | 2009-08-03 10:54:04 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-07-25 10:39:27 +0200 |
commit | d0619fb02ce1464ccc0aa75ebf28c3b2e1c5e11e (patch) | |
tree | 5773ede2f1c601b489ecfd8b6094301d783d11a4 /toolchain/kernel-headers/Makefile | |
parent | 3f506bdbb08c0062cbbeac3c9409e479293493d3 (diff) | |
download | upstream-d0619fb02ce1464ccc0aa75ebf28c3b2e1c5e11e.tar.gz upstream-d0619fb02ce1464ccc0aa75ebf28c3b2e1c5e11e.tar.bz2 upstream-d0619fb02ce1464ccc0aa75ebf28c3b2e1c5e11e.zip |
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 <sw@weilnetz.de>
Diffstat (limited to 'toolchain/kernel-headers/Makefile')
-rw-r--r-- | toolchain/kernel-headers/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
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 |