mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-08 06:18:22 +01:00
atf-sunxi: add new recipe
Add ARM Trusted Firmware package for Allwinner arm64 chips. There are different approaches to build bootloaders for aarch64 platforms. Allwinner approach is to build ATF first, and then to build U-Boot using BL31 binary from ATF build. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
This commit is contained in:
parent
3434ae8c66
commit
da0e7e0ed1
27
recipes-bsp/atf/atf-sunxi_git.bb
Normal file
27
recipes-bsp/atf/atf-sunxi_git.bb
Normal file
@ -0,0 +1,27 @@
|
||||
DESCRIPTION = "ARM Trusted Firmware Allwinner"
|
||||
LICENSE = "BSD"
|
||||
LIC_FILES_CHKSUM = "file://license.md;md5=829bdeb34c1d9044f393d5a16c068371"
|
||||
|
||||
SRC_URI = "git://github.com/apritzel/arm-trusted-firmware;nobranch=1"
|
||||
SRCREV = "aa75c8da415158a94b82a430b2b40000778e851f"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
COMPATIBLE_MACHINE = "(sun50i)"
|
||||
|
||||
PLATFORM_sun50i = "sun50iw1p1"
|
||||
|
||||
LDFLAGS[unexport] = "1"
|
||||
|
||||
do_compile() {
|
||||
oe_runmake -C ${S} BUILD_BASE=${B} \
|
||||
CROSS_COMPILE=${TARGET_PREFIX} \
|
||||
PLAT=${PLATFORM} \
|
||||
bl31 \
|
||||
all
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -D -p -m 0644 ${B}/${PLATFORM}/release/bl31.bin ${DEPLOY_DIR_IMAGE}/bl31.bin
|
||||
}
|
Loading…
Reference in New Issue
Block a user