0232-BCM270X_DT-Don-t-generate-linux-phandle-props.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From a7261327b85789623ba20744f44150308d15fb94 Mon Sep 17 00:00:00 2001
  2. From: Phil Elwell <phil@raspberrypi.org>
  3. Date: Fri, 8 Apr 2016 17:43:27 +0100
  4. Subject: [PATCH 232/381] BCM270X_DT: Don't generate "linux,phandle" props
  5. The EPAPR standard says to use "phandle" properties to store phandles,
  6. rather than the deprecated "linux,phandle" version. By default, dtc
  7. generates both, but adding "-H epapr" causes it to only generate
  8. "phandle"s, saving some space and clutter.
  9. Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  10. ---
  11. arch/arm/boot/dts/Makefile | 2 +-
  12. scripts/Makefile.lib | 2 +-
  13. 2 files changed, 2 insertions(+), 2 deletions(-)
  14. --- a/arch/arm/boot/dts/Makefile
  15. +++ b/arch/arm/boot/dts/Makefile
  16. @@ -813,5 +813,5 @@ clean-files := *.dtb
  17. # Enable fixups to support overlays on BCM2708 platforms
  18. ifeq ($(RPI_DT_OVERLAYS),y)
  19. - DTC_FLAGS ?= -@
  20. + DTC_FLAGS ?= -@ -H epapr
  21. endif
  22. --- a/scripts/Makefile.lib
  23. +++ b/scripts/Makefile.lib
  24. @@ -294,7 +294,7 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
  25. quiet_cmd_dtco = DTCO $@
  26. cmd_dtco = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
  27. - $(objtree)/scripts/dtc/dtc -@ -O dtb -o $@ -b 0 \
  28. + $(objtree)/scripts/dtc/dtc -@ -H epapr -O dtb -o $@ -b 0 \
  29. -i $(dir $<) $(DTC_FLAGS) \
  30. -d $(depfile).dtc.tmp $(dtc-tmp) ; \
  31. cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile)