]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kconfig: let 'shell' return enough output for deep path names
authorBrenda Streiff <brenda.streiff@ni.com>
Fri, 28 Jan 2022 22:01:28 +0000 (16:01 -0600)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 7 Mar 2022 10:44:15 +0000 (11:44 +0100)
commitb352ce2280cc06612d90792cfe55b31de9b13ffc
tree639253cf39c87969f19cc9033477e20087c4c732
parent44736143714977b585974b3013c687a84b3d641d
kconfig: let 'shell' return enough output for deep path names

BugLink: https://bugs.launchpad.net/bugs/1963890
[ Upstream commit 8a4c5b2a6d8ea079fa36034e8167de87ab6f8880 ]

The 'shell' built-in only returns the first 256 bytes of the command's
output. In some cases, 'shell' is used to return a path; by bumping up
the buffer size to 4096 this lets us capture up to PATH_MAX.

The specific case where I ran into this was due to commit 1e860048c53e
("gcc-plugins: simplify GCC plugin-dev capability test"). After this
change, we now use `$(shell,$(CC) -print-file-name=plugin)` to return
a path; if the gcc path is particularly long, then the path ends up
truncated at the 256 byte mark, which makes the HAVE_GCC_PLUGINS
depends test always fail.

Signed-off-by: Brenda Streiff <brenda.streiff@ni.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
scripts/kconfig/preprocess.c