Skip to contentSkip to conversation

powerpc/dts: fix not include DTC_FLAGS

PATCH Superseded Youlin Song 3 participants 4 messages Apr 3, 2021 – Apr 9, 2021

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/dts: fix not include DTC_FLAGS

I wanted to build the fsl dts in my machine and found that the dtb have not extra space,so uboot will cause about FDT_ERR_NOSPACE issue.

---
 arch/powerpc/boot/dts/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/boot/dts/Makefile +1 -0
index fb335d05aae8..c21165c0cd76 100644
@@ -2,5 +2,6 @@
 
 subdir-y += fsl
 
+DTC_FLAGS   ?= -p 1024
 dtstree		:= $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · Youlin Song

I wanted to build the fsl dts in my machine and found that the dtb have not extra space,so uboot will cause about FDT_ERR_NOSPACE issue.

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

arch/powerpc/boot/dts/Makefile line 7

Quoted 6 lines
arch/powerpc/boot/dts/Makefile +1 -0
@@ -2,5 +2,6 @@
 
 subdir-y += fsl
 
+DTC_FLAGS   ?= -p 1024
 dtstree		:= $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

I guess that was missed in 1acf1cf8638a ("powerpc: build .dtb files in dts directory").

Which I think means the assignment to DTC_FLAGS in arch/powerpc/boot/Makefile is not needed anymore.

Can you send a v2 removing that assignment and explaining that's what happened?

cheers

#2 lore raw
Quoted 5 lines · Michael Ellerman
Quoted 3 lines · Youlin Song

I wanted to build the fsl dts in my machine and found that the dtb have not extra space,so uboot will cause about FDT_ERR_NOSPACE issue.

How do we not have issues with arm and arm64 boards which don't have padding? Or what took so long to notice on powerpc?

Quoted 20 lines
Quoted 11 lines
---
 arch/powerpc/boot/dts/Makefile | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/boot/dts/Makefile +0 -0
index fb335d05aae8..c21165c0cd76 100644

arch/powerpc/boot/dts/Makefile line 7

Quoted 6 lines
arch/powerpc/boot/dts/Makefile +1 -0
@@ -2,5 +2,6 @@
 
 subdir-y += fsl
 
+DTC_FLAGS   ?= -p 1024
 dtstree              := $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))

I guess that was missed in 1acf1cf8638a ("powerpc: build .dtb files in dts directory").

Quoted 5 lines

Which I think means the assignment to DTC_FLAGS in arch/powerpc/boot/Makefile is not needed anymore.

Can you send a v2 removing that assignment and explaining that's what happened?

I've wanted to make this common, but I guess that's a separate change.

Rob

author
#3 lore raw
In reply to Michael Ellerman

In my test, DTC_FLAGS in arch/powerpc/boot/Makefile is not to work,I will
send V2 to removing it.

Quoted 35 lines · Michael Ellerman <[email protected]> 于2021年4月7日周三 下午7:27写道:

Review

Quoted 10 lines · Youlin Song

I wanted to build the fsl dts in my machine and found that the dtb have not extra space,so uboot will cause about FDT_ERR_NOSPACE issue.

---
 arch/powerpc/boot/dts/Makefile | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/arch/powerpc/boot/dts/Makefile

arch/powerpc/boot/dts/Makefile line 7

Quoted 10 lines

index fb335d05aae8..c21165c0cd76 100644

arch/powerpc/boot/dts/Makefile +1 -0
@@ -2,5 +2,6 @@
 
 subdir-y += fsl
 
+DTC_FLAGS   ?= -p 1024
 dtstree              := $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb,

$(wildcard $(dtstree)/*.dts))

I guess that was missed in 1acf1cf8638a ("powerpc: build .dtb files in dts directory").

Which I think means the assignment to DTC_FLAGS in arch/powerpc/boot/Makefile is not needed anymore.

Can you send a v2 removing that assignment and explaining that's what happened?

cheers