dmidecode: fix x86-only tools being installed on ARM targets
PATCH 1/1 dmidecode: fix x86-only tools being installed on ARM targets
The dmidecode Makefile uses $(shell uname -m) to detect architecture, which returns the build host's arch (x86_64) during cross-compilation. This causes x86-only utilities (biosdecode, vpddecode, ownership) to be incorrectly built and installed on ARM targets.
On NVIDIA Tegra234, running biosdecode triggers a flood of CBB fabric DECODE_ERR interrupts (23,568+ printk messages dropped) by scanning non-existent x86 BIOS memory at 0xF0000-0xFFFFF.
Fix by passing TARGET_ARCH to the Makefile's MACHINE variable, so it correctly detects the target architecture and skips x86-only tools on ARM builds.
Signed-off-by Wei Gao <[email protected]>
--- meta/recipes-devtools/dmidecode/dmidecode_3.7.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/dmidecode/dmidecode_3.7.bb +1 -0
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "${SAVANNAH_NONGNU_MIRROR}/dmidecode/${BP}.tar.xz" COMPATIBLE_HOST = "(i.86|x86_64|aarch64|arm|powerpc|powerpc64).*-linux" +EXTRA_OEMAKE += "MACHINE=${TARGET_ARCH}" do_install() { oe_runmake \
Signature · 1 line
2.43.0