summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--makefile7
-rw-r--r--src/makefile6
-rw-r--r--src/usr/errl/parser/makefile7
-rw-r--r--src/usr/targeting/xmltohb/makefile9
4 files changed, 18 insertions, 11 deletions
diff --git a/makefile b/makefile
index a9d575f1e..db19e0feb 100644
--- a/makefile
+++ b/makefile
@@ -23,8 +23,8 @@
SUBDIRS = src.d
ROOTPATH = .
-IMAGE_PASS_BODY += $(GENDIR)/hwp_id.html $(IMGDIR)/hbotStringFile
-CLEAN_TARGETS += $(GENDIR)/hwp_id.html $(IMGDIR)/hbotStringFile
+IMAGE_PASS_BODY += $(GENDIR)/hwp_id.html
+CLEAN_TARGETS += $(GENDIR)/hwp_id.html
IMAGE_PASS_BODY += cscope ctags check_istep_modules
include ./config.mk
@@ -47,9 +47,6 @@ gcov:
--title `git describe --dirty`
@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 > $@
diff --git a/src/makefile b/src/makefile
index 014988e3d..5ed063483 100644
--- a/src/makefile
+++ b/src/makefile
@@ -97,7 +97,13 @@ hbicore_test_DATA_MODULES = ${hbicore_DATA_MODULES} testdata
IMAGE_PASS_BODY += buildpnor
+IMAGE_PASS_BODY += $(IMGDIR)/hbotStringFile
+CLEAN_TARGETS += $(IMGDIR)/hbotStringFile
+
include ${ROOTPATH}/config.mk
buildpnor: ${IMAGES}
cd build/buildpnor/ && ${MAKE} buildpnor
+
+$(IMGDIR)/hbotStringFile : $(IMAGES)
+ $(ROOTPATH)/src/build/trace/tracehash_hb.pl -c -d $(ROOTPATH)/obj -s $@
diff --git a/src/usr/errl/parser/makefile b/src/usr/errl/parser/makefile
index 386ab9b5e..3cf63bba6 100644
--- a/src/usr/errl/parser/makefile
+++ b/src/usr/errl/parser/makefile
@@ -59,6 +59,7 @@ endif
CODE_PASS: ${IMGDIR}/errlparser
+.PHONY: mkdirs
mkdirs:
mkdir -p ${OBJDIR}
mkdir -p ${GENDIR}/plugins
@@ -67,11 +68,11 @@ mkdirs:
${ERRLPARSE_TARGETS} : gen_errl_parsers
.PHONY: gen_errl_parsers
-gen_errl_parsers:
+gen_errl_parsers: mkdirs
./genErrlParsers.pl -b ${ROOTPATH} -o ${GENDIR}/plugins
-${GENDIR}/comps.C: ${ROOTPATH}/src/include/usr/hbotcompid.H
- grep "const compId_t [A-Z0-9]*_COMP_ID" $^ | \
+${GENDIR}/comps.C: ${ROOTPATH}/src/include/usr/hbotcompid.H mkdirs
+ grep "const compId_t [A-Z0-9]*_COMP_ID" $< | \
grep -v MY_COMP_ID | \
sed 's/const compId_t \([A-Z0-9]*\)_COMP_ID[ =\t]*\(0[xX][0-9a-fA-F]*\).*/{ "\1", \2 },/' \
> $@
diff --git a/src/usr/targeting/xmltohb/makefile b/src/usr/targeting/xmltohb/makefile
index 000aabd8a..f233103b7 100644
--- a/src/usr/targeting/xmltohb/makefile
+++ b/src/usr/targeting/xmltohb/makefile
@@ -106,6 +106,9 @@ make_gendir_errl:
@mkdir -p $(GENDIR_ERRL)
GEN_PASS_PRE += make_gendir_errl
+XMLTOHB_RAN_INDICATION = $(GENDIR)/.called_xmltohb_compiler
+CLEAN_TARGETS += $(XMLTOHB_RAN_INDICATION)
+
include ${ROOTPATH}/config.mk
# Delete any generated file on error
@@ -131,9 +134,8 @@ ${GENDIR}/${XMLTOHB_FAPI_XML}: ${XMLTOHB_MERGE_SCRIPT} \
$< $^ > $@
# create the header files, only needs generic xml
-$(call GENTARGET,$(XMLTOHB_TARGETS)) : call_xmltohb_compiler
-.PHONY: call_xmltohb_compiler
-call_xmltohb_compiler: ${XMLTOHB_COMPILER_SCRIPT} \
+$(call GENTARGET,$(XMLTOHB_TARGETS)) : $(XMLTOHB_RAN_INDICATION)
+$(XMLTOHB_RAN_INDICATION): ${XMLTOHB_COMPILER_SCRIPT} \
${GENDIR}/${XMLTOHB_GENERIC_XML} ${GENDIR}/${XMLTOHB_FAPI_XML}
$< $(addprefix --hb-xml-file=,${GENDIR}/${XMLTOHB_GENERIC_XML}) \
$(addprefix --fapi-attributes-xml-file=,${GENDIR}/${XMLTOHB_FAPI_XML}) \
@@ -141,6 +143,7 @@ call_xmltohb_compiler: ${XMLTOHB_COMPILER_SCRIPT} \
--img-output-file=none
cp ${GENDIR_ERRL}/errludattribute.H ${GENDIR_PLUGINS}
cp ${GENDIR_ERRL}/errludtarget.H ${GENDIR_PLUGINS}
+ touch $(XMLTOHB_RAN_INDICATION)
# system-specific XML needs the generic plus the xxx.system.xml file + the
# MRW file
OpenPOWER on IntegriCloud