Commit f40c64f1 authored by Angus Ainslie's avatar Angus Ainslie

build_uboot.sh : add a new u-boot target to include the M4 code

This also changes the name of the dtb for the devkit-recovery
target.
parent d5a5f448
......@@ -20,7 +20,7 @@ CWD=`pwd`
usage() {
echo "Usage : $1 "
echo " -h Display this help message."
echo " -b [imx6|imx8|ec-som|devkit-recovery] select the board type."
echo " -b [imx6|imx8|ec-som|devkit-recovery|devkit] select the board type."
echo " -c don't make clean."
}
......@@ -118,7 +118,7 @@ function combine_uboot_bins()
set +e
case ${pureos_board} in
ec-som|devkit-recovery)
ec-som|devkit*)
patch -N -p1 < ${CWD}/files/imx-atf-disable-lpddr4-init.patch
;;
esac
......@@ -250,7 +250,7 @@ case ${pureos_board} in
ARCH=arm
COPY_UBOOT=copy_uboot
;;
devkit-recovery)
devkit*)
ATF_REPO=https://source.codeaurora.org/external/imx/imx-atf
ATF_BRANCH=imx_4.9.51_imx8m_ga
ATF_PLAT=imx8mq
......@@ -258,7 +258,14 @@ case ${pureos_board} in
MKIMAGE_REPO=https://source.codeaurora.org/external/imx/imx-mkimage
MKIMAGE_BRANCH=imx_4.9.51_imx8m_ga
UBOOT_REPO=https://source.puri.sm/Librem5/uboot-imx.git
HW_DEFCONFIG=imx8m_lpddr4_3gb_som_defconfig
case ${pureos_board} in
devkit)
HW_DEFCONFIG=librem5_devkit_defconfig
;;
devkit-recovery)
HW_DEFCONFIG=librem5_devkit_base_defconfig
;;
esac
CROSS_COMPILER=aarch64-linux-gnu-
UBOOT_BRANCH=devkit-wip
UBOOT_BIN=iMX8M/flash.bin
......@@ -279,7 +286,7 @@ build_uboot ${pureos_board} ${ARCH} ${CROSS_COMPILER} ${HW_DEFCONFIG} ${make_cle
cd ${CWD}
case ${pureos_board} in
imx8|ec-som|devkit-recovery)
imx8|ec-som|devkit*)
build_cortex_m4 ${UBOOT_OUTPUT}
combine_uboot_bins ${pureos_board}
cd imx-mkimage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment