summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/xmltohb/makefile
diff options
context:
space:
mode:
authorMike Jones <mjjones@us.ibm.com>2012-01-03 10:33:01 -0600
committerMIKE J. JONES <mjjones@us.ibm.com>2012-01-09 08:45:28 -0600
commita8ac662f8643211032077043eace4b92108fc5fe (patch)
treea6711b7173ea44e2fc9c2f8f13c127bf21ec1a70 /src/usr/targeting/xmltohb/makefile
parent7de0708eac63bb81786c2a5e794c5d6fbef069c4 (diff)
downloadtalos-hostboot-a8ac662f8643211032077043eace4b92108fc5fe.tar.gz
talos-hostboot-a8ac662f8643211032077043eace4b92108fc5fe.zip
HWPF: Add support for memory HWPF attributes
Change-Id: I945224b9d4acf25730b5c9c8bee384b6a3669104 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/588 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/xmltohb/makefile')
-rw-r--r--src/usr/targeting/xmltohb/makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/usr/targeting/xmltohb/makefile b/src/usr/targeting/xmltohb/makefile
index b6234fc60..4e61e142f 100644
--- a/src/usr/targeting/xmltohb/makefile
+++ b/src/usr/targeting/xmltohb/makefile
@@ -46,7 +46,8 @@ XMLTOHB_TARGETS = \
XMLTOHB_GENERIC_SOURCES = attribute_types.xml target_types.xml
XMLTOHB_FAPIATTR_SOURCES = \
- ${ROOTPATH}/src/usr/hwpf/hwp/fapiHwpAttributeInfo.xml
+ ${ROOTPATH}/src/usr/hwpf/hwp/fapiHwpAttributeInfo.xml \
+ ${ROOTPATH}/src/usr/hwpf/hwp/memory_attributes.xml
VMM_CONSTS_FILE = \
${ROOTPATH}/src/include/usr/vmmconst.h
@@ -57,7 +58,7 @@ EXTRA_PARTS = $(addprefix $(IMGDIR)/, $(XMLTOHB_SYSTEM_BINARIES))
EXTRA_CLEAN = $(addprefix $(GENDIR)/, ${XMLTOHB_SYSTEM_BINARIES}) \
$(addprefix $(GENDIR)/, ${XMLTOHB_SYSTEM_BINARIES:.bin=.xml}) \
- ${GENDIR}/generic.xml
+ ${GENDIR}/generic.xml ${GENDIR}/fapiattrs.xml
include ${ROOTPATH}/config.mk
@@ -71,12 +72,15 @@ ${EXTRA_PARTS}: ${IMGDIR}/% : ${GENDIR}/%
${GENDIR}/generic.xml: ${XMLTOHB_GENERIC_SOURCES}
./mergexml.sh $^ > $@
+# merge all FAPI attribute files into one
+${GENDIR}/fapiattrs.xml: ${XMLTOHB_FAPIATTR_SOURCES}
+ ./mergexml.sh $^ > $@
+
# create the header files, only needs generic xml
$(call GENTARGET,$(XMLTOHB_TARGETS)) : \
- xmltohb.pl ${GENDIR}/generic.xml ${XMLTOHB_FAPIATTR_SOURCES}
+ xmltohb.pl ${GENDIR}/generic.xml ${GENDIR}/fapiattrs.xml
./$< $(addprefix --hb-xml-file=,${GENDIR}/generic.xml) \
- $(addprefix --fapi-attributes-xml-file=,\
- ${XMLTOHB_FAPIATTR_SOURCES}) \
+ $(addprefix --fapi-attributes-xml-file=,${GENDIR}/fapiattrs.xml) \
--src-output-dir=$(dir $@) --img-output-dir=none \
--img-output-file=none
@@ -85,14 +89,10 @@ ${GENDIR}/%.hb.xml: %.system.xml ${XMLTOHB_GENERIC_SOURCES}
./mergexml.sh $^ > $@
# create the binary files
-${GENDIR}/%_targeting.bin: xmltohb.pl ${GENDIR}/%.hb.xml ${XMLTOHB_FAPIATTR_SOURCES} ${VMM_CONSTS_FILE}
+${GENDIR}/%_targeting.bin: xmltohb.pl ${GENDIR}/%.hb.xml ${GENDIR}/fapiattrs.xml ${VMM_CONSTS_FILE}
./$< $(addprefix --hb-xml-file=,${GENDIR}/$*.hb.xml) \
- $(addprefix --fapi-attributes-xml-file=,\
- ${XMLTOHB_FAPIATTR_SOURCES}) \
+ $(addprefix --fapi-attributes-xml-file=,${GENDIR}/fapiattrs.xml) \
--src-output-dir=none --img-output-dir=$(dir $@) \
--img-output-file=$(notdir $@) \
--vmm-consts-file=$(VMM_CONSTS_FILE)
-
-
-
OpenPOWER on IntegriCloud