config-tools: build acrn with xslt generated pci_dev.c and board_info.h

Build acrn using xslt transformed pci_dev.c and board_info.h.

Tracked-On: #6024
Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Yang,Yu-chu 2021-05-11 16:31:48 -07:00 committed by wenlingz
parent a0ed20b71a
commit 4eb36c150d

View File

@ -45,11 +45,24 @@ transform() {
echo "${1} was generated using xsltproc successfully."
}
transform_board() {
echo "Generating ${1}:"
xsltproc -o ${out}/boards/${1} --xinclude --xincludestyle ${tool_dir}/xforms/${1}.xsl ${unified_xml}
if [ $? -ne 0 ]; then
echo "Failed to generate ${1} with xsltproc!"
exit 1
fi
sed -i -e "s/YEAR/$year/" ${out}/boards/${1}
echo "${1} was generated using xsltproc successfully."
}
transform vm_configurations.c
transform vm_configurations.h
transform pt_intx.c
transform ivshmem_cfg.h
transform misc_cfg.h
transform pci_dev.c
transform_board board_info.h
if which clang-format ; then
find ${out}/scenarios/${scenario} -iname *.h -o -iname *.c \