derle.sh 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. sed -i -e 's,freetype/ftsynth.h,freetype2/ftsynth.h,' util/grub-mkfont.c
  2. sed 's|GNU/Linux|Linux|' -i "util/grub.d/10_linux.in"
  3. ./bootstrap --gnulib-srcdir="${SRC}/gnulib-9ce9be2ef0cb1180e35dfe9dfbbe90d774b374bd/" --no-git
  4. unset CFLAGS
  5. unset CPPFLAGS
  6. unset CXXFLAGS
  7. unset LDFLAGS
  8. unset MAKEFLAGS
  9. common_confs+="--enable-device-mapper --enable-cache-stats --enable-nls
  10. --enable-grub-mount --enable-boot-time"
  11. # --enable-grub-mkfont
  12. # fix unifont.bdf location so grub-mkfont can create *.pf2 files
  13. sed -i 's|/usr/share/fonts/unifont|/usr/share/fonts/misc|' configure
  14. #patch grub-core/disk/mdraid1x_linux.c $SRC/mdraid1x-gcc10.patch
  15. #patch -Np1 -i $SRC/zsf-grub-gcc10.patch
  16. cp -r "${SRC}/grub-8fcfd1e0fc72d58766ce3dc09cf883c032f063f6/" ${SRC}/grub-efi
  17. export M4=m4
  18. ./configure $CONF_OPT \
  19. --with-platform="pc" \
  20. --target="i386" \
  21. --enable-efiemu \
  22. $common_conf
  23. make
  24. cd ${SRC}/grub-efi
  25. ./autogen.sh
  26. ./configure $CONF_OPT \
  27. --with-platform="efi" \
  28. --target="x86_64" \
  29. --disable-efiemu \
  30. $common_conf
  31. make