You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
#!/usr/bin/env bash |
|
|
|
unset {C,CPP,CXX,LD}FLAGS |
|
|
|
sed 's/--image-base/--nonexist-linker-option/' -i configure |
|
|
|
case $(cat /sources/.lfs_grub.txt) in |
|
bios) |
|
./configure --prefix=/usr \ |
|
--sysconfdir=/etc \ |
|
--disable-efiemu \ |
|
--disable-werror |
|
make |
|
make install |
|
;; |
|
uefi) |
|
case $(uname -m) in |
|
i?86) |
|
./configure --prefix=/usr \ |
|
--sysconfdir=/etc \ |
|
--target=i386 \ |
|
--with-platform=efi \ |
|
--disable-efiemu \ |
|
--disable-werror |
|
make |
|
make install |
|
;; |
|
x86_64) |
|
./configure --prefix=/usr \ |
|
--sysconfdir=/etc \ |
|
--target=x86_64 \ |
|
--with-platform=efi \ |
|
--disable-efiemu \ |
|
--disable-werror |
|
make |
|
make install |
|
;; |
|
*) |
|
echo "Architecture not implemented" |
|
exit 1 |
|
;; |
|
esac |
|
;; |
|
*) |
|
echo "grub mode incorrect" |
|
cat /sources/.lfs_grub.txt |
|
exit 1 |
|
;; |
|
esac
|
|
|