scripts: mkits-qsdk-ipq-image: strip path from description

The FIT description of the boot script image is derived from the
file name given on the command line. Take only the basename so that
the script can be passed by path while the description stays the
same.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle committed 2026-10-27 06:19:26 +00:00
1 parent 7d0bf92bee
commit 9ec7903e37
1 file changed
+2 -1
+2 -1
View File
@@ -45,7 +45,8 @@ while [ -n "$1" -a -n "$2" ] || [ $has_script ]; do
script)
name="$node_type"
file="$1"; shift
desc="${file%.*} uboot ${file##*.}"
desc="${file##*/}"
desc="${desc%.*} uboot ${desc##*.}"
type="$node_type"
node_type="firmware"
;;