summaryrefslogtreecommitdiffstats
path: root/scripts/crosstap
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/crosstap')
-rwxr-xr-xscripts/crosstap11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/crosstap b/scripts/crosstap
index 58317cf91c..39739bba3a 100755
--- a/scripts/crosstap
+++ b/scripts/crosstap
@@ -104,13 +104,19 @@ STAGING_BINDIR_TOOLCHAIN=$(echo "$BITBAKE_VARS" | grep ^STAGING_BINDIR_TOOLCHAIN
104 | cut -d '=' -f2 | cut -d '"' -f2) 104 | cut -d '=' -f2 | cut -d '"' -f2)
105STAGING_BINDIR_TOOLPREFIX=$(echo "$BITBAKE_VARS" | grep ^TARGET_PREFIX \ 105STAGING_BINDIR_TOOLPREFIX=$(echo "$BITBAKE_VARS" | grep ^TARGET_PREFIX \
106 | cut -d '=' -f2 | cut -d '"' -f2) 106 | cut -d '=' -f2 | cut -d '"' -f2)
107SYSTEMTAP_HOST_INSTALLDIR=$(echo "$BITBAKE_VARS" | grep ^STAGING_DIR_NATIVE \
108 | cut -d '=' -f2 | cut -d '"' -f2)
109TARGET_ARCH=$(echo "$BITBAKE_VARS" | grep ^TRANSLATED_TARGET_ARCH \ 107TARGET_ARCH=$(echo "$BITBAKE_VARS" | grep ^TRANSLATED_TARGET_ARCH \
110 | cut -d '=' -f2 | cut -d '"' -f2) 108 | cut -d '=' -f2 | cut -d '"' -f2)
111TARGET_KERNEL_BUILDDIR=$(echo "$BITBAKE_VARS" | grep ^B= \ 109TARGET_KERNEL_BUILDDIR=$(echo "$BITBAKE_VARS" | grep ^B= \
112 | cut -d '=' -f2 | cut -d '"' -f2) 110 | cut -d '=' -f2 | cut -d '"' -f2)
113 111
112# Build and populate the recipe-sysroot-native with systemtap-native
113pushd $PWD
114cd $BUILDDIR
115BITBAKE_VARS=`bitbake -e systemtap-native`
116popd
117SYSTEMTAP_HOST_INSTALLDIR=$(echo "$BITBAKE_VARS" | grep ^STAGING_DIR_NATIVE \
118 | cut -d '=' -f2 | cut -d '"' -f2)
119
114systemtap_target_arch "$TARGET_ARCH" 120systemtap_target_arch "$TARGET_ARCH"
115 121
116if [ ! -d $TARGET_KERNEL_BUILDDIR ] || 122if [ ! -d $TARGET_KERNEL_BUILDDIR ] ||
@@ -125,6 +131,7 @@ if [ ! -f $SYSTEMTAP_HOST_INSTALLDIR/usr/bin/stap ]; then
125 echo -e "\nError: Native (host) systemtap not found." 131 echo -e "\nError: Native (host) systemtap not found."
126 echo -e "Did you accidentally build a local non-sdk image? (or forget to" 132 echo -e "Did you accidentally build a local non-sdk image? (or forget to"
127 echo -e "add 'tools-profile' to EXTRA_IMAGE_FEATURES in your local.conf)?" 133 echo -e "add 'tools-profile' to EXTRA_IMAGE_FEATURES in your local.conf)?"
134 echo -e "You can also: bitbake -c addto_recipe_sysroot systemtap-native"
128 setup_usage 135 setup_usage
129 exit 1 136 exit 1
130fi 137fi