Skip to content

Commit 3e25212

Browse files
committed
Scripts: Allow 'out-of-tree' builds and fix option overrides
1 parent f1f66af commit 3e25212

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

config/options

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
[ -r build/config/options ] && . build/config/options
2-
[ -r build/config/options-doozer ] && . build/config/options-doozer
3-
[ -r build/config/options-jenkins ] && . build/config/options-jenkins
2+
43
. config/path

config/path

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
set -e
44

5+
#################################
6+
# Global settings #
7+
#################################
8+
9+
[ -r build/config/global-settings ] && . build/config/global-settings
10+
511
#################################
612
# Target system path definition #
713
#################################

scripts/Autobuild.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ echo "######################"
5252
# Build with the maximum speed (maybe we should try too without MAKECFLAGS set)
5353
DOOZER_CONCURRENCY_MAKE_LEVEL=$(echo $MAKEFLAGS |cut -d, -f2)
5454
echo "Using DOOZER_CONCURRENCY_MAKE_LEVEL=$DOOZER_CONCURRENCY_MAKE_LEVEL : MAKEFLAGS was $MAKEFLAGS"
55-
echo DOOZER_CONCURRENCY_MAKE_LEVEL=$DOOZER_CONCURRENCY_MAKE_LEVEL >> build/config/options-doozer
56-
echo "NO_DEBUG_PKG=yes" >> build/config/options-doozer
57-
echo "DOOZER_TARGET_CCACHE=/project/.ccache-$1" >> build/config/options-doozer
58-
echo "DO_NOT_SET_ROOT=yes" >> build/config/options-doozer
55+
echo DOOZER_CONCURRENCY_MAKE_LEVEL=$DOOZER_CONCURRENCY_MAKE_LEVEL >> build/config/global-settings
56+
echo "NO_DEBUG_PKG=yes" >> build/config/global-settings
57+
echo "DOOZER_TARGET_CCACHE=/project/.ccache-$1" >> build/config/global-settings
58+
echo "DO_NOT_SET_ROOT=yes" >> build/config/global-settings
5959

6060

6161
./scripts/loadcfg $1 || exit 1

scripts/kconfiggenerate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ cd $BUILD/kconfig-frontends-*
5151
# conf --silentoldconfig needs these folders
5252
mkdir -p include/config include/generated
5353

54-
${conf_tool} ${conf_tool_options} ../../../config/Kconfig.main
54+
${conf_tool} ${conf_tool_options} $ROOT/config/Kconfig.main
5555

0 commit comments

Comments
 (0)