Lets make sure that we are really in a build folder if for some reason we end up at a top layer script issue and we mess up the build machine.
Signed-off-by: Nishanth Menon <[email protected]> --- lib/oesdk/config-build-env | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/oesdk/config-build-env b/lib/oesdk/config-build-env index 11fab2de6097..058823562693 100644 --- a/lib/oesdk/config-build-env +++ b/lib/oesdk/config-build-env @@ -21,6 +21,13 @@ checkout_layer_scripts() { name=`basename $BUILD_ROOT` + # Paranoid check: Am I really a build folder? + amibuild=`echo $BUILD_ROOT|grep "build$"` + if [ -z "$amibuild" ]; then + echo "Something horrible has happened.. BUILD_ROOT=$BUILD_ROOT does'nt end with 'build'. maynot be build folder. Aborting!" + exit 1 + fi + if [ ! -d $name ] then git clone "$TI_SDK_OELAYER_SETUP" $name -- 2.32.0 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
