]> Pileus Git - ~andy/linux/commit
kbuild: fix make headers_install when path is too long
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 29 Apr 2013 12:15:51 +0000 (14:15 +0200)
committerMichal Marek <mmarek@suse.cz>
Fri, 17 May 2013 20:10:35 +0000 (22:10 +0200)
commitc0ff68f1611d6855a06d672989ad5cfea160a4eb
tree66ce2b9af5930b2a0568d272dd93cbf4890693d8
parentf722406faae2d073cc1d01063d1123c35425939e
kbuild: fix make headers_install when path is too long

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]: ***

Instead of passing each files name with the entire path, I give only the file
name without the source path and give this path as a new argument to
headers_install.pl.

Because there is three possible paths, I have tree input-files list, one per
path.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Tested-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/Makefile.headersinst
scripts/headers_install.sh