Skip to contentSkip to conversation

imx-cst: Replace hard-coded linux64 with linux${SITEINFO_BITS}

PATCH RESEND In review Marek Vasut 2 participants 3 messages Sep 2, 2025 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH RESEND v2 1/1 imx-cst: Replace hard-coded linux64 with linux${SITEINFO_BITS}

Replace hard-coded linux64 with linux${SITEINFO_BITS}. This way, 32bit machines can also build and use this tool correctly.

---
Cc: Kelefa Sane <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Ulrich Ölmann <[email protected]>
Cc: Yoann Congal <[email protected]>
---
V2: - inherit siteinfo

---
 meta-oe/recipes-support/imx-cst/imx-cst_3.4.1.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
meta-oe/recipes-support/imx-cst/imx-cst_3.4.1.bb +5 -3
index 12b319843e..97117eb914 100644
@@ -25,15 +25,17 @@ S = "${UNPACKDIR}/${DEBIAN_PGK_NAME}-${DEBIAN_PGK_VERSION}"
 
 EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}" AR="${AR}" OBJCOPY="${OBJCOPY}"'
 
+inherit siteinfo
+
 do_compile() {
-    oe_runmake -C code/obj.linux64 OSTYPE=linux64 ENCRYPTION=yes COPTIONS="${CFLAGS} ${CPPFLAGS}" LDOPTIONS="${LDFLAGS}"
+    oe_runmake -C code/obj.linux${SITEINFO_BITS} OSTYPE=linux${SITEINFO_BITS} ENCRYPTION=yes COPTIONS="${CFLAGS} ${CPPFLAGS}" LDOPTIONS="${LDFLAGS}"
     oe_runmake -C add-ons/hab_csf_parser COPTS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}"
 }
 
 do_install () {
     install -d ${D}${bindir}
-    install -m 755 ${S}/code/obj.linux64/cst ${D}${bindir}/
-    install -m 755 ${S}/code/obj.linux64/srktool ${D}${bindir}
+    install -m 755 ${S}/code/obj.linux${SITEINFO_BITS}/cst ${D}${bindir}/
+    install -m 755 ${S}/code/obj.linux${SITEINFO_BITS}/srktool ${D}${bindir}
     install -m 755 ${S}/add-ons/hab_csf_parser/csf_parser ${D}${bindir}
 }
 
Signature · 1 line
2.50.1
#1 lore raw
Quoted 11 lines · Marek Vasut

Replace hard-coded linux64 with linux${SITEINFO_BITS}. This way, 32bit machines can also build and use this tool correctly.

---
Cc: Kelefa Sane <[email protected]>
Cc: Khem Raj <[email protected]>
Cc: Ulrich Ölmann <[email protected]>
Cc: Yoann Congal <[email protected]>
---
V2: - inherit siteinfo

Sorry for the all the noise, had some ML subscription issues, now resolved.