summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-02-15 22:43:08 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-02-16 00:53:22 +0000
commitdd3a4a4b7dd53f062109d6f922f71877978741a0 (patch)
treeed5c168906b4f06955184cc31a2e41630a390354 /Makefile
parent9e50c75cdbef825696072871cb439917cf15c2c8 (diff)
downloadchrome-ec-dd3a4a4b7dd53f062109d6f922f71877978741a0.tar.gz
build private files if present
If we have a private/ directory, check the build.mk there and build the content, else safely ignore that part of the build. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST="make BOARD=link" with and without a private directory containing some code with new console commands. Run the firmware and check if the console commands are actually present. Change-Id: I690ed97be24d029628e4acf508299dcbab657100
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 331be13137..e6c779f12b 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ $(foreach c,$(_tsk_cfg) $(_flag_cfg),$(eval $(c)=y))
CPPFLAGS+=$(foreach t,$(_tsk_cfg),-D$(t))
# Get build configuration from sub-directories
+-include private/build.mk
include board/$(BOARD)/build.mk
include chip/$(CHIP)/build.mk
include core/$(CORE)/build.mk
@@ -40,9 +41,10 @@ objs_from_dir=$(foreach obj,$(2), $(out)/$(1)/$(obj))
all-y=$(call objs_from_dir,core/$(CORE),$(core-y))
all-y+=$(call objs_from_dir,chip/$(CHIP),$(chip-y))
all-y+=$(call objs_from_dir,board/$(BOARD),$(board-y))
+all-y+=$(call objs_from_dir,private,$(private-y))
all-y+=$(call objs_from_dir,common,$(common-y))
all-y+=$(call objs_from_dir,test,$($(PROJECT)-y))
-dirs=core/$(CORE) chip/$(CHIP) board/$(BOARD) common test util
+dirs=core/$(CORE) chip/$(CHIP) board/$(BOARD) private common test util
includes=include core/$(CORE)/include $(dirs)
include Makefile.rules