From 4e8c88382dc92f2b52a16e46b324dc9999e2e9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Wed, 3 Jan 2024 07:32:53 +0100 Subject: [PATCH] board/broadcom/northstar: fix building custom images MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Custom Northstar images allow installing (flashing) them using vendor UI or CFE bootloader. The change of DTS files paths ("broadcom/" prefix introduction in Linux 6.5+) prevented post script from generating them. Adjust post-image.sh to deal with new paths. Signed-off-by: Rafał Miłecki Signed-off-by: Peter Korsgaard --- board/broadcom/northstar/post-image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/broadcom/northstar/post-image.sh b/board/broadcom/northstar/post-image.sh index b6150fc539..559ed8bf4b 100755 --- a/board/broadcom/northstar/post-image.sh +++ b/board/broadcom/northstar/post-image.sh @@ -27,8 +27,9 @@ build_trx() { rm -f $images/zImage.$device.lzma } -devices="$(sed -n 's/^BR2_LINUX_KERNEL_INTREE_DTS_NAME="\([a-z0-9 \-]*\)"$/\1/p' ${BR2_CONFIG})" +devices="$(sed -n 's/^BR2_LINUX_KERNEL_INTREE_DTS_NAME="\([^"]*\)"$/\1/p' ${BR2_CONFIG})" for device in $devices; do + device="${device#broadcom/}" case "$device" in "bcm4708-smartrg-sr400ac") build_trx "$1" "$device"