diff options
-rwxr-xr-x | scripts/crosstap | 11 |
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) |
105 | STAGING_BINDIR_TOOLPREFIX=$(echo "$BITBAKE_VARS" | grep ^TARGET_PREFIX \ | 105 | STAGING_BINDIR_TOOLPREFIX=$(echo "$BITBAKE_VARS" | grep ^TARGET_PREFIX \ |
106 | | cut -d '=' -f2 | cut -d '"' -f2) | 106 | | cut -d '=' -f2 | cut -d '"' -f2) |
107 | SYSTEMTAP_HOST_INSTALLDIR=$(echo "$BITBAKE_VARS" | grep ^STAGING_DIR_NATIVE \ | ||
108 | | cut -d '=' -f2 | cut -d '"' -f2) | ||
109 | TARGET_ARCH=$(echo "$BITBAKE_VARS" | grep ^TRANSLATED_TARGET_ARCH \ | 107 | TARGET_ARCH=$(echo "$BITBAKE_VARS" | grep ^TRANSLATED_TARGET_ARCH \ |
110 | | cut -d '=' -f2 | cut -d '"' -f2) | 108 | | cut -d '=' -f2 | cut -d '"' -f2) |
111 | TARGET_KERNEL_BUILDDIR=$(echo "$BITBAKE_VARS" | grep ^B= \ | 109 | TARGET_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 | ||
113 | pushd $PWD | ||
114 | cd $BUILDDIR | ||
115 | BITBAKE_VARS=`bitbake -e systemtap-native` | ||
116 | popd | ||
117 | SYSTEMTAP_HOST_INSTALLDIR=$(echo "$BITBAKE_VARS" | grep ^STAGING_DIR_NATIVE \ | ||
118 | | cut -d '=' -f2 | cut -d '"' -f2) | ||
119 | |||
114 | systemtap_target_arch "$TARGET_ARCH" | 120 | systemtap_target_arch "$TARGET_ARCH" |
115 | 121 | ||
116 | if [ ! -d $TARGET_KERNEL_BUILDDIR ] || | 122 | if [ ! -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 |
130 | fi | 137 | fi |