]> code.ossystems Code Review - openembedded-core.git/commitdiff
native.bbclass: Add a simple chown intercept command
authorMark Hatle <mark.hatle@windriver.com>
Thu, 23 Jun 2011 16:58:26 +0000 (11:58 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jun 2011 20:01:48 +0000 (21:01 +0100)
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.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
meta/classes/native.bbclass
scripts/native-intercept/chown [new file with mode: 0755]

index 90fcd131c6991b60e225179f332850ec96375fa4..11ec6dcde305262baae24fb2dabdd9acfbde338f 100644 (file)
@@ -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 (executable)
index 0000000..4f43271
--- /dev/null
@@ -0,0 +1,2 @@
+#! /bin/sh
+echo "Intercept $0: $@ -- do nothing"