Commit 6d1ce387874c1060f27656f70151a52c511cd0e3
Committed by
Wolfgang Denk
1 parent
5ec5529b82
Exists in
master
and in
54 other branches
make sure toplevel $(SUBDIRS) is always declared
The $(SUBDIRS) variable is only declared when U-Boot has been configured, but it gets used all the time. In the non-configured case, it is used to generate a helpful error message, but it needs to be set properly for that to occur. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Showing 1 changed file with 8 additions and 8 deletions Side-by-side Diff
Makefile
... | ... | @@ -137,6 +137,14 @@ |
137 | 137 | ARCH = ppc |
138 | 138 | endif |
139 | 139 | |
140 | +# The "tools" are needed early, so put this first | |
141 | +# Don't include stuff already done in $(LIBS) | |
142 | +SUBDIRS = tools \ | |
143 | + examples \ | |
144 | + api_examples | |
145 | + | |
146 | +.PHONY : $(SUBDIRS) | |
147 | + | |
140 | 148 | ifeq ($(obj)include/config.mk,$(wildcard $(obj)include/config.mk)) |
141 | 149 | |
142 | 150 | # load ARCH, BOARD, and CPU configuration |
... | ... | @@ -281,14 +289,6 @@ |
281 | 289 | |
282 | 290 | # Add GCC lib |
283 | 291 | PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc |
284 | - | |
285 | -# The "tools" are needed early, so put this first | |
286 | -# Don't include stuff already done in $(LIBS) | |
287 | -SUBDIRS = tools \ | |
288 | - examples \ | |
289 | - api_examples | |
290 | - | |
291 | -.PHONY : $(SUBDIRS) | |
292 | 292 | |
293 | 293 | ifeq ($(CONFIG_NAND_U_BOOT),y) |
294 | 294 | NAND_SPL = nand_spl |