#!/bin/bash

cd ../../linux/arch/arm/boot/dts/overlays

ls -l *.dts | sed s:dts:dtb: | awk '{ print "    overlays/"$9, "\\" }'

cd $OLDPWD

#!/bin/bash

cd ../../linux/arch/arm/boot/dts/overlays

ls -l *.dts | sed s:-overlay\.dts:\.dtbo: | awk '{ print "    overlays/"$9, "\\" }'

cd $OLDPWD

Update for new dtb handling
Update for new dtb handling
