From 045a6a34c51a436e864267f60501702ad6fdbcea Mon Sep 17 00:00:00 2001 From: Philippe Schenker Date: Thu, 9 Apr 2020 12:42:00 +0200 Subject: 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 --- buildconf/export | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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" -- cgit v1.2.3