[make] Cleanup overlay processing order

Add LKROOT to LKINC only if it is not already there.
This would allow to specify particular overlay processing
order if required.

Remove adding separate LKROOT/include to GLOBAL_DEFINES as
It is already a part of LKINC list.

Add all directories specified by LKINC to GLOBAL_LDFLAGS instead
of just LKROOT

Change-Id: Ia61623f88f2c5978182c40b09d98b6e5b84e3955
This commit is contained in:
Michael Ryleev
2014-10-16 09:18:51 -07:00
committed by Arve Hjønnevåg
parent c22b2f4576
commit fba0af578c
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,10 @@ BUILDROOT ?= .
DEFAULT_PROJECT ?=
TOOLCHAIN_PREFIX ?=
# check if LKROOT is already a part of LKINC list and add it only if it is not
ifneq ($(findstring $(LKROOT),$(LKINC)), $(LKROOT))
LKINC := $(LKROOT) $(LKINC)
endif
export LKMAKEROOT
export LKROOT