63 lines
1.6 KiB
BlitzBasic
63 lines
1.6 KiB
BlitzBasic
|
DESCRIPTION = "U-Boot port for orange pi zero 2w"
|
||
|
|
||
|
require recipes-bsp/u-boot/u-boot.inc
|
||
|
|
||
|
LICENSE = "GPL-2.0-only"
|
||
|
LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||
|
|
||
|
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
|
||
|
|
||
|
DEPENDS:append = " bc-native dtc-native swig-native python3-native flex-native bison-native python3-setuptools-native "
|
||
|
DEPENDS:append = " atf-50i-h616 "
|
||
|
|
||
|
# No patches for other machines yet
|
||
|
# PROVIDES = "virtual/bootloader"
|
||
|
# COMPATIBLE_MACHINE = "orange-pi-zero2w"
|
||
|
|
||
|
# DEFAULT_PREFERENCE_orange-pi-zero2w="1"
|
||
|
|
||
|
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i|sun50i)"
|
||
|
DEFAULT_PREFERENCE:sun4i = "1"
|
||
|
DEFAULT_PREFERENCE:sun5i = "1"
|
||
|
DEFAULT_PREFERENCE:sun7i = "1"
|
||
|
DEFAULT_PREFERENCE:sun8i = "1"
|
||
|
DEFAULT_PREFERENCE:sun50i = "1"
|
||
|
|
||
|
|
||
|
SRC_URI = " \
|
||
|
git://github.com/orangepi-xunlong/u-boot-orangepi.git;protocol=https;branch=v2021.07-sunxi \
|
||
|
file://boot.cmd \
|
||
|
"
|
||
|
|
||
|
PE = "1"
|
||
|
|
||
|
PV = "v2021.07+git${SRCPV}"
|
||
|
|
||
|
SRCREV = "6fe17fac388aad17490cf386578b7532975e567f"
|
||
|
|
||
|
S = "${WORKDIR}/git"
|
||
|
|
||
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||
|
|
||
|
SPL_BINARY="u-boot-sunxi-with-spl.bin"
|
||
|
UBOOT_ENV_SUFFIX = "scr"
|
||
|
UBOOT_ENV = "boot"
|
||
|
|
||
|
EXTRA_OEMAKE:append = ' HOSTLDSHARED="${BUILD_CC} -shared ${BUILD_LDFLAGS} ${BUILD_CFLAGS}" '
|
||
|
EXTRA_OEMAKE:append = " BL31=${DEPLOY_DIR_IMAGE}/bl31.bin SCP=/dev/null"
|
||
|
|
||
|
|
||
|
do_compile[depends] += "atf-50i-h616:do_install"
|
||
|
|
||
|
do_configure() {
|
||
|
oe_runmake ${UBOOT_MACHINE}
|
||
|
# oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE} mrproper
|
||
|
}
|
||
|
|
||
|
do_compile() {
|
||
|
oe_runmake
|
||
|
oe_runmake u-boot-initial-env
|
||
|
${B}/tools/mkimage -C none -A arm -T script -d ${WORKDIR}/boot.cmd ${WORKDIR}/${UBOOT_ENV_BINARY}
|
||
|
}
|
||
|
|