Replace hard-coded linux64 with linux${SITEINFO_BITS}. This way,
32bit machines can also build and use this tool correctly.Signed-off-by: Marek Vasut <[email protected]> --- 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(-) diff --git a/meta-oe/recipes-support/imx-cst/imx-cst_3.4.1.bb b/meta-oe/recipes-support/imx-cst/imx-cst_3.4.1.bb index 12b319843e..97117eb914 100644 --- a/meta-oe/recipes-support/imx-cst/imx-cst_3.4.1.bb +++ b/meta-oe/recipes-support/imx-cst/imx-cst_3.4.1.bb @@ -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} } -- 2.50.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#119185): https://lists.openembedded.org/g/openembedded-devel/message/119185 Mute This Topic: https://lists.openembedded.org/mt/115031685/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
