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