From d4c62f2653b3c21c361dc3cf7ec748048e9cad16 Mon Sep 17 00:00:00 2001 From: John Bowler Date: Tue, 31 Jan 2006 17:36:37 +0000 Subject: 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.) --- classes/native.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes/native.bbclass') 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}" -- cgit v1.2.3