[make] Defer binding of EXTRA_BUILDDEPS to all::
Currently EXTRA_BUILDDEPS is evaluated before build.mk. This means that
userspace apps or other EXTRA_BUILDRULES cannot add items to
EXTRA_BUILDDEPS and have it function as would be expected.
@@ -167,9 +167,6 @@ include top/rules.mk
# modules in the ALLMODULES list
include make/recurse.mk
-# any extra top level build dependencies that someone declared
-all:: $(EXTRA_BUILDDEPS)
-
# add some automatic configuration defines
GLOBAL_DEFINES += \
PROJECT_$(PROJECT)=1 \
@@ -264,6 +261,10 @@ $(info GLOBAL_OPTFLAGS = $(GLOBAL_OPTFLAGS))
# make all object files depend on any targets in GLOBAL_SRCDEPS
$(ALLOBJS): $(GLOBAL_SRCDEPS)
+# any extra top level build dependencies that someone declared.
+# build.mk may add to EXTRA_BUILDDEPS, this must be evalauted after build.mk.
+all:: $(EXTRA_BUILDDEPS)
+
clean: $(EXTRA_CLEANDEPS)
rm -f $(ALLOBJS) $(DEPS) $(GENERATED) $(OUTBIN) $(OUTELF) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).sym.sorted $(OUTELF).size $(OUTELF).hex $(OUTELF).dump
