From ce92f3508c05bff4f06a27f01e8f737b706ff48e Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 7 Aug 2021 00:46:38 +0200 Subject: initial commit --- recipes-bsp/imx-mkimage/imx-boot_%.bbappend | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 recipes-bsp/imx-mkimage/imx-boot_%.bbappend (limited to 'recipes-bsp/imx-mkimage') diff --git a/recipes-bsp/imx-mkimage/imx-boot_%.bbappend b/recipes-bsp/imx-mkimage/imx-boot_%.bbappend new file mode 100644 index 0000000..fa00ccc --- /dev/null +++ b/recipes-bsp/imx-mkimage/imx-boot_%.bbappend @@ -0,0 +1,10 @@ +do_compile_preppend () { + make_file=${S}/iMX8M/soc.mak + if [ -e ${make_file} ]; then + sed -i "s/dtbs = .*dtb/dtbs = ${UBOOT_DTB_NAME}/g" ${make_file} + fi +} + +addtask compile_preppend before do_compile after do_configure + +COMPATIBLE_MACHINE = "(cl-imx8)" -- cgit v1.2.3 From c6c159d4742c16dce25e6353876612e443a39b7d Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 7 Aug 2021 00:52:45 +0200 Subject: fixed imx-boot --- recipes-bsp/imx-mkimage/imx-boot_%.bbappend | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'recipes-bsp/imx-mkimage') diff --git a/recipes-bsp/imx-mkimage/imx-boot_%.bbappend b/recipes-bsp/imx-mkimage/imx-boot_%.bbappend index fa00ccc..5fa1774 100644 --- a/recipes-bsp/imx-mkimage/imx-boot_%.bbappend +++ b/recipes-bsp/imx-mkimage/imx-boot_%.bbappend @@ -1,7 +1,10 @@ do_compile_preppend () { make_file=${S}/iMX8M/soc.mak if [ -e ${make_file} ]; then - sed -i "s/dtbs = .*dtb/dtbs = ${UBOOT_DTB_NAME}/g" ${make_file} + sed -i "s/^dtbs = .*dtb/dtbs = ${UBOOT_DTB_NAME}/g" ${make_file} + if [ ! -z ${DDR_FIRMWARE_VERSION} ]; then + sed -i "/^lpddr4_.mem_.d = / i LPDDR_FW_VERSION = _${DDR_FIRMWARE_VERSION}" ${make_file} + fi fi } -- cgit v1.2.3