diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-02-27 18:58:30 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-03-01 14:30:16 -0600 |
commit | b3d259d970c91fb8ac3b931e5409dd8cecca699f (patch) | |
tree | 156802817d5d014f4affd01eaa1a5332c0491054 /src/usr/errl/parser/makefile | |
parent | c51452c00b0e2bf2510d63e6863e3cd9802ee711 (diff) | |
download | talos-hostboot-b3d259d970c91fb8ac3b931e5409dd8cecca699f.tar.gz talos-hostboot-b3d259d970c91fb8ac3b931e5409dd8cecca699f.zip |
Refactoring of the build system.
- Remove unused files for generating LIDs.
- Reduce the overall verbosity of the build.
- Separate 'config.mk' into a number of smaller, topic-centric
files and comment better.
- Generalize the 'passes' concept and added an IMAGES pass.
- Deprecate most "magic" make variables like EXTRAFOO.
- Overall performance improvements.
I've tried to reduce the impact of these changes on component-level
makefiles. There will be follow-up commit(s) to improve those and
decrease the verbosity of some component-owned commands.
Change-Id: I6d319f5338eb3946f56b281c3cdd5f341a016fcc
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/3368
Reviewed-by: Brian H. Horton <brianh@linux.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/errl/parser/makefile')
-rw-r--r-- | src/usr/errl/parser/makefile | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/src/usr/errl/parser/makefile b/src/usr/errl/parser/makefile index 7e5628c05..10a4060ee 100644 --- a/src/usr/errl/parser/makefile +++ b/src/usr/errl/parser/makefile @@ -46,18 +46,28 @@ ERRLPARSE_TARGETS = \ CC=i686-mcp6-g++ -m32 CFLAGS:=-g -O0 -I $(ROOTPATH)/src/include/usr -I ${GENDIR} -all: gen_pass code_pass +all: GEN_PASS CODE_PASS -gen_pass: mkdirs ${GENDIR}/comps.C ${ERRLPARSE_TARGETS} +GEN_PASS: mkdirs ${GENDIR}/comps.C ${ERRLPARSE_TARGETS} -code_pass: ${IMGDIR}/errlparser +ifeq ($(MAKECMDGOALS),all) +CODE_PASS: GEN_PASS +endif +ifeq ($(MAKECMDGOALS),) +CODE_PASS: GEN_PASS +endif + +CODE_PASS: ${IMGDIR}/errlparser mkdirs: mkdir -p ${OBJDIR} mkdir -p ${GENDIR} # Generate error log parser code -${ERRLPARSE_TARGETS} :: +${ERRLPARSE_TARGETS} : gen_errl_parsers + +.PHONY: gen_errl_parsers +gen_errl_parsers: ./genErrlParsers.pl -b ${ROOTPATH} -o ${GENDIR}/plugins ${GENDIR}/comps.C: ${ROOTPATH}/src/include/usr/hbotcompid.H @@ -85,5 +95,6 @@ debug: ls -l ${OBJDIR} ls -l ${IMGDIR} -beam: - # dummy +BEAM_PASS: +IMAGE_PASS: +CLEAN_PASS: clean |