bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0738-Makefiles-dt-Always-set-on-ARCH_BCM2835.patch
1 From 72d78ec8b6898976ea46b1c0cb9780707985cd80 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Thu, 19 Aug 2021 14:28:56 +0100
4 Subject: [PATCH] Makefiles: dt: Always set '-@' on ARCH_BCM2835
5
6 On the BCM2835 architecture, always add the '-@' option to enable the
7 generation of symbols, rather than relying on DTC_FLAGS being empty
8 or correct.
9
10 See: https://github.com/raspberrypi/linux/issues/3846
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
13 ---
14 arch/arm/boot/dts/Makefile | 2 +-
15 arch/arm64/boot/dts/broadcom/Makefile | 2 +-
16 2 files changed, 2 insertions(+), 2 deletions(-)
17
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -1433,5 +1433,5 @@ subdir-y := overlays
21
22 # Enable fixups to support overlays on BCM2835 platforms
23 ifeq ($(CONFIG_ARCH_BCM2835),y)
24 - DTC_FLAGS ?= -@
25 + DTC_FLAGS += -@
26 endif
27 --- a/arch/arm64/boot/dts/broadcom/Makefile
28 +++ b/arch/arm64/boot/dts/broadcom/Makefile
29 @@ -16,5 +16,5 @@ subdir-y += stingray
30
31 # Enable fixups to support overlays on BCM2835 platforms
32 ifeq ($(CONFIG_ARCH_BCM2835),y)
33 - DTC_FLAGS ?= -@
34 + DTC_FLAGS += -@
35 endif