From 4d9ef69c59cc700e140ce3bb4159c7341890b6e7 Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Tue, 14 Aug 2018 01:37:10 +0200 Subject: [PATCH] meta-environment: Insert comment and make sure to overwrite previous versions. --- recipes-core/meta/meta-environment.bbappend | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-core/meta/meta-environment.bbappend b/recipes-core/meta/meta-environment.bbappend index 1bafdcb..26afb9c 100644 --- a/recipes-core/meta/meta-environment.bbappend +++ b/recipes-core/meta/meta-environment.bbappend @@ -4,6 +4,7 @@ fakeroot do_create_kc_sdk_file() { mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d script=${D}${SDKPATHNATIVE}/environment-setup.d/kcbsp.sh + echo '# KC SDK settings section' > $script echo 'basename -- "$0$ZSH_VERSION" | grep -q "^environment-setup$" && echo "$SHELL" | grep -q "/\(\([bd]ash\)\|\([k]sh\)\)$" && ENV=$0 POSIXLY_CORRECT=1 exec $SHELL -i' >> $script echo 'basename -- "$0$ZSH_VERSION" | grep -q "^environment-setup$" && echo "Usage: . $0" && exit 1' >> $script echo 'echo "Applying environment settings..."' >> $script -- 2.39.5