diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2020-09-29 13:54:57 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-01 08:13:58 +0200 |
commit | 8698e706684dfd68d5e62b785e3b4683c696c18e (patch) | |
tree | 131667b75099d841a9a7d213eab27b7358bfb1e8 /scripts | |
parent | 2558532a3e993627fb35d087e50e8600053c6244 (diff) | |
download | barebox-8698e706684dfd68d5e62b785e3b4683c696c18e.tar.gz barebox-8698e706684dfd68d5e62b785e3b4683c696c18e.tar.xz |
scripts/dtc: only append to HOST_EXTRACFLAGS instead of overwriting
This corresponds to Linux commit 7e2521a85c98 (that currently sits in
linux-next) with the same short log.
When building with
$ HOST_EXTRACFLAGS=-g make
the expectation is that host tools are built with debug informations.
This however doesn't happen if the Makefile assigns a new value to the
HOST_EXTRACFLAGS instead of appending to it. So use += instead of := for
the first assignment.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/dtc/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 06a265cf7b..721e8e2b8c 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -14,7 +14,7 @@ libfdt-objs := $(libfdt-objs:%.o=libfdt/%.o) fdtget-objs += fdtget.o $(libfdt-objs) util.o # Source files need to get at the userspace version of libfdt_env.h to compile -HOST_EXTRACFLAGS := -I$(src)/libfdt +HOST_EXTRACFLAGS += -I$(src)/libfdt ifeq ($(wildcard /usr/include/yaml.h),) ifneq ($(CHECK_DTBS),) |