always := $(dtb-y)
subdir-y := $(dts-dirs)
-clean-files := *.dtb
+subdir-y += overlays/kvim
+subdir-y += overlays/kvim2
+subdir-y += overlays/kvim3
+subdir-y += overlays/kvim3l
+clean-files := *.dtb *.dtbo
# Setup the directory structure
rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir" "$dtb_dir" $objtree/debian/files
mkdir -m 755 -p "$dtb_dir/DEBIAN"
-mkdir -p "$dtb_dir/boot/dtb-$version" "$dtb_dir/usr/share/doc/$dtb_packagename"
+mkdir -p $dtb_dir/boot/dtb-$version/overlays/{kvim,kvim2,kvim3,kvim3l} "$dtb_dir/usr/share/doc/$dtb_packagename"
mkdir -m 755 -p "$tmpdir/DEBIAN"
mkdir -p "$tmpdir/lib" "$tmpdir/boot"
mkdir -p "$fwdir/lib/firmware/$version/"
fi
if grep -q '^CONFIG_ARM64=y' $KCONFIG_CONFIG ; then
- mkdir -p "$tmpdir/boot/dtb-""$version"
+ mkdir -p "$tmpdir/boot/dtb-""$version"/overlays/{kvim,kvim2,kvim3,kvim3l}
cp $objtree/arch/$SRCARCH/boot/dts/amlogic/*.dtb $dtb_dir/boot/dtb-$version
+ cp $objtree/arch/$SRCARCH/boot/dts/amlogic/overlays/kvim/*.dtbo $dtb_dir/boot/dtb-$version/overlays/kvim
+ cp $objtree/arch/$SRCARCH/boot/dts/amlogic/overlays/kvim2/*.dtbo $dtb_dir/boot/dtb-$version/overlays/kvim2
+ cp $objtree/arch/$SRCARCH/boot/dts/amlogic/overlays/kvim3/*.dtbo $dtb_dir/boot/dtb-$version/overlays/kvim3
+ cp $objtree/arch/$SRCARCH/boot/dts/amlogic/overlays/kvim3l/*.dtbo $dtb_dir/boot/dtb-$version/overlays/kvim3l
fi
if [ "$ARCH" != "um" ]; then