aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.4/0547-ARM-dts-Visit-overlays-subdir-unconditionally.patch
blob: fa84561c60366650c34e5aac57df286aadf8eafb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 578a2d0ba3874bda5634737cd4184eeaa8749b37 Mon Sep 17 00:00:00 2001
From: Phil Elwell <phil@raspberrypi.org>
Date: Fri, 18 Nov 2016 10:52:49 +0000
Subject: [PATCH] ARM: dts: Visit overlays subdir unconditionally

make clean processing occurs without loading the configuration, so the
overlays subdir must be added unconditionally.

See: https://github.com/raspberrypi/linux/issues/1723
---
 arch/arm/boot/dts/Makefile | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -18,9 +18,6 @@ endif
 ifeq ($(CONFIG_ARCH_BCM2835),y)
    RPI_DT_OVERLAYS=y
 endif
-ifeq ($(RPI_DT_OVERLAYS),y)
-    dts-dirs += overlays
-endif
 
 dtb-$(CONFIG_ARCH_ALPINE) += \
 	alpine-db.dtb
@@ -809,7 +806,7 @@ dtstree		:= $(srctree)/$(src)
 dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
 
 always		:= $(dtb-y)
-subdir-y	:= $(dts-dirs)
+subdir-y	:= $(dts-dirs) overlays
 clean-files	:= *.dtb
 
 # Enable fixups to support overlays on BCM2708 platforms