From: Erik Larsson Date: Thu, 12 Apr 2018 12:35:23 +0000 (+0200) Subject: board/freescale/common/imx: make post-image.sh arm64 compatible X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4755bf2bd43a7b4c3bf4f88be790240a01b3116f;p=buildroot.git board/freescale/common/imx: make post-image.sh arm64 compatible This commit makes the common post-image.sh script used by Freescale platforms compatible with arm64: - Support having DTBs in sub-folders - Support a kernel image in the 'Image' format Signed-off-by: Erik Larsson Signed-off-by: Christopher Dahlberg Signed-off-by: Thomas Petazzoni --- diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index b23974347b..70d2c9c600 100755 --- a/board/freescale/common/imx/post-image.sh +++ b/board/freescale/common/imx/post-image.sh @@ -7,10 +7,10 @@ # dtb_list() { - local DTB_LIST="$(sed -n 's/^BR2_LINUX_KERNEL_INTREE_DTS_NAME="\([a-z0-9 \-]*\)"$/\1/p' ${BR2_CONFIG})" + local DTB_LIST="$(sed -n 's/^BR2_LINUX_KERNEL_INTREE_DTS_NAME="\([\/a-z0-9 \-]*\)"$/\1/p' ${BR2_CONFIG})" for dt in $DTB_LIST; do - echo -n "\"$dt.dtb\", " + echo -n "\"`basename $dt`.dtb\", " done } @@ -23,6 +23,8 @@ linux_image() { if grep -Eq "^BR2_LINUX_KERNEL_UIMAGE=y$" ${BR2_CONFIG}; then echo "\"uImage\"" + elif grep -Eq "^BR2_LINUX_KERNEL_IMAGE=y$" ${BR2_CONFIG}; then + echo "\"Image\"" else echo "\"zImage\"" fi