mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 20:14:27 +01:00
build: accept custom kernel config fragment files
This commit is contained in:
15
build
15
build
@@ -145,14 +145,15 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"${post_script_args}\"
|
|||||||
echo "error: -K: file does not exist: ${linux_kernel_custom_config_file}" 1>&2
|
echo "error: -K: file does not exist: ${linux_kernel_custom_config_file}" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
default_config_fragments=
|
||||||
else
|
else
|
||||||
d=../kernel_config_fragment
|
default_config_fragments="${d}/min ${d}/default"
|
||||||
f="${d}/min"
|
fi
|
||||||
printf "BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES=\"${f} ${d}/default ${kernel_config_fragment_cli_file}\"\n" >> "$config_file"
|
d=../kernel_config_fragment
|
||||||
if "${linux_reconfigure}"; then
|
printf "BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES=\"${default_config_fragments} ${kernel_config_fragment_cli_file}\"\n" >> "$config_file"
|
||||||
# https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
|
if "${linux_reconfigure}"; then
|
||||||
touch "$f"
|
# https://stackoverflow.com/questions/49260466/why-when-i-change-br2-linux-kernel-custom-config-file-and-run-make-linux-reconfi
|
||||||
fi
|
touch "${d}/min"
|
||||||
fi
|
fi
|
||||||
if [ "$arch" = 'mips64' ]; then
|
if [ "$arch" = 'mips64' ]; then
|
||||||
# Workaround for:
|
# Workaround for:
|
||||||
|
|||||||
Reference in New Issue
Block a user