sunxi: update image Makefile to reflect updated DTS structure in 6.6
[openwrt/staging/wigyori.git] / target / linux / sunxi / image / Makefile
index cc1c1ba42de3fe63173dd2721700d8465b3e6ded..d462880e904e6579338a375ada910433ffe8b9bf 100644 (file)
@@ -34,7 +34,11 @@ define Device/Default
   KERNEL := kernel-bin | uImage none
   IMAGES := sdcard.img.gz
   IMAGE/sdcard.img.gz := sunxi-sdcard | append-metadata | gzip
+ifneq ($(LINUX_6_1),)
   SUNXI_DTS_DIR :=
+else
+  SUNXI_DTS_DIR :=allwinner/
+endif
   SUNXI_DTS = $$(SUNXI_DTS_DIR)$$(SOC)-$(lastword $(subst _, ,$(1)))
 endef