From 5d0aca27018a763ca39cb3a9a9137807cdb66931 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 14 Jan 2011 19:26:25 +0100 Subject: [PATCH] Run "make firmware_install" if CONFIG_FIRMWARE_IN_KERNEL != y (bug #244651) --- gen_compile.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gen_compile.sh b/gen_compile.sh index 9fe1e1f..6e1b243 100755 --- a/gen_compile.sh +++ b/gen_compile.sh @@ -303,6 +303,15 @@ compile_kernel() { compile_generic "${KERNEL_MAKE_DIRECTIVE_2}" kernel fi + local firmware_in_kernel_line=`fgrep CONFIG_FIRMWARE_IN_KERNEL "${KERNEL_DIR}"/.config` + if [ -n "${firmware_in_kernel_line}" -a "${firmware_in_kernel_line}" != CONFIG_FIRMWARE_IN_KERNEL=y ] + then + print_info 1 " >> Installing firmware ('make firmware_install') due to CONFIG_FIRMWARE_IN_KERNEL != y..." + compile_generic "firmware_install" kernel + else + print_info 1 " >> Not installing firmware as it's included in the kernel already (CONFIG_FIRMWARE_IN_KERNEL=y)..." + fi + local tmp_kernel_binary=$(find_kernel_binary ${KERNEL_BINARY}) local tmp_kernel_binary2=$(find_kernel_binary ${KERNEL_BINARY_2}) if [ -z "${tmp_kernel_binary}" ] -- 2.26.2