From 1e13c1940b25d68063ffafebd2c4cce687b69723 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Thu, 14 Jul 2022 12:48:21 +0200 Subject: [PATCH] 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 --- packages/linux/package.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/linux/package.mk b/packages/linux/package.mk index 513e29e679..1e5e5cffee 100644 --- a/packages/linux/package.mk +++ b/packages/linux/package.mk @@ -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