Message ID | 1523536525-10280-2-git-send-email-karl.erik.larsson@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/4] firmware-imx: add support for iMX8M firmware | expand |
Hello, On Thu, 12 Apr 2018 14:35:23 +0200, Erik Larsson wrote: > Signed-off-by: Erik Larsson <karl.erik.larsson@gmail.com> > Signed-off-by: Christopher Dahlberg <crille.dahlberg@gmail.com> > --- > board/freescale/common/imx/post-image.sh | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) I've applied after adding more details in the commit log and tweaking the commit title. See https://git.buildroot.org/buildroot/commit/?id=4755bf2bd43a7b4c3bf4f88be790240a01b3116f. Thomas
diff --git a/board/freescale/common/imx/post-image.sh b/board/freescale/common/imx/post-image.sh index b239743..70d2c9c 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