From 4eb36c150d44a6360ba922f8a7d762a4158acd59 Mon Sep 17 00:00:00 2001 From: "Yang,Yu-chu" Date: Tue, 11 May 2021 16:31:48 -0700 Subject: [PATCH] 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 Reviewed-by: Junjie Mao --- hypervisor/scripts/genconf.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hypervisor/scripts/genconf.sh b/hypervisor/scripts/genconf.sh index b6f9c2206..65963c2e9 100644 --- a/hypervisor/scripts/genconf.sh +++ b/hypervisor/scripts/genconf.sh @@ -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 \