mirror of
git://git.openembedded.org/meta-openembedded
synced 2025-12-31 13:38:06 +00:00
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.
Signed-off-by: Marek Vasut <marek.vasut@mailbox.org>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
cf96ad8622
commit
2de2663b8a
@ -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}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user