From 5e6b0800bd8ab60b380bdf8d1fc61fd34c125e4b Mon Sep 17 00:00:00 2001 From: longpanda Date: Fri, 8 Jan 2021 09:28:16 +0800 Subject: [PATCH] update edk build script for ia32 #690 --- EDK2/buildedk.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/EDK2/buildedk.sh b/EDK2/buildedk.sh index bc99afc8..5197b0d1 100644 --- a/EDK2/buildedk.sh +++ b/EDK2/buildedk.sh @@ -11,17 +11,24 @@ cd edk2-edk2-stable201911 VTEFI_PATH=Build/MdeModule/RELEASE_GCC48/X64/MdeModulePkg/Application/Ventoy/Ventoy/OUTPUT/Ventoy.efi DST_PATH=../../INSTALL/ventoy/ventoy_x64.efi +VTEFI_PATH2=Build/MdeModule/RELEASE_GCC48/IA32/MdeModulePkg/Application/Ventoy/Ventoy/OUTPUT/Ventoy.efi +DST_PATH2=../../INSTALL/ventoy/ventoy_ia32.efi + rm -f $VTEFI_PATH rm -f $DST_PATH +rm -f $VTEFI_PATH2 +rm -f $DST_PATH2 make -j 4 -C BaseTools/ source ./edksetup.sh -build -p MdeModulePkg/MdeModulePkg.dsc -a X64 -b RELEASE -t GCC48 +build -p MdeModulePkg/MdeModulePkg.dsc -a X64 -b RELEASE -t GCC48 +build -p MdeModulePkg/MdeModulePkg.dsc -a IA32 -b RELEASE -t GCC48 -if [ -e $VTEFI_PATH ]; then +if [ -e $VTEFI_PATH ] && [ -e $VTEFI_PATH2 ]; then echo -e '\n\n====================== SUCCESS ========================\n\n' - cp -a $VTEFI_PATH $DST_PATH + cp -a $VTEFI_PATH $DST_PATH + cp -a $VTEFI_PATH2 $DST_PATH2 cd .. else echo -e '\n\n====================== FAILED ========================\n\n'