aboutsummaryrefslogtreecommitdiffstats
path: root/classes/native.bbclass
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2006-01-31 17:36:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-31 17:36:37 +0000
commitd4c62f2653b3c21c361dc3cf7ec748048e9cad16 (patch)
treeee724dac9af95a5181bff46deafaabe94ef5be0f /classes/native.bbclass
parent0181fca36610a03b991be5985aa53f794e9ce323 (diff)
downloadopenembedded-d4c62f2653b3c21c361dc3cf7ec748048e9cad16.tar.gz
package.bbclass: implement a failsafe strip in classes
- package.bbclass now uses file-native and cross strip to reliably strip unstripped executables and check the return code. For the moment a failure here doesn't cause the build to fail but does output a failure message direct to the controlling terminal (this is temporary). This behaviour can be changed by forcing IGNORE_STRIP_ERRORS = "" The change works by using a new runstrip shell function for every potentially strippable file. Since this calls native 'file' there is a dependency on all inheritors of package.bbclass for file-native and since this would break native builds (because of the cycle in file-native and it's own native depends) native.bbclass cancels this dependency (system file should be fine for native packages and, anyway native currently doesn't package.)
Diffstat (limited to 'classes/native.bbclass')
-rw-r--r--classes/native.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/native.bbclass b/classes/native.bbclass
index f4e1f7c7d5..fea8048fe5 100644
--- a/classes/native.bbclass
+++ b/classes/native.bbclass
@@ -14,6 +14,10 @@ RPROVIDES = "${PN}"
# Need to resolve package RDEPENDS as well as DEPENDS
BUILD_ALL_DEPS = "1"
+# Break the circular dependency as a result of DEPENDS
+# in package.bbclass
+PACKAGE_DEPENDS = ""
+
TARGET_ARCH = "${BUILD_ARCH}"
TARGET_OS = "${BUILD_OS}"
TARGET_VENDOR = "${BUILD_VENDOR}"