diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2014-05-29 17:40:02 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-06-30 09:53:17 -0500 |
commit | e84ce96dec683aba25ba5e620cef053fb588bbce (patch) | |
tree | 9027f9060142fe853745fe507774df4751906b6e /makefile | |
parent | 0318811461d9f95eccecfc77815922734e7f3077 (diff) | |
download | talos-hostboot-e84ce96dec683aba25ba5e620cef053fb588bbce.tar.gz talos-hostboot-e84ce96dec683aba25ba5e620cef053fb588bbce.zip |
Configuration-based compile
RTC: 88436
Change-Id: Iab68e6a14641829ef29165694f5196f0ad437114
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11374
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -23,6 +23,13 @@ SUBDIRS = src.d ROOTPATH = . +CONFIG_FILE ?= default + +GEN_PASS_PRE += $(GENDIR)/.$(notdir $(CONFIG_FILE)).config +CLEAN_TARGETS += $(wildcard $(GENDIR)/.*.config) +CLEAN_TARGETS += $(GENDIR)/config.mk $(GENDIR)/config.h +SKIP_CONFIG_FILE_LOAD = 1 + IMAGE_PASS_POST += $(GENDIR)/hwp_id.html CLEAN_TARGETS += $(GENDIR)/hwp_id.html ifndef BUILD_MINIMAL @@ -57,4 +64,18 @@ $(GENDIR)/hwp_id.html : check_istep_modules: $(OBJS) listdeps.pl $(IMGDIR) -v +GENCONFIG_TOOL = src/build/tools/hbGenConfig +$(GENDIR)/.$(notdir $(CONFIG_FILE)).config: \ + $(shell find -name HBconfig) \ + $(filter-out $(GENDIR)/.$(notdir $(CONFIG_FILE)).config,\ + $(wildcard $(GENDIR)/.*.config)) \ + $(GENCONFIG_TOOL) \ + $(filter-out default,$(CONFIG_FILE)) + @mkdir -p $(GENDIR) + $(C2) " GENCONFIG" + $(C1)$(GENCONFIG_TOOL) $(CONFIG_FILE) \ + $(filter-out $(GENCONFIG_TOOL) $(CONFIG_FILE) \ + $(wildcard $(GENDIR)/.*.config),$^) + @rm -f $(wildcard $(GENDIR)/.*.config) + @touch $@ |