Update packaging rules to accept a list of DTBs
- Can now accept multiple DTBs in the packaging rules. Also, add
-yorktown dtb to the list.
Change-Id: Ibdc4ea66cffc79dac100da6ab62f15710904f879
diff --git a/debian/rules b/debian/rules
index 2c5bc3d..80baf2f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,10 @@
ARCH := arm64
-DTB := freescale/fsl-imx8mq-phanbell.dtb
+DTBS := \
+ freescale/fsl-imx8mq-phanbell.dtb \
+ freescale/fsl-imx8mq-yorktown.dtb
+DTBS := $(addprefix arch/$(ARCH)/boot/dts/,$(DTBS))
KERNEL_OPTIONS := \
ARCH=arm64 \
@@ -44,7 +47,7 @@
ln -sf vmlinuz-$(VERSION) $(DESTDIR)/boot/Image
cp System.map $(DESTDIR)/boot/System.map-$(VERSION)
cp .config $(DESTDIR)/boot/config-$(VERSION)
- cp arch/$(ARCH)/boot/dts/$(DTB) $(DESTDIR)/boot
+ cp $(DTBS) $(DESTDIR)/boot
# Build header directory structure
install -d $(DESTDIR_HEADERS)/usr/src/linux-headers-$(VERSION)