generic-poky/meta/recipes-kernel
Bruce Ashfield 53cc748b93 linux-libc-headers: fix headers install in long path name environments
If a build is started in a deep directory structure, or in a path with
long directory names the installation of linux-libc-headers will fail
with:

  | make[2]: execvp: /bin/sh: Argument list too long
  | make[2]: ***

>From within the kernel Makefiles themselves.

The solution is to patch the kernel build rules with the following
change:

[
    scripts/Makefile.headersinst: install headers from scratch file

    If headers_install is executed from a deep/long directory structure, the
    shell's maximum argument length can be execeeded, which breaks the operation
    with:

    | make[2]: execvp: /bin/sh: Argument list too long
    | make[2]: ***

    By dumping the input files to a scratch file and using xargs to read the
    input list from the scratch file, we can avoid blowing out the maximum
    argument size and install headers in a long path name environment.
]

Until this change, or a similar one, is merged into the mainline kernel, this
change should be applied to any 3.7 or greater libc-headers build.

Upstream-status: Pending

(From OE-Core rev: 1e63a3b7b7915d40bb59976a02b9f53968997ed3)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-01-10 23:53:51 +00:00
..
blktrace blktrace: essentially rework the recipe, obey LDFLAGS 2012-12-26 11:34:06 +00:00
dtc dtc.inc: fix for libdir == /usr/lib64 2012-07-11 11:35:52 +01:00
kern-tools kern-tools: report missing config fragments by name 2012-11-24 15:12:31 +00:00
kexec kexec-tools: Add dependency on xz 2012-10-18 12:13:45 +01:00
kmod kmod: fix git repo URL 2012-11-20 15:31:47 +00:00
latencytop latencytop: add missing signed-off-by and re-add upstream status 2012-12-03 16:38:35 +00:00
linux linux-yocto/3.4: update to v3.4.24 2013-01-07 19:26:29 +00:00
linux-firmware linux-firmware: split out ralink drivers 2012-12-17 17:24:55 +00:00
linux-libc-headers linux-libc-headers: fix headers install in long path name environments 2013-01-10 23:53:51 +00:00
lttng lttng: support more compatible hosts 2012-10-18 12:13:47 +01:00
lttng-2.0 lttng-2.0: components updated to version 2.1.0 2013-01-10 23:43:10 +00:00
modutils-initscripts module-init-tools: Delete 2012-05-07 16:42:47 +01:00
oprofile oprofile: updated to 0.9.8 2013-01-07 14:30:50 +00:00
perf iperf: pass in target path vars 2012-12-17 17:24:54 +00:00
powertop powertop: cleanup update-alternatives deprecated code 2012-08-15 14:26:30 +01:00
sysprof sysprof: Fixes undefined  reference to `rmb' 2012-11-26 20:59:20 +00:00
systemtap Update the SRC_URI in systemtap recipe 2012-12-14 13:11:39 +00:00
trace-cmd trace-cmd: Simplify SRC_URI patch entry 2012-11-21 16:56:02 +00:00
update-modules update-modules: update script to read /etc/modules-load.d/ directory 2012-03-23 17:47:42 +00:00