[uClibc-cvs] svn commit: trunk/buildroot/toolchain/kernel-headers
andersen at uclibc.org
andersen at uclibc.org
Thu Jun 23 23:25:26 UTC 2005
Author: andersen
Date: 2005-06-23 17:25:25 -0600 (Thu, 23 Jun 2005)
New Revision: 10572
Log:
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
Modified:
trunk/buildroot/toolchain/kernel-headers/kernel-headers.mk
Changeset:
Modified: trunk/buildroot/toolchain/kernel-headers/kernel-headers.mk
===================================================================
--- trunk/buildroot/toolchain/kernel-headers/kernel-headers.mk 2005-06-23 22:58:51 UTC (rev 10571)
+++ trunk/buildroot/toolchain/kernel-headers/kernel-headers.mk 2005-06-23 23:25:25 UTC (rev 10572)
@@ -78,6 +78,7 @@
$(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))
More information about the uClibc-cvs
mailing list