Skip to contentSkip to conversation

powerpc: build virtex dtb

PATCH Applied Corentin Labbe 3 participants 3 messages Jan 8, 2019 – Jan 24, 2019

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: build virtex dtb

I wanted to test the virtex440-ml507 qemu machine and found that the dtb for it was not builded.
All powerpc DTB are only built when CONFIG_OF_ALL_DTBS is set which depend on COMPILE_TEST.

This patchs adds build of virtex dtbs depending on CONFIG_XILINX_VIRTEX440_GENERIC_BOARD option.

---
 arch/powerpc/boot/dts/Makefile | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/boot/dts/Makefile +2 -0
index fb335d05aae8..cae14fca682e 100644
@@ -4,3 +4,5 @@ subdir-y += fsl
 
 dtstree		:= $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
+dtb-$(CONFIG_XILINX_VIRTEX440_GENERIC_BOARD) += virtex440-ml507.dtb
+dtb-$(CONFIG_XILINX_VIRTEX440_GENERIC_BOARD) += virtex440-ml510.dtb
Signature · 1 line
2.19.2
#1 lore raw
Quoted 18 lines · Corentin Labbe

I wanted to test the virtex440-ml507 qemu machine and found that the dtb for it was not builded.
All powerpc DTB are only built when CONFIG_OF_ALL_DTBS is set which depend on COMPILE_TEST.

This patchs adds build of virtex dtbs depending on CONFIG_XILINX_VIRTEX440_GENERIC_BOARD option.

---
 arch/powerpc/boot/dts/Makefile | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/boot/dts/Makefile +0 -0
index fb335d05aae8..cae14fca682e 100644

arch/powerpc/boot/dts/Makefile subdir-y += fsl · line 8

Quoted 5 lines
arch/powerpc/boot/dts/Makefile +2 -0
@@ -4,3 +4,5 @@ subdir-y += fsl
 
 dtstree		:= $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
+dtb-$(CONFIG_XILINX_VIRTEX440_GENERIC_BOARD) += virtex440-ml507.dtb
+dtb-$(CONFIG_XILINX_VIRTEX440_GENERIC_BOARD) += virtex440-ml510.dtb

I'll squash these onto one line, eg:

dtb-$(CONFIG_XILINX_VIRTEX440_GENERIC_BOARD) += virtex440-ml507.dtb virtex440-ml510.dtb

cheers

#2 lore raw
In reply to Corentin Labbe
Quoted 9 lines · Corentin Labbe

I wanted to test the virtex440-ml507 qemu machine and found that the dtb for it was not builded.
All powerpc DTB are only built when CONFIG_OF_ALL_DTBS is set which depend on COMPILE_TEST.

This patchs adds build of virtex dtbs depending on CONFIG_XILINX_VIRTEX440_GENERIC_BOARD option.

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/acef5e0165912c459a9ae98a25f0f879

cheers