blob: 11329be787202638b4d3fd95f99791bc537fcce4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
BOOT_TOOLS_mx8 = "imx-boot-tools"
SRC_URI_remove_mx8mp = "git://github.com/foundriesio/u-boot.git;branch=${SRCBRANCH}"
SRC_URI_prepend_mx8mp = "git://git.linaro.org/people/jun.nie/u-boot.git;protocol=https;branch=${SRCBRANCH} "
SRCREV_mx8mp = "ab3269e5f5210dd11f32ca8fabe78693d4c0998e"
SRCBRANCH_mx8mp = "rel_imx_5.4.70_2.3.0-imx8mp-2020.04+efi+fio"
# From u-boot-imx/meta-freescale
do_deploy_append_mx8m() {
# Deploy u-boot-nodtb.bin and 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}
# When sign is enabled the final DTB should be copied from deploy dir
if [ "${UBOOT_SIGN_ENABLE}" = "1" ]; then
install -m 0644 ${DEPLOY_DIR_IMAGE}/${UBOOT_DTB_IMAGE} ${DEPLOYDIR}/${BOOT_TOOLS}/${UBOOT_DTB_NAME}
else
install -m 0644 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
fi
install -m 0644 ${B}/${config}/spl/u-boot-spl-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-spl-nodtb.bin-${MACHINE}-${UBOOT_CONFIG}
install -m 0644 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG}
fi
done
unset j
done
unset i
else
install -d ${DEPLOYDIR}/${BOOT_TOOLS}
# When sign is enabled the final DTB should be copied from deploy dir
if [ "${UBOOT_SIGN_ENABLE}" = "1" ]; then
install -m 0644 ${DEPLOY_DIR_IMAGE}/${UBOOT_DTB_IMAGE} ${DEPLOYDIR}/${BOOT_TOOLS}/${UBOOT_DTB_NAME}
else
install -m 0644 ${B}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}
fi
install -m 0644 ${B}/spl/u-boot-spl-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-spl-nodtb.bin-${MACHINE}-
install -m 0644 ${B}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-
cd ${DEPLOYDIR}
ln -sf u-boot-${MACHINE}.bin u-boot-${MACHINE}.bin-
ln -sf u-boot-spl.bin-${MACHINE} u-boot-spl.bin-${MACHINE}-
fi
}
|