linux: fix oldconfig handling

make oldconfig is very noisy when config options are missing and
produces a lot of errors as it's trying to read from stdin which
is not available during build.

Fix this by piping yes "" to it's stdin to select default kernel
options.

Also run "make listnewconfig" before that to get a summary of the
additional options set like it's done eg in Debian.

Signed-off-by: Matthias Reichl <hias@horus.com>
This commit is contained in:
Matthias Reichl 2022-07-14 12:48:21 +02:00
parent 0008ab5fd3
commit 1e13c1940b

View File

@ -170,7 +170,8 @@ pre_make_target() {
${PKG_BUILD}/scripts/config --set-str CONFIG_EXTRA_FIRMWARE_DIR "external-firmware"
fi
kernel_make oldconfig
kernel_make listnewconfig
yes "" | kernel_make oldconfig > /dev/null
if [ -f "${DISTRO_DIR}/${DISTRO}/kernel_options" ]; then
while read OPTION; do