diff options
Diffstat (limited to 'buildconf')
-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" |