buildgrub.sh 631 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

VT_GRUB_DIR=$PWD

rm -rf INSTALL
rm -rf SRC
rm -rf NBP
rm -rf PXE

mkdir SRC
mkdir NBP
mkdir PXE

tar -xvf grub-2.04.tar.xz -C ./SRC/

/bin/cp -a ./MOD_SRC/grub-2.04  ./SRC/

cd ./SRC/grub-2.04

# build for Legacy BIOS 
./autogen.sh
./configure  --prefix=$VT_GRUB_DIR/INSTALL/
make -j 16
sh install.sh

# build for UEFI
make distclean
./autogen.sh
./configure  --with-platform=efi --prefix=$VT_GRUB_DIR/INSTALL/
make -j 16
sh install.sh  uefi


longpanda's avatar
longpanda committed
34
35
36
37
38
39
40
41
#build for IA32 EFI
make distclean
./autogen.sh
./configure --target=i386 --with-platform=efi  --prefix=$VT_GRUB_DIR/INSTALL/
make -j 16
sh install.sh  i386efi


42
43
cd ../../