mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
cpuburn-arm: add aarch64 machine and build configuration
Add aarch64 as a valid machine to cpuburn recipe and split compilation task. The only source file which supports the aarch64 build is cpuburn-a53.S, and in case if TUNE is set to aarch64 - this should be the only file to be assembled to the application. In case of 32-bit build - all sources are compiled as they are, since cpuburn-a53.S supports both 32- and 64-bit tunes. Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
357be48629
commit
fad26cc14e
@@ -18,21 +18,35 @@ SRC_URI = "git://github.com/ssvb/cpuburn-arm.git \
|
|||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
do_compile() {
|
do_compile() {
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} burn.S -o burn
|
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a7.S -o burn-a7
|
# If the arch is set to ARM 64-bit - we only produce and ship burn-a53 version.
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a8.S -o burn-a8
|
# In case of ARM 32-bit - we would build all variants, since burn-a53 supports both
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a9.S -o burn-a9
|
# 32 and 64-bit builds
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a53.S -o burn-a53
|
if ${@bb.utils.contains('TUNE_FEATURES', 'aarch64', 'true', 'false', d)}; then
|
||||||
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-krait.S -o burn-krait
|
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a53.S -o burn-a53
|
||||||
|
else
|
||||||
|
${CC} ${CFLAGS} ${LDFLAGS} burn.S -o burn
|
||||||
|
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a7.S -o burn-a7
|
||||||
|
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a8.S -o burn-a8
|
||||||
|
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a9.S -o burn-a9
|
||||||
|
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-a53.S -o burn-a53
|
||||||
|
${CC} ${CFLAGS} ${LDFLAGS} cpuburn-krait.S -o burn-krait
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
for f in burn burn-a7 burn-a8 burn-a9 burn-a53 burn-krait; do
|
|
||||||
install -m 0755 $f ${D}${bindir}/$f
|
if ${@bb.utils.contains('TUNE_FEATURES', 'aarch64', 'true', 'false', d)}; then
|
||||||
done
|
install -m 0755 burn-a53 ${D}${bindir}
|
||||||
|
else
|
||||||
|
for f in burn burn-a7 burn-a8 burn-a9 burn-a53 burn-krait; do
|
||||||
|
install -m 0755 $f ${D}${bindir}/$f
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
COMPATIBLE_MACHINE ?= "(^$)"
|
COMPATIBLE_MACHINE ?= "(^$)"
|
||||||
COMPATIBLE_MACHINE_armv7a = "(.*)"
|
COMPATIBLE_MACHINE_armv7a = "(.*)"
|
||||||
COMPATIBLE_MACHINE_armv7ve = "(.*)"
|
COMPATIBLE_MACHINE_armv7ve = "(.*)"
|
||||||
|
COMPATIBLE_MACHINE_aarch64 = "(.*)"
|
||||||
|
|||||||
Reference in New Issue
Block a user