Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [buildroot 0000296]: Minor issue in kernel-headers.mk when making ".unpacked" target
@ 2007-02-12 13:50 bugs at busybox.net
  0 siblings, 0 replies; only message in thread
From: bugs at busybox.net @ 2007-02-12 13:50 UTC (permalink / raw)
  To: buildroot


The following issue has been ASSIGNED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=296 
====================================================================== 
Reported By:                silacci
Assigned To:                buildroot
====================================================================== 
Project:                    buildroot
Issue ID:                   296
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             06-09-2005 07:55 PDT
Last Modified:              02-12-2007 05:50 PST
====================================================================== 
Summary:                    Minor issue in kernel-headers.mk when making
".unpacked" target
Description: 
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.

*** kernel-headers.mk.old       2005-06-09 09:47:06.000000000 -0500
--- kernel-headers.mk   2005-06-09 09:54:55.000000000 -0500
***************
*** 81,86 ****
--- 81,87 ----
        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))
+       rm -rf $(LINUX_HEADERS_DIR)
        mv $(LINUX_HEADERS_UNPACK_DIR) $(LINUX_HEADERS_DIR)
  endif
        touch $(LINUX_HEADERS_DIR)/.unpacked

  ifneq ($(LINUX_HEADERS_UNPACK_DIR),$(LINUX_HEADERS_DIR))
+       rm -rf $(LINUX_HEADERS_DIR)
        mv $(LINUX_HEADERS_UNPACK_DIR) $(LINUX_HEADERS_DIR)
  endif
        touch $(LINUX_HEADERS_DIR)/.unpacked


====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-09-05 07:55  silacci        New Issue                                    
06-23-05 20:12  andersen       Status                   assigned => closed  
06-23-05 20:12  andersen       Resolution               open => fixed       
02-12-07 05:50  vapier         Status                   closed => assigned  
02-12-07 05:50  vapier         Assigned To              uClibc => buildroot 
======================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-12 13:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-12 13:50 [Buildroot] [buildroot 0000296]: Minor issue in kernel-headers.mk when making ".unpacked" target bugs at busybox.net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox