rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame] | 1 | # the above include may override LKROOT and LKINC to allow external |
| 2 | # directories to be included in the build |
| 3 | -include lk_inc.mk |
| 4 | |
| 5 | LKMAKEROOT ?= . |
| 6 | LKROOT ?= . |
| 7 | LKINC ?= |
| 8 | BUILDROOT ?= . |
| 9 | DEFAULT_PROJECT ?= |
| 10 | TOOLCHAIN_PREFIX ?= |
| 11 | |
| 12 | # check if LKROOT is already a part of LKINC list and add it only if it is not |
| 13 | ifeq ($(filter $(LKROOT),$(LKINC)), ) |
| 14 | LKINC := $(LKROOT) $(LKINC) |
| 15 | endif |
| 16 | |
| 17 | export LKMAKEROOT |
| 18 | export LKROOT |
| 19 | export LKINC |
| 20 | export BUILDROOT |
| 21 | export DEFAULT_PROJECT |
| 22 | export TOOLCHAIN_PREFIX |
| 23 | export SECURE_BOOT_ENABLE |
| 24 | export SECURE_BOOT_TYPE |
| 25 | export AB_OTA_UPDATER |
| 26 | export AVB_ENABLE_ANTIROLLBACK |
| 27 | |
| 28 | # vaneer makefile that calls into the engine with lk as the build root |
| 29 | # if we're the top level invocation, call ourselves with additional args |
| 30 | $(MAKECMDGOALS) _top: |
| 31 | @$(MAKE) -C $(LKMAKEROOT) -rR -f $(LKROOT)/engine.mk $(addprefix -I,$(LKINC)) $(MAKECMDGOALS) |
| 32 | |
| 33 | .PHONY: _top |