Skip to contentSkip to conversation

native: follow BUILD_* definitions for OBJCOPY, OBJDUMP and READELF

PATCH New Antonin Godard 1 participant 1 message Mar 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes-recipe/native.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes-recipe/native.bbclass +3 -0
index 1d9432138e..febb4b6001 100644
@@ -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}"

---
base-commit: 5299816c59ea01905cfb73c72421bb8f11149426
change-id: 20250317-native-toolchain-utils-f24bd9a89efc

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>