1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 13:09:50 +00:00

oe-find-native-sysroot: add appopriate suggestion

right now, if it fails, the script tells the user to run bitbake foo
-caddto_recipe_sysroot. This works for native recipes but not things
like meta-ide. This patch checks whether the recipe is native and gives
out the appopriate warning.

(From OE-Core rev: fc61211efd57d1858954e5cd241fce58dee9d01b)

Signed-off-by: brian avery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
brian avery
2017-04-12 14:29:13 -07:00
committed by Richard Purdie
parent 4a0b6af446
commit c8b67a463f
+5 -2
View File
@@ -48,7 +48,6 @@ fi
# Global vars # Global vars
BITBAKE_E="" BITBAKE_E=""
OECORE_NATIVE_SYSROOT="" OECORE_NATIVE_SYSROOT=""
set_oe_native_sysroot(){ set_oe_native_sysroot(){
echo "Running bitbake -e $1" echo "Running bitbake -e $1"
BITBAKE_E="`bitbake -e $1`" BITBAKE_E="`bitbake -e $1`"
@@ -93,7 +92,11 @@ if [ ! -e "$OECORE_NATIVE_SYSROOT/" ]; then
echo "Error: $OECORE_NATIVE_SYSROOT doesn't exist." echo "Error: $OECORE_NATIVE_SYSROOT doesn't exist."
if [ "x$OECORE_DISTRO_VERSION" = "x" ]; then if [ "x$OECORE_DISTRO_VERSION" = "x" ]; then
echo "Have you run 'bitbake $1 -caddto_recipe_sysroot'?" if [[ $1 =~ .*native.* ]]; then
echo "Have you run 'bitbake $1 -caddto_recipe_sysroot'?"
else
echo "Have you run 'bitbake $1 '?"
fi
else else
echo "This shouldn't happen - something is wrong with your toolchain installation" echo "This shouldn't happen - something is wrong with your toolchain installation"
fi fi