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 /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 'makefile')
-rw-r--r-- | makefile | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -23,21 +23,37 @@ SUBDIRS = src.d ROOTPATH = . -EXTRA_PARTS = ${GENDIR}/hwp_id.html check_istep_modules cscope ctags +IMAGE_PASS_BODY += $(GENDIR)/hwp_id.html $(IMGDIR)/hbotStringFile +CLEAN_TARGETS += $(GENDIR)/hwp_id.html $(IMGDIR)/hbotStringFile +IMAGE_PASS_BODY += cscope ctags check_istep_modules include ./config.mk +.PHONY: docs docs: src/build/doxygen/doxygen.conf rm -rf obj/doxygen/* doxygen src/build/doxygen/doxygen.conf +.PHONY: citest citest: src/build/citest/cxxtest-start.sh +.PHONY: gcov gcov: rm -rf obj/gcov/* - make gcov_pass + $(MAKE) gcov_pass find obj/gcov/ -size 0c | xargs rm # Delete empty files. genhtml obj/gcov/*.lcov -o obj/gcov/html @echo "View GCOV results with: firefox obj/gcov/html/index.html" +$(IMGDIR)/hbotStringFile : $(IMAGES) + $(ROOTPATH)/src/build/trace/tracehash_hb.pl -c -d $(ROOTPATH)/obj -s $@ + +$(GENDIR)/hwp_id.html : + $(ROOTPATH)/src/build/tools/hwp_id.pl -i -l > $@ + +.PHONY: check_istep_modules +check_istep_modules: $(OBJS) + listdeps.pl $(IMGDIR) -v + + |