configure 580 B

123456789101112131415161718192021222324252627282930
  1. #!/usr/bin/env bash
  2. # grub-pc-bin: without it, grub-mkrescue just fails, and you have no idea why!
  3. # We love you, GRUB.
  4. # https://superuser.com/questions/603051/grub-mkrescue-not-producing-bootable-image/973021#973021
  5. # https://github.com/cirosantilli/x86-bare-metal-examples/issues/5#issuecomment-377948357
  6. # https://wiki.osdev.org/Bare_Bones
  7. if [ $# -eq 1 ]; then
  8. sudo=
  9. y=-y
  10. else
  11. sudo=sudo
  12. y=
  13. fi
  14. $sudo apt-get install $y \
  15. bochs \
  16. bochs-sdl \
  17. build-essential \
  18. gcc \
  19. gcc-multilib \
  20. gdb \
  21. gnu-efi \
  22. grub-pc-bin \
  23. make \
  24. nasm \
  25. qemu \
  26. xorriso\
  27. ;