brcm2708: switch to linux 4.4 and update patches
[openwrt/staging/luka.git] / target / linux / brcm2708 / patches-4.1 / 0183-Use-dts-dirs-feature-for-overlays.patch
1 From 54e673645dde5ce661f849c9a8924fb8e1dc59ab Mon Sep 17 00:00:00 2001
2 From: David Lechner <david@lechnology.com>
3 Date: Mon, 14 Sep 2015 19:08:36 -0500
4 Subject: [PATCH 183/222] Use dts-dirs feature for overlays.
5
6 The kernel makefiles have a dts-dirs target that is for vendor subdirectories.
7
8 Using this fixes the install_dtbs target, which previously did not install the overlays.
9 ---
10 arch/arm/boot/dts/Makefile | 6 ++++--
11 1 file changed, 4 insertions(+), 2 deletions(-)
12
13 --- a/arch/arm/boot/dts/Makefile
14 +++ b/arch/arm/boot/dts/Makefile
15 @@ -15,6 +15,9 @@ endif
16 ifeq ($(CONFIG_ARCH_BCM2835),y)
17 RPI_DT_OVERLAYS=y
18 endif
19 +ifeq ($(RPI_DT_OVERLAYS),y)
20 + dts-dirs += overlays
21 +endif
22
23 dtb-$(CONFIG_ARCH_ALPINE) += \
24 alpine-db.dtb
25 @@ -683,11 +686,10 @@ targets += $(dtb-y)
26 endif
27
28 always := $(dtb-y)
29 +subdir-y := $(dts-dirs)
30 clean-files := *.dtb
31
32 # Enable fixups to support overlays on BCM2708 platforms
33 ifeq ($(RPI_DT_OVERLAYS),y)
34 DTC_FLAGS ?= -@
35 endif
36 -
37 -subdir-y += overlays