57 lines
1.8 KiB
BlitzBasic
57 lines
1.8 KiB
BlitzBasic
# Copyright (C) 2013-2016 Freescale Semiconductor
|
|
# Copyright 2018 (C) O.S. Systems Software LTDA.
|
|
# Copyright 2017-2019 NXP
|
|
|
|
DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards."
|
|
require recipes-bsp/u-boot/u-boot.inc
|
|
|
|
PROVIDES += "u-boot"
|
|
|
|
LICENSE = "GPL-2.0-only"
|
|
LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
|
|
|
SRC_URI = "git://gitlab.com/netmodule/bootloader/netmodule-uboot.git;protocol=ssh;user=git;branch=2018.03/imx/imx8-nmhw23;destsuffix=git"
|
|
SRCREV ?= "68ad3ed09773011ab15e9dd50f9ec2bbf817ef3f"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
|
|
#inherit fsl-u-boot-localversion
|
|
|
|
LOCALVERSION ?= "-${SRCBRANCH}"
|
|
|
|
BOOT_TOOLS = "imx-boot-tools"
|
|
UBOOT_INITIAL_ENV = ""
|
|
|
|
do_configure:prepend() {
|
|
if [ ! -d ${S}/board/netmodule/common ]; then
|
|
mkdir -p ${S}/board/netmodule/
|
|
ln -s ${S}/board/freescale/common ${S}/board/netmodule/common
|
|
fi
|
|
}
|
|
|
|
do_deploy:append_mx8m() {
|
|
# Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8m*-XX.dtb for mkimage to generate boot binary
|
|
if [ -n "${UBOOT_CONFIG}" ]
|
|
then
|
|
for config in ${UBOOT_MACHINE}; do
|
|
i=$(expr $i + 1);
|
|
for type in ${UBOOT_CONFIG}; do
|
|
j=$(expr $j + 1);
|
|
if [ $j -eq $i ]
|
|
then
|
|
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
|
|
install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
|
|
install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin
|
|
fi
|
|
done
|
|
unset j
|
|
done
|
|
unset i
|
|
fi
|
|
}
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
|