mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-29 16:58:10 +00:00
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:
parent
a0ed20b71a
commit
4eb36c150d
@ -45,11 +45,24 @@ transform() {
|
|||||||
echo "${1} was generated using xsltproc successfully."
|
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.c
|
||||||
transform vm_configurations.h
|
transform vm_configurations.h
|
||||||
transform pt_intx.c
|
transform pt_intx.c
|
||||||
transform ivshmem_cfg.h
|
transform ivshmem_cfg.h
|
||||||
transform misc_cfg.h
|
transform misc_cfg.h
|
||||||
|
transform pci_dev.c
|
||||||
|
transform_board board_info.h
|
||||||
|
|
||||||
if which clang-format ; then
|
if which clang-format ; then
|
||||||
find ${out}/scenarios/${scenario} -iname *.h -o -iname *.c \
|
find ${out}/scenarios/${scenario} -iname *.h -o -iname *.c \
|
||||||
|
Loading…
Reference in New Issue
Block a user