Skip to content

Commit efe84d4

Browse files
Uwe Kleine-Königrobherring
authored andcommitted
scripts/dtc: only append to HOST_EXTRACFLAGS instead of overwriting
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. Fixes: e3fd9b5 ("scripts/dtc: consolidate include path options in Makefile") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Rob Herring <robh@kernel.org>
1 parent 64ff609 commit efe84d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/dtc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ dtc-objs := dtc.o flattree.o fstree.o data.o livetree.o treesource.o \
99
dtc-objs += dtc-lexer.lex.o dtc-parser.tab.o
1010

1111
# Source files need to get at the userspace version of libfdt_env.h to compile
12-
HOST_EXTRACFLAGS := -I $(srctree)/$(src)/libfdt
12+
HOST_EXTRACFLAGS += -I $(srctree)/$(src)/libfdt
1313

1414
ifeq ($(shell pkg-config --exists yaml-0.1 2>/dev/null && echo yes),)
1515
ifneq ($(CHECK_DT_BINDING)$(CHECK_DTBS),)

0 commit comments

Comments
 (0)