summaryrefslogtreecommitdiffstats
path: root/toolchain/kernel-headers
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-06-23 23:25:25 +0000
committerEric Andersen <andersen@codepoet.org>2005-06-23 23:25:25 +0000
commit491b44e86a8d85823364447eb26a51a48cab6f84 (patch)
treeb2428e8aa71774467e324347eaf779dfae3a6e50 /toolchain/kernel-headers
parentea804ca00712530c01fb250ee16a96de32ce6a02 (diff)
downloadbuildroot-novena-491b44e86a8d85823364447eb26a51a48cab6f84.tar.gz
buildroot-novena-491b44e86a8d85823364447eb26a51a48cab6f84.zip
If you update the kernel headers tarball and run make against an already built
buildroot, the header files will be re-extracted, but they will not be put in exactly the right place if the name of the extracted directory includes the kernel version numbers. For example, linux-libc-headers-2.4.25.tar.bz2 will be extracted to $(TOOLCHAIN_BUILD_DIR)/linux-libc-headers-2.4.25, and then the mv command will move the newly extracted headers into the already existing $(TOOLCHAIN_BUILD_DIR)/linux directory, instead of replacing that directory as desired. The fix is to first remove the $(TOOLCHAIN_BUILD_DIR)/linux directory and then do the mv command. http://bugs.busybox.net/view.php?id=296
Diffstat (limited to 'toolchain/kernel-headers')
-rw-r--r--toolchain/kernel-headers/kernel-headers.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolchain/kernel-headers/kernel-headers.mk b/toolchain/kernel-headers/kernel-headers.mk
index 56a0566e9..e9ca5dc04 100644
--- a/toolchain/kernel-headers/kernel-headers.mk
+++ b/toolchain/kernel-headers/kernel-headers.mk
@@ -78,6 +78,7 @@ $(DL_DIR)/$(LINUX_HEADERS_SOURCE):
$(WGET) -P $(DL_DIR) $(LINUX_HEADERS_SITE)/$(LINUX_HEADERS_SOURCE)
$(LINUX_HEADERS_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
+ rm -rf $(LINUX_HEADERS_DIR)
mkdir -p $(TOOL_BUILD_DIR)
bzcat $(DL_DIR)/$(LINUX_HEADERS_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
ifneq ($(LINUX_HEADERS_UNPACK_DIR),$(LINUX_HEADERS_DIR))