From: Antonin Godard Date: Mon, 17 Mar 2025 14:49:16 +0000 (+0100) Subject: native: follow BUILD_* definitions for OBJCOPY, OBJDUMP and READELF X-Git-Tag: yocto-5.2~173 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87a6ffe21b706e6aeeeb77891565cbd7730ca163;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git native: follow BUILD_* definitions for OBJCOPY, OBJDUMP and READELF Set the host OBJCOPY, OBJDUMP, and READELF variables to be derived from their corresponding BUILD_* definitions. This makes the native class match the build-gcc.inc file 1 to 1, as these were the only missing. Currently these variables get their definitions from gcc.inc, which uses HOST_PREFIX, and that works because the native class sets HOST_PREFIX to BUILD_PREFIX, but this doesn't seem correct. Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/native.bbclass b/meta/classes-recipe/native.bbclass index 1d9432138ef..febb4b60013 100644 --- a/meta/classes-recipe/native.bbclass +++ b/meta/classes-recipe/native.bbclass @@ -64,6 +64,9 @@ export AS = "${BUILD_AS}" export RANLIB = "${BUILD_RANLIB}" export STRIP = "${BUILD_STRIP}" export NM = "${BUILD_NM}" +export OBJCOPY = "${BUILD_OBJCOPY}" +export OBJDUMP = "${BUILD_OBJDUMP}" +export READELF = "${BUILD_READELF}" # Path prefixes base_prefix = "${STAGING_DIR_NATIVE}"