summaryrefslogtreecommitdiffstats
path: root/src/usr/hwpf/makefile
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2011-08-12 11:03:30 -0500
committerNicholas E. Bofferding <bofferdn@us.ibm.com>2011-08-19 15:08:51 -0500
commit2935ed01dae82a91c1bb4c181fd36cc42b2efaf9 (patch)
treeedbde05a7cf666342b704b2eb069e6dfbcbd96c5 /src/usr/hwpf/makefile
parent02991f3ecb7356dc989148710e7ca40df0f7437c (diff)
downloadblackbird-hostboot-2935ed01dae82a91c1bb4c181fd36cc42b2efaf9.tar.gz
blackbird-hostboot-2935ed01dae82a91c1bb4c181fd36cc42b2efaf9.zip
HWPF Error Info Support
Change-Id: Ib060599a4b64e768cbc75184a050e851c0a39c4e Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/250 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Diffstat (limited to 'src/usr/hwpf/makefile')
-rw-r--r--src/usr/hwpf/makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/usr/hwpf/makefile b/src/usr/hwpf/makefile
index 55de95dc0..693422150 100644
--- a/src/usr/hwpf/makefile
+++ b/src/usr/hwpf/makefile
@@ -1,14 +1,21 @@
ROOTPATH = ../../..
MODULE = hwpf
-GENFILES = fapiHwpReturnCodes.H fapiAttributeIds.H
+GENFILES = gen_errfiles fapiAttributeIds.H
SUBDIRS = fapi.d hwp.d plat.d test.d
include ${ROOTPATH}/config.mk
-${GENDIR}/fapiHwpReturnCodes.H : fapi/fapiParseErrorInfo.pl hwp/fapiHwpErrorInfo.xml
- $< ${GENDIR} $(filter-out $<,$^)
+# fapiParseErrorInfo.pl produces multiple output files. Use a dummy target to
+# create a single rule to create all files so that the script is only run once
+# (instead of once for each output file which could fail in a parallel build).
+# The disadvantage is that the script is always run, even if there are no
+# updates, but it is safe and there is no easy solution
+${GENDIR}/gen_errfiles : fapi/fapiParseErrorInfo.pl hwp/fapiHwpErrorInfo.xml
+ $< ${GENDIR} $(filter-out $<,$^)
+# fapiParseAttributeInfo.pl produces a single output file so a standard rule
+# will work
${GENDIR}/fapiAttributeIds.H : fapi/fapiParseAttributeInfo.pl hwp/fapiHwpAttributeInfo.xml
- $< ${GENDIR} $(filter-out $<,$^)
+ $< ${GENDIR} $(filter-out $<,$^)
OpenPOWER on IntegriCloud