]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
native: follow BUILD_* definitions for OBJCOPY, OBJDUMP and READELF
authorAntonin Godard <antonin.godard@bootlin.com>
Mon, 17 Mar 2025 14:49:16 +0000 (15:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Mar 2025 10:26:10 +0000 (10:26 +0000)
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 <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/native.bbclass

index 1d9432138efe19003be583ccf0d301e2365dfccd..febb4b60013c9785137451b12d282b4a682f5a49 100644 (file)
@@ -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}"