diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2020-04-09 12:42:00 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2020-06-01 11:57:00 +0200 |
commit | d1c25d0ca76d3b0c32a5ffce0285572c13f0166f (patch) | |
tree | 761559149b5269aa601f4489b50ccace1b47fe1f | |
parent | 2288880b6767c1a211b0b911f699e173cb5f0713 (diff) |
buildconf: epxort: set use-head-next on integration branch by default
This addition checks if one is using the integration branch with repo
if that is true it will automatically append the correct use-head-next
setting. If this is for whatever reason not set it will tell the user
to not forget setting use-head-next on integration branch.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
(cherry picked from commit 045a6a34c51a436e864267f60501702ad6fdbcea)
-rw-r--r-- | buildconf/export | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/buildconf/export b/buildconf/export index 7508af8..11f9d8e 100644 --- a/buildconf/export +++ b/buildconf/export @@ -19,6 +19,21 @@ if [ $FIRST_TIME -eq 1 ]; then mkdir -p conf cp ../layers/meta-toradex-distro/buildconf/*.conf conf/ + if [ -f conf/local.conf -a \ + -z "$(grep use-head-next conf/local.conf)" -a \ + -z "$(grep -c "meta-toradex-bsp-common.git.*upstream" ../.repo/manifest.xml)" ] + then + { + echo "# This is needed when building on integration. With use-head-next you" + echo "# always get the newest kernel. Without use-head-next your build may fail." + echo "MACHINEOVERRIDES =. \"use-head-next:\"" + echo "" + } > conf/local.conf.new + + cat conf/local.conf >> conf/local.conf.new + mv conf/local.conf.new conf/local.conf + fi + echo "" $ECHO -e "\033[1mA sample conf/local.conf file has been created" $ECHO -e "Check and edit the file to adapt to your local needs\033[0m" |