Browse Source

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>
Mark Hatle 14 years ago
parent
commit
13f3607779
2 changed files with 4 additions and 0 deletions
  1. 2 0
      meta/classes/native.bbclass
  2. 2 0
      scripts/native-intercept/chown

+ 2 - 0
meta/classes/native.bbclass

@@ -85,6 +85,8 @@ EXTRA_NATIVE_PKGCONFIG_PATH ?= ""
 PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
 PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
 PKG_CONFIG_SYSROOT_DIR = ""
 PKG_CONFIG_SYSROOT_DIR = ""
 
 
+PATH =. "${COREBASE}/scripts/native-intercept:"
+
 python native_virtclass_handler () {
 python native_virtclass_handler () {
     if not isinstance(e, bb.event.RecipePreFinalise):
     if not isinstance(e, bb.event.RecipePreFinalise):
         return
         return

+ 2 - 0
scripts/native-intercept/chown

@@ -0,0 +1,2 @@
+#! /bin/sh
+echo "Intercept $0: $@ -- do nothing"