mirror of https://github.com/armbian/build.git
compilation: armbian-kernel: Do not make built-in drivers modules
The current script can overwrite drivers which are set as built-in in the board-specific config. This is not desirable. Add a check to ensure we do not convert built-in stuff into modules. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This commit is contained in:
parent
54dbbe2785
commit
c0da65087a
|
|
@ -367,8 +367,14 @@ function armbian_kernel_config__restore_enable_gpio_sysfs() {
|
||||||
#
|
#
|
||||||
function kernel_config_set_m() {
|
function kernel_config_set_m() {
|
||||||
declare module="$1"
|
declare module="$1"
|
||||||
display_alert "Enabling kernel module" "${module}=m" "debug"
|
state=$(./scripts/config --state "$module")
|
||||||
run_host_command_logged ./scripts/config --module "$module"
|
|
||||||
|
if [ "$state" == "y" ]; then
|
||||||
|
display_alert "${module} is already enabled as built-in"
|
||||||
|
else
|
||||||
|
display_alert "Enabling kernel module" "${module}=m" "debug"
|
||||||
|
run_host_command_logged ./scripts/config --module "$module"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function kernel_config_set_y() {
|
function kernel_config_set_y() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue