diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-06-23 11:58:26 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-23 21:08:01 +0100 |
commit | 7987651889b607b6bda2ef8dc9b30852b3752300 (patch) | |
tree | 06091b396061a7297da79727609883fca7756c72 | |
parent | 09b24cc65c9f8b89c06a60cc5320e22df8d4880c (diff) | |
download | tizen-distro-7987651889b607b6bda2ef8dc9b30852b3752300.tar.gz tizen-distro-7987651889b607b6bda2ef8dc9b30852b3752300.tar.bz2 tizen-distro-7987651889b607b6bda2ef8dc9b30852b3752300.zip |
native.bbclass: Add a simple chown intercept command
During native recipe processing we want to intercept any calls to chown
and do nothing. This prevents errors and allows the same recipes to be
used for both native and target recipes.
(From OE-Core rev: 7fd8287d3320231db83c36d09f2b841e520fcfe9)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/native.bbclass | 2 | ||||
-rwxr-xr-x | scripts/native-intercept/chown | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 90fcd131c6..11ec6dcde3 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass @@ -85,6 +85,8 @@ EXTRA_NATIVE_PKGCONFIG_PATH ?= "" PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}" PKG_CONFIG_SYSROOT_DIR = "" +PATH =. "${COREBASE}/scripts/native-intercept:" + python native_virtclass_handler () { if not isinstance(e, bb.event.RecipePreFinalise): return diff --git a/scripts/native-intercept/chown b/scripts/native-intercept/chown new file mode 100755 index 0000000000..4f43271c2b --- /dev/null +++ b/scripts/native-intercept/chown @@ -0,0 +1,2 @@ +#! /bin/sh +echo "Intercept $0: $@ -- do nothing" |