X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/85f6f3213f81e0b32b0698fc51998540a91cc159..3929ed55caa6f3893f7fa7462dbb8091e4310aff:/GRUB2/buildgrub.sh diff --git a/GRUB2/buildgrub.sh b/GRUB2/buildgrub.sh index 7aefe1b..a9de4f5 100644 --- a/GRUB2/buildgrub.sh +++ b/GRUB2/buildgrub.sh @@ -11,7 +11,7 @@ mkdir SRC mkdir NBP mkdir PXE -tar -xvf grub-2.04.tar.xz -C ./SRC/ +tar -xf grub-2.04.tar.xz -C ./SRC/ /bin/cp -a ./MOD_SRC/grub-2.04 ./SRC/ @@ -19,23 +19,26 @@ cd ./SRC/grub-2.04 # build for x86_64-efi +echo '======== build grub2 for x86_64-efi ===============' make distclean ./autogen.sh ./configure --with-platform=efi --prefix=$VT_GRUB_DIR/INSTALL/ -make -j 16 +make -j 16 || exit 1 sh install.sh uefi #build for i386-efi +echo '======== build grub2 for i386-efi ===============' make distclean ./autogen.sh ./configure --target=i386 --with-platform=efi --prefix=$VT_GRUB_DIR/INSTALL/ -make -j 16 +make -j 16 || exit 1 sh install.sh i386efi #build for arm64 EFI +echo '======== build grub2 for arm64-efi ===============' PATH=$PATH:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin make distclean ./autogen.sh @@ -48,15 +51,17 @@ TARGET_CC=aarch64-linux-gnu-gcc \ TARGET_OBJCOPY=aarch64-linux-gnu-objcopy \ TARGET_STRIP=aarch64-linux-gnu-strip TARGET_NM=aarch64-linux-gnu-nm \ TARGET_RANLIB=aarch64-linux-gnu-ranlib -make -j 16 +make -j 16 || exit 1 sh install.sh arm64 # build for i386-pc +echo '======== build grub2 for i386-pc ===============' +make distclean ./autogen.sh -./configure --prefix=$VT_GRUB_DIR/INSTALL/ -make -j 16 +./configure --target=i386 --with-platform=pc --prefix=$VT_GRUB_DIR/INSTALL/ +make -j 16 || exit 1 sh install.sh