BigW Consortium Gitlab

Commit 0cc32e7f by David Frey

Makefile: define LEGATO_TARGET even if legato isn't built

parent dcf72fa5
...@@ -30,15 +30,13 @@ all: green_wp85 green_wp750x green_wp76xx green_wp77xx \ ...@@ -30,15 +30,13 @@ all: green_wp85 green_wp750x green_wp76xx green_wp77xx \
LEGATO ?= 1 LEGATO ?= 1
.PHONY: legato_% .PHONY: legato_%
legato_%: legato_%:
$(eval LEGATO_TARGET := $(subst legato_,,$@))
ifeq ($(LEGATO),0) ifeq ($(LEGATO),0)
echo "Not building LEGATO due to \$$LEGATO == 0" echo "Not building LEGATO due to \$$LEGATO == 0"
else else
$(eval LEGATO_TARGET := $(subst legato_,,$@))
$(MAKE) -C $(LEGATO_ROOT) framework_$(LEGATO_TARGET) $(MAKE) -C $(LEGATO_ROOT) framework_$(LEGATO_TARGET)
endif endif
export LEGATO_TARGET := $(subst legato_,,$@)
.PHONY: green_wp85 .PHONY: green_wp85
green_wp85: legato_wp85 green_wp85: legato_wp85
TOOLCHAIN_DIR=$(shell $(LEGATO_ROOT)/bin/findtoolchain wp85 dir) \ TOOLCHAIN_DIR=$(shell $(LEGATO_ROOT)/bin/findtoolchain wp85 dir) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment