autopilot: get settings via RUN_OPT_AUTOPILOT

If the variable RUN_OPT_AUTOPILOT is set the autopilot will override
the default RUN_OPT settings provided in build.conf.

Related to #1355.
This commit is contained in:
Josef Söntgen 2015-01-20 15:18:45 +01:00 committed by Christian Helmuth
parent 55bf0bb294
commit 026b5a66c9
1 changed files with 11 additions and 0 deletions

View File

@ -305,6 +305,17 @@ foreach platform $platforms {
exec echo "CUSTOM_CC = ccache \$(CROSS_DEV_PREFIX)gcc" >> $tools_conf
exec echo "CUSTOM_CXX = ccache \$(CROSS_DEV_PREFIX)g++" >> $tools_conf
}
if {[info exists ::env(RUN_OPT_AUTOPILOT)]} {
set kernel [exec echo $platform |& sed {s/_.*//}]
# lx_hybrid is a special case, it also uses boot_dir/linux
if {[string equal $kernel "lx"]} {
set kernel linux
}
exec echo "RUN_OPT=--include boot_dir/$kernel $::env(RUN_OPT_AUTOPILOT)" >> $build_conf
}
}