diff options
| author | Saul Wold <sgw@linux.intel.com> | 2017-03-07 12:12:10 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-08 11:52:56 +0000 |
| commit | 07eca818019e1969c78afa8932f0e2cda1fc8e72 (patch) | |
| tree | 2a615c0c22a3de5d417a3ea14a7aaeb8ee5ef21e | |
| parent | 3f0037ce3c49ecc98c486ebf90844a4db4976b14 (diff) | |
| download | poky-07eca818019e1969c78afa8932f0e2cda1fc8e72.tar.gz | |
crosstap: Changes to support Recipe specific sysroot
The crosstap script needed to be updated for recipe specific sysroot
changes including adding support for finding the systemtap binaries.
[YOCTO #10990]
(From OE-Core rev: 1098bcbc4520874967e7bd23fe798ab1a123fac4)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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 |
