mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
Makefile.include: process 'modules.inc.mk' before using BASELIBS
Build targets were using the immediate value of '$(BASELIBS)' before it was actually set. bindist.inc.mk should also be processed before as it is adding `BIN_USEMODULE` to `USEMODULE`. This fixes use before define problems for: * `make -C examples/hello-world` * `make -C examples/bindist`
This commit is contained in:
parent
ce917269da
commit
d8a264312c
@ -310,6 +310,14 @@ APPLICATION_MODULE ?= application_$(APPLICATION)
|
||||
BASELIBS += $(BINDIR)/$(APPLICATION_MODULE).a
|
||||
BASELIBS += $(APPDEPS)
|
||||
|
||||
|
||||
# include bindist target
|
||||
include $(RIOTMAKE)/bindist.inc.mk
|
||||
|
||||
# Add all USEMODULE modules to CFLAGS and populate BASELIBS
|
||||
include $(RIOTMAKE)/modules.inc.mk
|
||||
|
||||
|
||||
.PHONY: all link clean flash flash-only term doc debug debug-server reset objdump help info-modules
|
||||
.PHONY: print-size elffile binfile hexfile
|
||||
.PHONY: ..in-docker-container
|
||||
@ -603,12 +611,6 @@ endif
|
||||
# Include desvirt Makefile
|
||||
include $(RIOTTOOLS)/desvirt/Makefile.desvirt
|
||||
|
||||
# include bindist target
|
||||
include $(RIOTMAKE)/bindist.inc.mk
|
||||
|
||||
# Add all USEMODULE modules to CFLAGS
|
||||
include $(RIOTMAKE)/modules.inc.mk
|
||||
|
||||
# Build a header file with all common macro definitions and undefinitions
|
||||
# make it phony to force re-run of the script every time even if the file exists
|
||||
# The script will only touch the file if anything has changed since last time.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user