diff options
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -5,6 +5,12 @@ export FIRMWARE_ARCH export MOCK_TPM +# This Makefile normally builds in a 'build' subdir, but use +# +# make BUILD=<dir> +# +# to put the output somewhere else + # # Provide default CC and CFLAGS for firmware builds; if you have any -D flags, # please add them after this point (e.g., -DVBOOT_DEBUG). @@ -74,7 +80,7 @@ else export INCLUDES = -I$(FWDIR)/include -I$(FWDIR)/arch/$(FIRMWARE_ARCH)/include endif -export BUILD = ${TOP}/build +export BUILD ?= ${TOP}/build export FWLIB = ${BUILD}/vboot_fw.a export HOSTLIB = ${BUILD}/vboot_host.a @@ -93,7 +99,7 @@ all: mkdir -p $$newdir; \ fi; \ done; \ - [ -z "$(FIRMWARE_ARCH)" ] && make -C utility update_tlcl_structures; \ + [ -z "$(FIRMWARE_ARCH)" ] && $(MAKE) -C utility update_tlcl_structures; \ for i in $(SUBDIRS); do \ make -C $$i; \ done |