blob: 7adba146a037453e5973c938af194b9436a02225 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# 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
5LKMAKEROOT ?= .
6LKROOT ?= .
7LKINC ?=
8BUILDROOT ?= .
9DEFAULT_PROJECT ?=
10TOOLCHAIN_PREFIX ?=
11
12# check if LKROOT is already a part of LKINC list and add it only if it is not
13ifeq ($(filter $(LKROOT),$(LKINC)), )
14LKINC := $(LKROOT) $(LKINC)
15endif
16
17export LKMAKEROOT
18export LKROOT
19export LKINC
20export BUILDROOT
21export DEFAULT_PROJECT
22export TOOLCHAIN_PREFIX
23export SECURE_BOOT_ENABLE
24export SECURE_BOOT_TYPE
25export AB_OTA_UPDATER
26export 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