├── .gitignore ├── ABOUT-NLS ├── AUTHORS ├── BUGS ├── COPYING ├── ChangeLog-2015 ├── INSTALL ├── Makefile.am ├── Makefile.util.def ├── NEWS ├── README ├── THANKS ├── TODO ├── acinclude.m4 ├── asm-tests ├── arm.S ├── i386-pc.S ├── i386.S ├── mips.S ├── powerpc.S └── sparc64.S ├── autogen.sh ├── build-aux ├── config.rpath ├── gitlog-to-changelog └── snippet │ ├── _Noreturn.h │ ├── arg-nonnull.h │ ├── c++defs.h │ └── warn-on-use.h ├── conf ├── Makefile.common ├── Makefile.extra-dist └── i386-cygwin-img-ld.sc ├── config.h.in ├── configure.ac ├── coreboot.cfg ├── docs ├── Makefile.am ├── autoiso.cfg ├── fdl.texi ├── font_char_metrics.png ├── font_char_metrics.txt ├── grub-dev.texi ├── grub.cfg ├── grub.texi ├── man │ ├── grub-bios-setup.h2m │ ├── grub-editenv.h2m │ ├── grub-emu.h2m │ ├── grub-file.h2m │ ├── grub-fstest.h2m │ ├── grub-glue-efi.h2m │ ├── grub-install.h2m │ ├── grub-kbdcomp.h2m │ ├── grub-macbless.h2m │ ├── grub-macho2img.h2m │ ├── grub-menulst2cfg.h2m │ ├── grub-mkconfig.h2m │ ├── grub-mkfont.h2m │ ├── grub-mkimage.h2m │ ├── grub-mklayout.h2m │ ├── grub-mknetdir.h2m │ ├── grub-mkpasswd-pbkdf2.h2m │ ├── grub-mkrelpath.h2m │ ├── grub-mkrescue.h2m │ ├── grub-mkstandalone.h2m │ ├── grub-mount.h2m │ ├── grub-ofpathname.h2m │ ├── grub-pe2elf.h2m │ ├── grub-probe.h2m │ ├── grub-reboot.h2m │ ├── grub-render-label.h2m │ ├── grub-script-check.h2m │ ├── grub-set-default.h2m │ ├── grub-sparc64-setup.h2m │ └── grub-syslinux2cfg.h2m ├── mdate-sh ├── osdetect.cfg └── texinfo.tex ├── geninit.sh ├── gentpl.py ├── grub-core ├── Makefile.am ├── Makefile.core.def ├── boot │ ├── decompressor │ │ ├── minilib.c │ │ ├── none.c │ │ └── xz.c │ ├── i386 │ │ ├── pc │ │ │ ├── boot.S │ │ │ ├── cdboot.S │ │ │ ├── diskboot.S │ │ │ ├── lnxboot.S │ │ │ ├── lzma_decode.S │ │ │ ├── pxeboot.S │ │ │ └── startup_raw.S │ │ └── qemu │ │ │ └── boot.S │ ├── mips │ │ ├── loongson │ │ │ ├── fuloong2f.S │ │ │ └── fwstart.S │ │ └── startup_raw.S │ ├── powerpc │ │ ├── bootinfo.txt.in │ │ └── grub.chrp.in │ └── sparc64 │ │ └── ieee1275 │ │ ├── boot.S │ │ └── diskboot.S ├── bus │ ├── bonito.c │ ├── cs5536.c │ ├── emu │ │ └── pci.c │ ├── i386 │ │ └── ieee1275 │ │ │ └── pci.c │ ├── pci.c │ └── usb │ │ ├── ehci.c │ │ ├── ohci.c │ │ ├── serial │ │ ├── common.c │ │ ├── ftdi.c │ │ ├── pl2303.c │ │ └── usbdebug_late.c │ │ ├── uhci.c │ │ ├── usb.c │ │ ├── usbhub.c │ │ └── usbtrans.c ├── commands │ ├── acpi.c │ ├── acpihalt.c │ ├── arc │ │ └── lsdev.c │ ├── blocklist.c │ ├── boot.c │ ├── boottime.c │ ├── cacheinfo.c │ ├── cat.c │ ├── cmp.c │ ├── configfile.c │ ├── date.c │ ├── echo.c │ ├── efi │ │ ├── efifwsetup.c │ │ ├── fixvideo.c │ │ ├── getenv.c │ │ ├── loadbios.c │ │ ├── lsefi.c │ │ ├── lsefimmap.c │ │ ├── lsefisystab.c │ │ └── lssal.c │ ├── eval.c │ ├── extcmd.c │ ├── file.c │ ├── file32.c │ ├── file64.c │ ├── fileXX.c │ ├── fwconfig.c │ ├── gptprio.c │ ├── gptrepair.c │ ├── gptsync.c │ ├── halt.c │ ├── hashsum.c │ ├── hdparm.c │ ├── help.c │ ├── hexdump.c │ ├── i386 │ │ ├── cmosdump.c │ │ ├── cmostest.c │ │ ├── coreboot │ │ │ ├── cb_timestamps.c │ │ │ └── cbls.c │ │ ├── cpuid.c │ │ └── pc │ │ │ ├── drivemap.c │ │ │ ├── drivemap_int13h.S │ │ │ ├── halt.c │ │ │ ├── lsapm.c │ │ │ ├── play.c │ │ │ └── sendkey.c │ ├── ieee1275 │ │ └── suspend.c │ ├── iorw.c │ ├── keylayouts.c │ ├── keystatus.c │ ├── legacycfg.c │ ├── loadenv.c │ ├── ls.c │ ├── lsacpi.c │ ├── lsmmap.c │ ├── lspci.c │ ├── macbless.c │ ├── memrw.c │ ├── menuentry.c │ ├── minicmd.c │ ├── mips │ │ └── loongson │ │ │ └── lsspd.c │ ├── nativedisk.c │ ├── parttool.c │ ├── password.c │ ├── password_pbkdf2.c │ ├── pcidump.c │ ├── probe.c │ ├── read.c │ ├── reboot.c │ ├── regexp.c │ ├── search.c │ ├── search_disk_uuid.c │ ├── search_file.c │ ├── search_label.c │ ├── search_part_label.c │ ├── search_part_uuid.c │ ├── search_uuid.c │ ├── search_wrap.c │ ├── setpci.c │ ├── sleep.c │ ├── syslinuxcfg.c │ ├── terminal.c │ ├── test.c │ ├── testload.c │ ├── testspeed.c │ ├── time.c │ ├── tr.c │ ├── true.c │ ├── usbtest.c │ ├── verify.c │ ├── videoinfo.c │ ├── videotest.c │ ├── wildcard.c │ ├── xen │ │ └── lsxen.c │ └── xnu_uuid.c ├── disk │ ├── AFSplitter.c │ ├── ahci.c │ ├── arc │ │ └── arcdisk.c │ ├── ata.c │ ├── cryptodisk.c │ ├── diskfilter.c │ ├── dmraid_nvidia.c │ ├── efi │ │ └── efidisk.c │ ├── geli.c │ ├── host.c │ ├── i386 │ │ └── pc │ │ │ └── biosdisk.c │ ├── ieee1275 │ │ ├── nand.c │ │ └── ofdisk.c │ ├── ldm.c │ ├── loopback.c │ ├── luks.c │ ├── lvm.c │ ├── mdraid1x_linux.c │ ├── mdraid_linux.c │ ├── mdraid_linux_be.c │ ├── memdisk.c │ ├── pata.c │ ├── raid5_recover.c │ ├── raid6_recover.c │ ├── scsi.c │ ├── uboot │ │ └── ubootdisk.c │ ├── usbms.c │ └── xen │ │ └── xendisk.c ├── efiemu │ ├── i386 │ │ ├── coredetect.c │ │ ├── loadcore32.c │ │ ├── loadcore64.c │ │ ├── nocfgtables.c │ │ └── pc │ │ │ └── cfgtables.c │ ├── loadcore.c │ ├── loadcore32.c │ ├── loadcore64.c │ ├── loadcore_common.c │ ├── main.c │ ├── mm.c │ ├── pnvram.c │ ├── prepare.c │ ├── prepare32.c │ ├── prepare64.c │ ├── runtime │ │ ├── config.h │ │ ├── efiemu.S │ │ └── efiemu.c │ └── symbols.c ├── font │ ├── font.c │ └── font_cmd.c ├── fs │ ├── affs.c │ ├── afs.c │ ├── archelp.c │ ├── bfs.c │ ├── btrfs.c │ ├── cbfs.c │ ├── cpio.c │ ├── cpio_be.c │ ├── cpio_common.c │ ├── exfat.c │ ├── ext2.c │ ├── fat.c │ ├── fshelp.c │ ├── hfs.c │ ├── hfsplus.c │ ├── hfspluscomp.c │ ├── iso9660.c │ ├── jfs.c │ ├── minix.c │ ├── minix2.c │ ├── minix2_be.c │ ├── minix3.c │ ├── minix3_be.c │ ├── minix_be.c │ ├── newc.c │ ├── nilfs2.c │ ├── ntfs.c │ ├── ntfscomp.c │ ├── odc.c │ ├── proc.c │ ├── reiserfs.c │ ├── romfs.c │ ├── sfs.c │ ├── squash4.c │ ├── tar.c │ ├── udf.c │ ├── ufs.c │ ├── ufs2.c │ ├── ufs_be.c │ ├── xfs.c │ └── zfs │ │ ├── zfs.c │ │ ├── zfs_fletcher.c │ │ ├── zfs_lz4.c │ │ ├── zfs_lzjb.c │ │ ├── zfs_sha256.c │ │ ├── zfscrypt.c │ │ └── zfsinfo.c ├── gdb │ ├── cstub.c │ ├── gdb.c │ └── i386 │ │ ├── idt.c │ │ ├── machdep.S │ │ └── signal.c ├── gdb_grub.in ├── genemuinit.sh ├── genemuinitheader.sh ├── genmod.sh.in ├── genmoddep.awk ├── gensyminfo.sh.in ├── gensymlist.sh ├── gentrigtables.c ├── gettext │ └── gettext.c ├── gfxmenu │ ├── font.c │ ├── gfxmenu.c │ ├── gui_box.c │ ├── gui_canvas.c │ ├── gui_circular_progress.c │ ├── gui_image.c │ ├── gui_label.c │ ├── gui_list.c │ ├── gui_progress_bar.c │ ├── gui_string_util.c │ ├── gui_util.c │ ├── icon_manager.c │ ├── theme_loader.c │ ├── view.c │ └── widget-box.c ├── gmodule.pl.in ├── gnulib-fix-null-deref.diff ├── gnulib-fix-width.diff ├── gnulib-no-abort.diff ├── gnulib-no-gets.diff ├── gnulib │ ├── Makefile.am │ ├── alloca.c │ ├── alloca.in.h │ ├── argp-ba.c │ ├── argp-eexst.c │ ├── argp-fmtstream.c │ ├── argp-fmtstream.h │ ├── argp-fs-xinl.c │ ├── argp-help.c │ ├── argp-namefrob.h │ ├── argp-parse.c │ ├── argp-pin.c │ ├── argp-pv.c │ ├── argp-pvh.c │ ├── argp-xinl.c │ ├── argp.h │ ├── asnprintf.c │ ├── basename-lgpl.c │ ├── btowc.c │ ├── config.charset │ ├── dirname-lgpl.c │ ├── dirname.h │ ├── dosname.h │ ├── errno.in.h │ ├── error.c │ ├── error.h │ ├── float+.h │ ├── float.c │ ├── float.in.h │ ├── fnmatch.c │ ├── fnmatch.in.h │ ├── fnmatch_loop.c │ ├── getdelim.c │ ├── getline.c │ ├── getopt.c │ ├── getopt.in.h │ ├── getopt1.c │ ├── getopt_int.h │ ├── gettext.h │ ├── intprops.h │ ├── itold.c │ ├── langinfo.in.h │ ├── localcharset.c │ ├── localcharset.h │ ├── locale.in.h │ ├── localeconv.c │ ├── malloc.c │ ├── mbrtowc.c │ ├── mbsinit.c │ ├── mbsrtowcs-impl.h │ ├── mbsrtowcs-state.c │ ├── mbsrtowcs.c │ ├── mbswidth.c │ ├── mbswidth.h │ ├── mbtowc-impl.h │ ├── mbtowc.c │ ├── memchr.c │ ├── memchr.valgrind │ ├── mempcpy.c │ ├── msvc-inval.c │ ├── msvc-inval.h │ ├── msvc-nothrow.c │ ├── msvc-nothrow.h │ ├── nl_langinfo.c │ ├── printf-args.c │ ├── printf-args.h │ ├── printf-parse.c │ ├── printf-parse.h │ ├── progname.c │ ├── progname.h │ ├── rawmemchr.c │ ├── rawmemchr.valgrind │ ├── realloc.c │ ├── ref-add.sin │ ├── ref-del.sin │ ├── regcomp.c │ ├── regex.c │ ├── regex.h │ ├── regex_internal.c │ ├── regex_internal.h │ ├── regexec.c │ ├── size_max.h │ ├── sleep.c │ ├── stdalign.in.h │ ├── stdbool.in.h │ ├── stddef.in.h │ ├── stdint.in.h │ ├── stdio.in.h │ ├── stdlib.in.h │ ├── strcasecmp.c │ ├── strchrnul.c │ ├── strchrnul.valgrind │ ├── streq.h │ ├── strerror-override.c │ ├── strerror-override.h │ ├── strerror.c │ ├── string.in.h │ ├── strings.in.h │ ├── stripslash.c │ ├── strncasecmp.c │ ├── strndup.c │ ├── strnlen.c │ ├── strnlen1.c │ ├── strnlen1.h │ ├── sys_types.in.h │ ├── sysexits.in.h │ ├── unistd.c │ ├── unistd.in.h │ ├── unitypes.in.h │ ├── uniwidth.in.h │ ├── uniwidth │ │ ├── cjk.h │ │ └── width.c │ ├── vasnprintf.c │ ├── vasnprintf.h │ ├── verify.h │ ├── vsnprintf.c │ ├── wchar.in.h │ ├── wcrtomb.c │ ├── wctype-h.c │ ├── wctype.in.h │ ├── wcwidth.c │ ├── xsize.c │ └── xsize.h ├── hello │ └── hello.c ├── hook │ └── datehook.c ├── io │ ├── bufio.c │ ├── gzio.c │ ├── lzopio.c │ ├── offset.c │ └── xzio.c ├── kern │ ├── acpi.c │ ├── arm │ │ ├── cache.S │ │ ├── cache.c │ │ ├── cache_armv6.S │ │ ├── cache_armv7.S │ │ ├── compiler-rt.S │ │ ├── dl.c │ │ ├── dl_helper.c │ │ ├── efi │ │ │ ├── init.c │ │ │ ├── misc.c │ │ │ └── startup.S │ │ └── uboot │ │ │ └── startup.S │ ├── arm64 │ │ ├── cache.c │ │ ├── cache_flush.S │ │ ├── dl.c │ │ ├── dl_helper.c │ │ └── efi │ │ │ └── startup.S │ ├── command.c │ ├── compiler-rt.c │ ├── corecmd.c │ ├── device.c │ ├── disk.c │ ├── disk_common.c │ ├── dl.c │ ├── efi │ │ ├── acpi.c │ │ ├── efi.c │ │ ├── init.c │ │ ├── mm.c │ │ └── tpm.c │ ├── elf.c │ ├── elfXX.c │ ├── emu │ │ ├── argp_common.c │ │ ├── cache.c │ │ ├── cache_s.S │ │ ├── full.c │ │ ├── hostdisk.c │ │ ├── hostfs.c │ │ ├── lite.c │ │ ├── main.c │ │ ├── misc.c │ │ ├── mm.c │ │ └── time.c │ ├── env.c │ ├── err.c │ ├── file.c │ ├── fs.c │ ├── generic │ │ ├── millisleep.c │ │ └── rtc_get_time_ms.c │ ├── i386 │ │ ├── coreboot │ │ │ ├── cbtable.c │ │ │ ├── init.c │ │ │ ├── mmap.c │ │ │ └── startup.S │ │ ├── dl.c │ │ ├── efi │ │ │ ├── init.c │ │ │ ├── startup.S │ │ │ └── tsc.c │ │ ├── ieee1275 │ │ │ └── startup.S │ │ ├── int.S │ │ ├── multiboot_mmap.c │ │ ├── pc │ │ │ ├── acpi.c │ │ │ ├── init.c │ │ │ ├── mmap.c │ │ │ ├── startup.S │ │ │ └── tpm.c │ │ ├── qemu │ │ │ ├── init.c │ │ │ ├── mmap.c │ │ │ └── startup.S │ │ ├── realmode.S │ │ ├── tsc.c │ │ ├── tsc_pit.c │ │ ├── tsc_pmtimer.c │ │ └── xen │ │ │ ├── hypercall.S │ │ │ ├── startup.S │ │ │ └── tsc.c │ ├── ia64 │ │ ├── cache.c │ │ ├── dl.c │ │ ├── dl_helper.c │ │ └── efi │ │ │ ├── init.c │ │ │ └── startup.S │ ├── ieee1275 │ │ ├── cmain.c │ │ ├── ieee1275.c │ │ ├── init.c │ │ ├── mmap.c │ │ └── openfw.c │ ├── list.c │ ├── main.c │ ├── mips │ │ ├── arc │ │ │ └── init.c │ │ ├── cache.S │ │ ├── cache_flush.S │ │ ├── dl.c │ │ ├── init.c │ │ ├── loongson │ │ │ └── init.c │ │ ├── qemu_mips │ │ │ └── init.c │ │ └── startup.S │ ├── misc.c │ ├── mm.c │ ├── parser.c │ ├── partition.c │ ├── powerpc │ │ ├── cache.S │ │ ├── cache_flush.S │ │ ├── compiler-rt.S │ │ ├── dl.c │ │ └── ieee1275 │ │ │ └── startup.S │ ├── rescue_parser.c │ ├── rescue_reader.c │ ├── sparc64 │ │ ├── cache.S │ │ ├── dl.c │ │ └── ieee1275 │ │ │ ├── crt0.S │ │ │ └── ieee1275.c │ ├── term.c │ ├── time.c │ ├── tpm.c │ ├── uboot │ │ ├── hw.c │ │ ├── init.c │ │ └── uboot.c │ ├── vga_init.c │ ├── x86_64 │ │ ├── dl.c │ │ ├── efi │ │ │ ├── callwrap.S │ │ │ └── startup.S │ │ └── xen │ │ │ ├── hypercall.S │ │ │ └── startup.S │ └── xen │ │ └── init.c ├── lib │ ├── LzFind.c │ ├── LzmaDec.c │ ├── LzmaEnc.c │ ├── adler32.c │ ├── arc │ │ └── datetime.c │ ├── arg.c │ ├── arm │ │ └── setjmp.S │ ├── arm64 │ │ └── setjmp.S │ ├── backtrace.c │ ├── cmdline.c │ ├── cmos_datetime.c │ ├── crc.c │ ├── crc64.c │ ├── crypto.c │ ├── disk.c │ ├── division.c │ ├── efi │ │ ├── datetime.c │ │ ├── halt.c │ │ ├── reboot.c │ │ └── relocator.c │ ├── emu │ │ └── halt.c │ ├── envblk.c │ ├── fake_module.c │ ├── fdt.c │ ├── getline.c │ ├── gpt.c │ ├── hexdump.c │ ├── i386 │ │ ├── backtrace.c │ │ ├── halt.c │ │ ├── pc │ │ │ ├── biosnum.c │ │ │ └── vesa_modes_table.c │ │ ├── reboot.c │ │ ├── reboot_trampoline.S │ │ ├── relocator.c │ │ ├── relocator16.S │ │ ├── relocator32.S │ │ ├── relocator64.S │ │ ├── relocator_asm.S │ │ ├── relocator_common.S │ │ ├── relocator_common_c.c │ │ ├── setjmp.S │ │ └── xen │ │ │ └── relocator.S │ ├── ia64 │ │ ├── longjmp.S │ │ └── setjmp.S │ ├── ieee1275 │ │ ├── cmos.c │ │ ├── datetime.c │ │ ├── halt.c │ │ ├── reboot.c │ │ └── relocator.c │ ├── legacy_parse.c │ ├── libgcrypt │ │ ├── cipher │ │ │ ├── ChangeLog │ │ │ ├── ChangeLog-2011 │ │ │ ├── Makefile.am │ │ │ ├── Manifest │ │ │ ├── ac.c │ │ │ ├── arcfour.c │ │ │ ├── bithelp.h │ │ │ ├── blowfish.c │ │ │ ├── camellia-glue.c │ │ │ ├── camellia.c │ │ │ ├── camellia.h │ │ │ ├── cast5.c │ │ │ ├── cipher.c │ │ │ ├── crc.c │ │ │ ├── des.c │ │ │ ├── dsa.c │ │ │ ├── ecc.c │ │ │ ├── elgamal.c │ │ │ ├── hash-common.c │ │ │ ├── hash-common.h │ │ │ ├── hmac-tests.c │ │ │ ├── idea.c │ │ │ ├── kdf.c │ │ │ ├── md.c │ │ │ ├── md4.c │ │ │ ├── md5.c │ │ │ ├── primegen.c │ │ │ ├── pubkey.c │ │ │ ├── rfc2268.c │ │ │ ├── rijndael-tables.h │ │ │ ├── rijndael.c │ │ │ ├── rmd.h │ │ │ ├── rmd160.c │ │ │ ├── rsa.c │ │ │ ├── seed.c │ │ │ ├── serpent.c │ │ │ ├── sha1.c │ │ │ ├── sha256.c │ │ │ ├── sha512.c │ │ │ ├── test-getrusage.c │ │ │ ├── tiger.c │ │ │ ├── twofish.c │ │ │ └── whirlpool.c │ │ ├── mpi │ │ │ ├── ChangeLog-2011 │ │ │ ├── Makefile.am │ │ │ ├── Manifest │ │ │ ├── alpha │ │ │ │ ├── README │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ ├── mpih-sub1.S │ │ │ │ └── udiv-qrnnd.S │ │ │ ├── amd64 │ │ │ │ ├── distfiles │ │ │ │ ├── mpi-asm-defs.h │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ └── mpih-sub1.S │ │ │ ├── config.links │ │ │ ├── ec.c │ │ │ ├── generic │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpi-asm-defs.h │ │ │ │ ├── mpih-add1.c │ │ │ │ ├── mpih-lshift.c │ │ │ │ ├── mpih-mul1.c │ │ │ │ ├── mpih-mul2.c │ │ │ │ ├── mpih-mul3.c │ │ │ │ ├── mpih-rshift.c │ │ │ │ ├── mpih-sub1.c │ │ │ │ └── udiv-w-sdiv.c │ │ │ ├── hppa │ │ │ │ ├── README │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ ├── mpih-sub1.S │ │ │ │ └── udiv-qrnnd.S │ │ │ ├── i386 │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ ├── mpih-sub1.S │ │ │ │ └── syntax.h │ │ │ ├── i586 │ │ │ │ ├── Manifest │ │ │ │ ├── README │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ └── mpih-sub1.S │ │ │ ├── longlong.h │ │ │ ├── m68k │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mc68020 │ │ │ │ │ ├── Manifest │ │ │ │ │ ├── distfiles │ │ │ │ │ ├── mpih-mul1.S │ │ │ │ │ ├── mpih-mul2.S │ │ │ │ │ └── mpih-mul3.S │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ ├── mpih-sub1.S │ │ │ │ └── syntax.h │ │ │ ├── mips3 │ │ │ │ ├── Manifest │ │ │ │ ├── README │ │ │ │ ├── distfiles │ │ │ │ ├── mpi-asm-defs.h │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ └── mpih-sub1.S │ │ │ ├── mpi-add.c │ │ │ ├── mpi-bit.c │ │ │ ├── mpi-cmp.c │ │ │ ├── mpi-div.c │ │ │ ├── mpi-gcd.c │ │ │ ├── mpi-inline.c │ │ │ ├── mpi-inline.h │ │ │ ├── mpi-internal.h │ │ │ ├── mpi-inv.c │ │ │ ├── mpi-mod.c │ │ │ ├── mpi-mpow.c │ │ │ ├── mpi-mul.c │ │ │ ├── mpi-pow.c │ │ │ ├── mpi-scan.c │ │ │ ├── mpicoder.c │ │ │ ├── mpih-div.c │ │ │ ├── mpih-mul.c │ │ │ ├── mpiutil.c │ │ │ ├── pa7100 │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-lshift.S │ │ │ │ └── mpih-rshift.S │ │ │ ├── pentium4 │ │ │ │ ├── README │ │ │ │ ├── distfiles │ │ │ │ ├── mmx │ │ │ │ │ ├── distfiles │ │ │ │ │ ├── mpih-lshift.S │ │ │ │ │ └── mpih-rshift.S │ │ │ │ └── sse2 │ │ │ │ │ ├── distfiles │ │ │ │ │ ├── mpih-add1.S │ │ │ │ │ ├── mpih-mul1.S │ │ │ │ │ ├── mpih-mul2.S │ │ │ │ │ ├── mpih-mul3.S │ │ │ │ │ └── mpih-sub1.S │ │ │ ├── power │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ └── mpih-sub1.S │ │ │ ├── powerpc32 │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ ├── mpih-mul3.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ ├── mpih-sub1.S │ │ │ │ └── syntax.h │ │ │ ├── powerpc64 │ │ │ │ └── distfiles │ │ │ ├── sparc32 │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-add1.S │ │ │ │ ├── mpih-lshift.S │ │ │ │ ├── mpih-rshift.S │ │ │ │ └── udiv.S │ │ │ ├── sparc32v8 │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ ├── mpih-mul1.S │ │ │ │ ├── mpih-mul2.S │ │ │ │ └── mpih-mul3.S │ │ │ └── supersparc │ │ │ │ ├── Manifest │ │ │ │ ├── distfiles │ │ │ │ └── udiv.S │ │ └── src │ │ │ ├── ChangeLog-2011 │ │ │ ├── Makefile.am │ │ │ ├── Manifest │ │ │ ├── ath.c │ │ │ ├── ath.h │ │ │ ├── cipher-proto.h │ │ │ ├── cipher.h │ │ │ ├── dumpsexp.c │ │ │ ├── fips.c │ │ │ ├── g10lib.h │ │ │ ├── gcrypt-module.h │ │ │ ├── gcrypt.h.in │ │ │ ├── gcryptrnd.c │ │ │ ├── getrandom.c │ │ │ ├── global.c │ │ │ ├── hmac256.c │ │ │ ├── hmac256.h │ │ │ ├── hwfeatures.c │ │ │ ├── libgcrypt-config.in │ │ │ ├── libgcrypt.def │ │ │ ├── libgcrypt.m4 │ │ │ ├── libgcrypt.vers │ │ │ ├── misc.c │ │ │ ├── missing-string.c │ │ │ ├── module.c │ │ │ ├── mpi.h │ │ │ ├── secmem.c │ │ │ ├── secmem.h │ │ │ ├── sexp.c │ │ │ ├── stdmem.c │ │ │ ├── stdmem.h │ │ │ ├── types.h │ │ │ ├── versioninfo.rc.in │ │ │ ├── visibility.c │ │ │ └── visibility.h │ ├── libgcrypt_wrap │ │ ├── cipher_wrap.h │ │ └── mem.c │ ├── minilzo │ │ ├── lzoconf.h │ │ ├── lzodefs.h │ │ ├── minilzo.c │ │ └── minilzo.h │ ├── mips │ │ ├── arc │ │ │ └── reboot.c │ │ ├── loongson │ │ │ └── reboot.c │ │ ├── qemu_mips │ │ │ └── reboot.c │ │ ├── relocator.c │ │ ├── relocator_asm.S │ │ └── setjmp.S │ ├── pbkdf2.c │ ├── posix_wrap │ │ ├── assert.h │ │ ├── ctype.h │ │ ├── errno.h │ │ ├── inttypes.h │ │ ├── langinfo.h │ │ ├── limits.h │ │ ├── localcharset.h │ │ ├── locale.h │ │ ├── stdint.h │ │ ├── stdio.h │ │ ├── stdlib.h │ │ ├── string.h │ │ ├── sys │ │ │ └── types.h │ │ ├── unistd.h │ │ ├── wchar.h │ │ └── wctype.h │ ├── powerpc │ │ ├── relocator.c │ │ ├── relocator_asm.S │ │ └── setjmp.S │ ├── priority_queue.c │ ├── progress.c │ ├── reed_solomon.c │ ├── relocator.c │ ├── setjmp.S │ ├── sparc64 │ │ └── setjmp.S │ ├── syslinux_parse.c │ ├── uboot │ │ ├── datetime.c │ │ ├── halt.c │ │ └── reboot.c │ ├── x86_64 │ │ ├── relocator_asm.S │ │ ├── setjmp.S │ │ └── xen │ │ │ └── relocator.S │ ├── xen │ │ ├── datetime.c │ │ ├── halt.c │ │ ├── reboot.c │ │ └── relocator.c │ └── xzembed │ │ ├── xz.h │ │ ├── xz_config.h │ │ ├── xz_dec_bcj.c │ │ ├── xz_dec_lzma2.c │ │ ├── xz_dec_stream.c │ │ ├── xz_lzma2.h │ │ ├── xz_private.h │ │ └── xz_stream.h ├── loader │ ├── aout.c │ ├── arm │ │ └── linux.c │ ├── arm64 │ │ ├── fdt.c │ │ ├── linux.c │ │ └── xen_boot.c │ ├── efi │ │ ├── appleloader.c │ │ └── chainloader.c │ ├── i386 │ │ ├── bsd.c │ │ ├── bsd32.c │ │ ├── bsd64.c │ │ ├── bsdXX.c │ │ ├── bsd_pagetable.c │ │ ├── coreboot │ │ │ └── chainloader.c │ │ ├── efi │ │ │ └── linux.c │ │ ├── linux.c │ │ ├── multiboot_mbi.c │ │ ├── pc │ │ │ ├── chainloader.c │ │ │ ├── freedos.c │ │ │ ├── linux.c │ │ │ ├── ntldr.c │ │ │ ├── plan9.c │ │ │ ├── pxechainloader.c │ │ │ └── truecrypt.c │ │ ├── verity-hash.h │ │ ├── xen.c │ │ ├── xen_file.c │ │ ├── xen_file32.c │ │ ├── xen_file64.c │ │ ├── xen_fileXX.c │ │ └── xnu.c │ ├── ia64 │ │ └── efi │ │ │ └── linux.c │ ├── linux.c │ ├── lzss.c │ ├── macho.c │ ├── macho32.c │ ├── macho64.c │ ├── machoXX.c │ ├── mips │ │ └── linux.c │ ├── multiboot.c │ ├── multiboot_elfxx.c │ ├── multiboot_mbi2.c │ ├── powerpc │ │ └── ieee1275 │ │ │ └── linux.c │ ├── sparc64 │ │ └── ieee1275 │ │ │ └── linux.c │ ├── xnu.c │ └── xnu_resume.c ├── mmap │ ├── efi │ │ └── mmap.c │ ├── i386 │ │ ├── mmap.c │ │ ├── pc │ │ │ ├── mmap.c │ │ │ └── mmap_helper.S │ │ └── uppermem.c │ ├── mips │ │ └── uppermem.c │ └── mmap.c ├── modinfo.sh.in ├── net │ ├── arp.c │ ├── bootp.c │ ├── dns.c │ ├── drivers │ │ ├── efi │ │ │ └── efinet.c │ │ ├── emu │ │ │ └── emunet.c │ │ ├── i386 │ │ │ └── pc │ │ │ │ └── pxe.c │ │ ├── ieee1275 │ │ │ └── ofnet.c │ │ └── uboot │ │ │ └── ubootnet.c │ ├── ethernet.c │ ├── http.c │ ├── icmp.c │ ├── icmp6.c │ ├── ip.c │ ├── net.c │ ├── netbuff.c │ ├── tcp.c │ ├── tftp.c │ └── udp.c ├── normal │ ├── auth.c │ ├── autofs.c │ ├── charset.c │ ├── cmdline.c │ ├── color.c │ ├── completion.c │ ├── context.c │ ├── crypto.c │ ├── datetime.c │ ├── dyncmd.c │ ├── main.c │ ├── menu.c │ ├── menu_entry.c │ ├── menu_text.c │ ├── misc.c │ └── term.c ├── osdep │ ├── apple │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── aros │ │ ├── config.c │ │ ├── getroot.c │ │ ├── hostdisk.c │ │ └── relpath.c │ ├── basic │ │ ├── compress.c │ │ ├── emunet.c │ │ ├── getroot.c │ │ ├── hostdisk.c │ │ ├── init.c │ │ ├── no_platform.c │ │ ├── ofpath.c │ │ ├── platform.c │ │ └── random.c │ ├── blocklist.c │ ├── bsd │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── compress.c │ ├── config.c │ ├── cputime.c │ ├── devmapper │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── dl.c │ ├── emuconsole.c │ ├── emunet.c │ ├── exec.c │ ├── freebsd │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── generic │ │ └── blocklist.c │ ├── getroot.c │ ├── haiku │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── hostdisk.c │ ├── hurd │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── init.c │ ├── linux │ │ ├── blocklist.c │ │ ├── emunet.c │ │ ├── getroot.c │ │ ├── hostdisk.c │ │ ├── ofpath.c │ │ └── platform.c │ ├── ofpath.c │ ├── password.c │ ├── platform.c │ ├── platform_unix.c │ ├── random.c │ ├── relpath.c │ ├── sleep.c │ ├── sun │ │ ├── getroot.c │ │ └── hostdisk.c │ ├── unix │ │ ├── compress.c │ │ ├── config.c │ │ ├── cputime.c │ │ ├── dl.c │ │ ├── emuconsole.c │ │ ├── exec.c │ │ ├── getroot.c │ │ ├── hostdisk.c │ │ ├── password.c │ │ ├── platform.c │ │ ├── random.c │ │ ├── relpath.c │ │ └── sleep.c │ └── windows │ │ ├── blocklist.c │ │ ├── config.c │ │ ├── cputime.c │ │ ├── dl.c │ │ ├── emuconsole.c │ │ ├── getroot.c │ │ ├── hostdisk.c │ │ ├── init.c │ │ ├── password.c │ │ ├── platform.c │ │ ├── random.c │ │ ├── relpath.c │ │ └── sleep.c ├── partmap │ ├── acorn.c │ ├── amiga.c │ ├── apple.c │ ├── bsdlabel.c │ ├── dfly.c │ ├── dvh.c │ ├── gpt.c │ ├── msdos.c │ ├── plan.c │ ├── sun.c │ └── sunpc.c ├── parttool │ └── msdospart.c ├── script │ ├── argv.c │ ├── execute.c │ ├── function.c │ ├── lexer.c │ ├── main.c │ ├── parser.y │ ├── script.c │ └── yylex.l ├── term │ ├── arc │ │ ├── console.c │ │ └── serial.c │ ├── at_keyboard.c │ ├── efi │ │ ├── console.c │ │ └── serial.c │ ├── gfxterm.c │ ├── gfxterm_background.c │ ├── i386 │ │ ├── coreboot │ │ │ └── cbmemc.c │ │ └── pc │ │ │ ├── console.c │ │ │ ├── mda_text.c │ │ │ └── vga_text.c │ ├── ieee1275 │ │ ├── console.c │ │ ├── escc.c │ │ └── serial.c │ ├── morse.c │ ├── ns8250.c │ ├── serial.c │ ├── spkmodem.c │ ├── terminfo.c │ ├── tparm.c │ ├── uboot │ │ └── console.c │ ├── usb_keyboard.c │ └── xen │ │ └── console.c ├── tests │ ├── boot │ │ ├── kbsd.init-i386.S │ │ ├── kbsd.init-x86_64.S │ │ ├── kbsd.spec.txt │ │ ├── kernel-8086.S │ │ ├── kernel-i386.S │ │ ├── kfreebsd-aout.cfg │ │ ├── kfreebsd.cfg │ │ ├── kfreebsd.init-i386.S │ │ ├── kfreebsd.init-x86_64.S │ │ ├── knetbsd.cfg │ │ ├── kopenbsd.cfg │ │ ├── kopenbsdlabel.txt │ │ ├── linux-ppc.cfg │ │ ├── linux.cfg │ │ ├── linux.init-i386.S │ │ ├── linux.init-mips.S │ │ ├── linux.init-ppc.S │ │ ├── linux.init-x86_64.S │ │ ├── linux16.cfg │ │ ├── multiboot.cfg │ │ ├── multiboot2.cfg │ │ ├── ntldr.cfg │ │ ├── pc-chainloader.cfg │ │ └── qemu-shutdown-x86.S │ ├── bswap_test.c │ ├── checksums.h │ ├── cmdline_cat_test.c │ ├── cmp_test.c │ ├── ctz_test.c │ ├── div_test.c │ ├── example_functional_test.c │ ├── fake_input.c │ ├── gfxterm_menu.c │ ├── legacy_password_test.c │ ├── lib │ │ ├── functional_test.c │ │ └── test.c │ ├── mul_test.c │ ├── pbkdf2_test.c │ ├── setjmp_test.c │ ├── shift_test.c │ ├── signature_test.c │ ├── signatures.h │ ├── sleep_test.c │ ├── test_blockarg.c │ ├── video_checksum.c │ ├── videotest_checksum.c │ └── xnu_uuid_test.c └── video │ ├── bitmap.c │ ├── bitmap_scale.c │ ├── bochs.c │ ├── capture.c │ ├── cirrus.c │ ├── colors.c │ ├── efi_gop.c │ ├── efi_uga.c │ ├── emu │ └── sdl.c │ ├── fb │ ├── fbblit.c │ ├── fbfill.c │ ├── fbutil.c │ └── video_fb.c │ ├── i386 │ ├── coreboot │ │ └── cbfb.c │ └── pc │ │ ├── vbe.c │ │ └── vga.c │ ├── ieee1275.c │ ├── radeon_fuloong2e.c │ ├── radeon_yeeloong3a.c │ ├── readers │ ├── jpeg.c │ ├── png.c │ └── tga.c │ ├── sis315_init.c │ ├── sis315pro.c │ ├── sm712.c │ ├── sm712_init.c │ └── video.c ├── include ├── grub │ ├── acorn_filecore.h │ ├── acpi.h │ ├── aout.h │ ├── arc │ │ ├── arc.h │ │ └── console.h │ ├── archelp.h │ ├── arm │ │ ├── efi │ │ │ ├── loader.h │ │ │ └── memory.h │ │ ├── linux.h │ │ ├── reloc.h │ │ ├── setjmp.h │ │ ├── system.h │ │ ├── time.h │ │ ├── types.h │ │ └── uboot │ │ │ └── kernel.h │ ├── arm64 │ │ ├── efi │ │ │ └── memory.h │ │ ├── fdtload.h │ │ ├── linux.h │ │ ├── reloc.h │ │ ├── setjmp.h │ │ ├── time.h │ │ └── types.h │ ├── at_keyboard.h │ ├── ata.h │ ├── auth.h │ ├── autoefi.h │ ├── backtrace.h │ ├── bitmap.h │ ├── bitmap_scale.h │ ├── boottime.h │ ├── bsdlabel.h │ ├── btrfs.h │ ├── bufio.h │ ├── cache.h │ ├── cbfs_core.h │ ├── charset.h │ ├── cmos.h │ ├── color.h │ ├── command.h │ ├── compiler-rt-emu.h │ ├── compiler-rt.h │ ├── compiler.h │ ├── crypto.h │ ├── cryptodisk.h │ ├── cs5536.h │ ├── datetime.h │ ├── decompressor.h │ ├── deflate.h │ ├── device.h │ ├── disk.h │ ├── diskfilter.h │ ├── dl.h │ ├── efi │ │ ├── api.h │ │ ├── console.h │ │ ├── console_control.h │ │ ├── disk.h │ │ ├── edid.h │ │ ├── efi.h │ │ ├── graphics_output.h │ │ ├── memory.h │ │ ├── pci.h │ │ ├── pe32.h │ │ ├── tpm.h │ │ └── uga_draw.h │ ├── efiemu │ │ ├── efiemu.h │ │ └── runtime.h │ ├── elf.h │ ├── elfload.h │ ├── emu │ │ ├── config.h │ │ ├── console.h │ │ ├── exec.h │ │ ├── getroot.h │ │ ├── hostdisk.h │ │ ├── hostfile.h │ │ ├── misc.h │ │ └── net.h │ ├── env.h │ ├── env_private.h │ ├── err.h │ ├── exfat.h │ ├── extcmd.h │ ├── fat.h │ ├── fbblit.h │ ├── fbfill.h │ ├── fbutil.h │ ├── fdt.h │ ├── file.h │ ├── fileid.h │ ├── font.h │ ├── fontformat.h │ ├── fs.h │ ├── fshelp.h │ ├── gcry │ │ └── types.h │ ├── gcrypt │ │ └── gpg-error.h │ ├── gdb.h │ ├── gfxmenu_model.h │ ├── gfxmenu_view.h │ ├── gfxterm.h │ ├── gfxwidgets.h │ ├── gpt_partition.h │ ├── gui.h │ ├── gui_string_util.h │ ├── hfs.h │ ├── hfsplus.h │ ├── i18n.h │ ├── i386 │ │ ├── at_keyboard.h │ │ ├── bsd.h │ │ ├── cmos.h │ │ ├── coreboot │ │ │ ├── boot.h │ │ │ ├── console.h │ │ │ ├── lbio.h │ │ │ ├── memory.h │ │ │ ├── serial.h │ │ │ └── time.h │ │ ├── cpuid.h │ │ ├── efi │ │ │ ├── memory.h │ │ │ └── serial.h │ │ ├── efiemu.h │ │ ├── floppy.h │ │ ├── freebsd_linker.h │ │ ├── freebsd_reboot.h │ │ ├── gdb.h │ │ ├── ieee1275 │ │ │ ├── ieee1275.h │ │ │ ├── memory.h │ │ │ └── serial.h │ │ ├── io.h │ │ ├── linux.h │ │ ├── macho.h │ │ ├── memory.h │ │ ├── memory_raw.h │ │ ├── multiboot.h │ │ ├── multiboot │ │ │ ├── boot.h │ │ │ ├── console.h │ │ │ ├── kernel.h │ │ │ ├── memory.h │ │ │ ├── serial.h │ │ │ └── time.h │ │ ├── netbsd_bootinfo.h │ │ ├── netbsd_reboot.h │ │ ├── openbsd_bootarg.h │ │ ├── openbsd_reboot.h │ │ ├── pc │ │ │ ├── apm.h │ │ │ ├── biosdisk.h │ │ │ ├── biosnum.h │ │ │ ├── boot.h │ │ │ ├── chainloader.h │ │ │ ├── console.h │ │ │ ├── int.h │ │ │ ├── kernel.h │ │ │ ├── memory.h │ │ │ ├── pxe.h │ │ │ ├── time.h │ │ │ ├── vbe.h │ │ │ └── vesa_modes_table.h │ │ ├── pci.h │ │ ├── pit.h │ │ ├── qemu │ │ │ ├── boot.h │ │ │ ├── console.h │ │ │ ├── kernel.h │ │ │ ├── memory.h │ │ │ ├── serial.h │ │ │ └── time.h │ │ ├── reboot.h │ │ ├── relocator.h │ │ ├── relocator_private.h │ │ ├── setjmp.h │ │ ├── time.h │ │ ├── tsc.h │ │ ├── types.h │ │ ├── xen │ │ │ ├── hypercall.h │ │ │ └── memory.h │ │ └── xnu.h │ ├── ia64 │ │ ├── efi │ │ │ ├── memory.h │ │ │ └── time.h │ │ ├── kernel.h │ │ ├── reloc.h │ │ ├── setjmp.h │ │ ├── time.h │ │ └── types.h │ ├── icon_manager.h │ ├── ieee1275 │ │ ├── console.h │ │ ├── ieee1275.h │ │ └── ofdisk.h │ ├── kernel.h │ ├── keyboard_layouts.h │ ├── legacy_parse.h │ ├── lib │ │ ├── LzFind.h │ │ ├── LzHash.h │ │ ├── LzmaDec.h │ │ ├── LzmaEnc.h │ │ ├── LzmaTypes.h │ │ ├── arg.h │ │ ├── cmdline.h │ │ ├── crc.h │ │ ├── envblk.h │ │ └── hexdump.h │ ├── libpciaccess.h │ ├── linux.h │ ├── list.h │ ├── loader.h │ ├── lvm.h │ ├── macho.h │ ├── machoload.h │ ├── memory.h │ ├── menu.h │ ├── menu_viewer.h │ ├── mips │ │ ├── arc │ │ │ ├── kernel.h │ │ │ ├── memory.h │ │ │ └── time.h │ │ ├── asm.h │ │ ├── at_keyboard.h │ │ ├── cmos.h │ │ ├── io.h │ │ ├── kernel.h │ │ ├── loongson.h │ │ ├── loongson │ │ │ ├── at_keyboard.h │ │ │ ├── cmos.h │ │ │ ├── ec.h │ │ │ ├── kernel.h │ │ │ ├── memory.h │ │ │ ├── pci.h │ │ │ ├── serial.h │ │ │ └── time.h │ │ ├── memory.h │ │ ├── mips.h │ │ ├── multiboot.h │ │ ├── pci.h │ │ ├── qemu_mips │ │ │ ├── at_keyboard.h │ │ │ ├── cmos.h │ │ │ ├── console.h │ │ │ ├── kernel.h │ │ │ ├── loader.h │ │ │ ├── memory.h │ │ │ ├── serial.h │ │ │ └── time.h │ │ ├── relocator.h │ │ ├── setjmp.h │ │ ├── time.h │ │ └── types.h │ ├── misc.h │ ├── mm.h │ ├── mm_private.h │ ├── msdos_partition.h │ ├── multiboot.h │ ├── multiboot_loader.h │ ├── net.h │ ├── net │ │ ├── arp.h │ │ ├── ethernet.h │ │ ├── ip.h │ │ ├── netbuff.h │ │ ├── tcp.h │ │ └── udp.h │ ├── normal.h │ ├── ns8250.h │ ├── ntfs.h │ ├── offsets.h │ ├── osdep │ │ ├── hostfile.h │ │ ├── hostfile_aros.h │ │ ├── hostfile_unix.h │ │ └── hostfile_windows.h │ ├── parser.h │ ├── partition.h │ ├── parttool.h │ ├── pci.h │ ├── pciutils.h │ ├── powerpc │ │ ├── ieee1275 │ │ │ └── ieee1275.h │ │ ├── kernel.h │ │ ├── memory.h │ │ ├── relocator.h │ │ ├── setjmp.h │ │ ├── time.h │ │ └── types.h │ ├── priority_queue.h │ ├── procfs.h │ ├── pubkey.h │ ├── reader.h │ ├── reed_solomon.h │ ├── relocator.h │ ├── relocator_private.h │ ├── script_sh.h │ ├── scsi.h │ ├── scsicmd.h │ ├── sdl.h │ ├── search.h │ ├── serial.h │ ├── setjmp.h │ ├── smbus.h │ ├── sparc64 │ │ ├── ieee1275 │ │ │ ├── boot.h │ │ │ ├── ieee1275.h │ │ │ └── kernel.h │ │ ├── setjmp.h │ │ ├── time.h │ │ └── types.h │ ├── speaker.h │ ├── symbol.h │ ├── syslinux_parse.h │ ├── term.h │ ├── terminfo.h │ ├── test.h │ ├── time.h │ ├── tparm.h │ ├── tpm.h │ ├── trig.h │ ├── types.h │ ├── uboot │ │ ├── api_public.h │ │ ├── console.h │ │ ├── disk.h │ │ ├── image.h │ │ └── uboot.h │ ├── udf.h │ ├── unicode.h │ ├── usb.h │ ├── usbdesc.h │ ├── usbserial.h │ ├── usbtrans.h │ ├── util │ │ ├── install.h │ │ ├── libnvpair.h │ │ ├── libzfs.h │ │ ├── misc.h │ │ ├── ofpath.h │ │ ├── resolve.h │ │ └── windows.h │ ├── vga.h │ ├── vgaregs.h │ ├── video.h │ ├── video_fb.h │ ├── x86_64 │ │ ├── at_keyboard.h │ │ ├── efi │ │ │ ├── boot.h │ │ │ ├── loader.h │ │ │ ├── memory.h │ │ │ └── serial.h │ │ ├── io.h │ │ ├── linux.h │ │ ├── macho.h │ │ ├── memory.h │ │ ├── multiboot.h │ │ ├── pci.h │ │ ├── relocator.h │ │ ├── setjmp.h │ │ ├── time.h │ │ ├── types.h │ │ ├── xen │ │ │ └── hypercall.h │ │ └── xnu.h │ ├── xen.h │ ├── xen │ │ └── relocator.h │ ├── xen_file.h │ ├── xnu.h │ └── zfs │ │ ├── dmu.h │ │ ├── dmu_objset.h │ │ ├── dnode.h │ │ ├── dsl_dataset.h │ │ ├── dsl_dir.h │ │ ├── sa_impl.h │ │ ├── spa.h │ │ ├── uberblock_impl.h │ │ ├── vdev_impl.h │ │ ├── zap_impl.h │ │ ├── zap_leaf.h │ │ ├── zfs.h │ │ ├── zfs_acl.h │ │ ├── zfs_znode.h │ │ ├── zil.h │ │ ├── zio.h │ │ └── zio_checksum.h ├── multiboot.h ├── multiboot2.h └── xen │ ├── arch-x86 │ ├── xen-x86_32.h │ ├── xen-x86_64.h │ └── xen.h │ ├── event_channel.h │ ├── grant_table.h │ ├── io │ ├── blkif.h │ ├── console.h │ ├── protocols.h │ ├── ring.h │ ├── xenbus.h │ └── xs_wire.h │ ├── sched.h │ ├── xen-compat.h │ └── xen.h ├── linguas.sh ├── m4 ├── 00gnulib.m4 ├── alloca.m4 ├── argp.m4 ├── btowc.m4 ├── codeset.m4 ├── configmake.m4 ├── dirname.m4 ├── double-slash-root.m4 ├── eealloc.m4 ├── errno_h.m4 ├── error.m4 ├── exponentd.m4 ├── extensions.m4 ├── extern-inline.m4 ├── fcntl-o.m4 ├── float_h.m4 ├── fnmatch.m4 ├── getdelim.m4 ├── getline.m4 ├── getopt.m4 ├── gettext.m4 ├── glibc2.m4 ├── glibc21.m4 ├── gnulib-cache.m4 ├── gnulib-common.m4 ├── gnulib-comp.m4 ├── gnulib-tool.m4 ├── iconv.m4 ├── include_next.m4 ├── intdiv0.m4 ├── intl.m4 ├── intldir.m4 ├── intlmacosx.m4 ├── intmax.m4 ├── intmax_t.m4 ├── inttypes-pri.m4 ├── inttypes_h.m4 ├── langinfo_h.m4 ├── lcmessage.m4 ├── lib-ld.m4 ├── lib-link.m4 ├── lib-prefix.m4 ├── libunistring-base.m4 ├── localcharset.m4 ├── locale-fr.m4 ├── locale-ja.m4 ├── locale-zh.m4 ├── locale_h.m4 ├── localeconv.m4 ├── lock.m4 ├── longlong.m4 ├── malloc.m4 ├── math_h.m4 ├── mbrtowc.m4 ├── mbsinit.m4 ├── mbsrtowcs.m4 ├── mbstate_t.m4 ├── mbswidth.m4 ├── mbtowc.m4 ├── memchr.m4 ├── mempcpy.m4 ├── mmap-anon.m4 ├── msvc-inval.m4 ├── msvc-nothrow.m4 ├── multiarch.m4 ├── nl_langinfo.m4 ├── nls.m4 ├── nocrash.m4 ├── off_t.m4 ├── po.m4 ├── printf-posix.m4 ├── printf.m4 ├── progtest.m4 ├── rawmemchr.m4 ├── realloc.m4 ├── regex.m4 ├── size_max.m4 ├── sleep.m4 ├── ssize_t.m4 ├── stdalign.m4 ├── stdbool.m4 ├── stddef_h.m4 ├── stdint.m4 ├── stdint_h.m4 ├── stdio_h.m4 ├── stdlib_h.m4 ├── strcase.m4 ├── strchrnul.m4 ├── strerror.m4 ├── string_h.m4 ├── strings_h.m4 ├── strndup.m4 ├── strnlen.m4 ├── sys_socket_h.m4 ├── sys_types_h.m4 ├── sysexits.m4 ├── threadlib.m4 ├── uintmax_t.m4 ├── unistd_h.m4 ├── vasnprintf.m4 ├── visibility.m4 ├── vsnprintf.m4 ├── warn-on-use.m4 ├── wchar_h.m4 ├── wchar_t.m4 ├── wcrtomb.m4 ├── wctype_h.m4 ├── wcwidth.m4 ├── wint_t.m4 └── xsize.m4 ├── po ├── Makefile.in.in ├── Makevars ├── README ├── Rules-piglatin ├── Rules-quot ├── Rules-swiss ├── Rules-translit ├── Rules-windowsdir ├── arabic.sed ├── boldquot.sed ├── cyrillic.sed ├── en@boldquot.header ├── en@piglatin.header ├── en@quot.header ├── exclude.pot ├── greek.sed ├── grub.d.sed ├── hebrew.sed ├── insert-header.sin ├── piglatin.sed ├── quot.sed ├── remove-potcdate.sin └── swiss.sed ├── tests ├── ahci_test.in ├── btrfs_test.in ├── cdboot_test.in ├── cmp_unit_test.c ├── core_compress_test.in ├── cpio_test.in ├── date_unit_test.c ├── dfly-mbr-mbexample.dfly.img.gz ├── dfly-mbr-mbexample.mbr.img.gz ├── ehci_test.in ├── example_grub_script_test.in ├── example_scripted_test.in ├── example_unit_test.c ├── exfat_test.in ├── ext234_test.in ├── fat_test.in ├── fddboot_test.in ├── file_filter │ ├── file │ ├── file.gz │ ├── file.gz.sig │ ├── file.lzop │ ├── file.lzop.sig │ ├── file.xz │ ├── file.xz.sig │ ├── keys │ ├── keys.pub │ └── test.cfg ├── file_filter_test.in ├── gettext_strings_test.in ├── gpt_unit_test.c ├── gptprio_test.in ├── gptrepair_test.in ├── grub_cmd_date.in ├── grub_cmd_echo.in ├── grub_cmd_regexp.in ├── grub_cmd_set_date.in ├── grub_cmd_sleep.in ├── grub_cmd_test.in ├── grub_cmd_tr.in ├── grub_func_test.in ├── grub_script_blanklines.in ├── grub_script_blockarg.in ├── grub_script_break.in ├── grub_script_comments.in ├── grub_script_continue.in ├── grub_script_dollar.in ├── grub_script_echo1.in ├── grub_script_echo_keywords.in ├── grub_script_escape_comma.in ├── grub_script_eval.in ├── grub_script_expansion.in ├── grub_script_final_semicolon.in ├── grub_script_for1.in ├── grub_script_functions.in ├── grub_script_gettext.in ├── grub_script_if.in ├── grub_script_leading_whitespace.in ├── grub_script_no_commands.in ├── grub_script_not.in ├── grub_script_return.in ├── grub_script_setparams.in ├── grub_script_shift.in ├── grub_script_strcmp.in ├── grub_script_test.in ├── grub_script_vars1.in ├── grub_script_while1.in ├── gzcompress_test.in ├── hddboot_test.in ├── help_test.in ├── hfs_test.in ├── hfsplus_test.in ├── iso9660_test.in ├── jfs_test.in ├── lib │ └── unit_test.c ├── lzocompress_test.in ├── minixfs_test.in ├── netboot_test.in ├── nilfs2_test.in ├── ntfs_test.in ├── ohci_test.in ├── partmap_test.in ├── pata_test.in ├── printf_unit_test.c ├── priority_queue_unit_test.cc ├── pseries_test.in ├── reiserfs_test.in ├── romfs_test.in ├── squashfs_test.in ├── syslinux │ ├── ubuntu10.04 │ │ └── isolinux │ │ │ ├── adtxt.cfg │ │ │ ├── dtmenu.cfg │ │ │ ├── exithelp.cfg │ │ │ ├── gfxboot.cfg │ │ │ ├── isolinux.cfg │ │ │ ├── menu.cfg │ │ │ ├── po4a.cfg │ │ │ ├── prompt.cfg │ │ │ ├── rqtxt.cfg │ │ │ ├── stdmenu.cfg │ │ │ └── txt.cfg │ └── ubuntu10.04_grub.cfg.in ├── syslinux_test.in ├── tar_test.in ├── test_sha512sum.in ├── test_unset.in ├── udf_test.in ├── uhci_test.in ├── util │ ├── grub-fs-tester.in │ ├── grub-shell-tester.in │ └── grub-shell.in ├── xfs_test.in ├── xzcompress_test.in └── zfs_test.in ├── themes └── starfield │ ├── COPYING.CC-BY-SA-3.0 │ ├── README │ ├── blob_w.png │ ├── boot_menu_c.png │ ├── boot_menu_e.png │ ├── boot_menu_n.png │ ├── boot_menu_ne.png │ ├── boot_menu_nw.png │ ├── boot_menu_s.png │ ├── boot_menu_se.png │ ├── boot_menu_sw.png │ ├── boot_menu_w.png │ ├── slider_c.png │ ├── slider_n.png │ ├── slider_s.png │ ├── src │ ├── blob_nw.xcf │ ├── bootmenu │ │ ├── center.xcf │ │ ├── corner.xcf │ │ └── side.xcf │ ├── slider_c.xcf │ ├── slider_n.xcf │ ├── slider_s.xcf │ └── terminalbox │ │ ├── center.xcf │ │ ├── corner.xcf │ │ └── side.xcf │ ├── starfield.png │ ├── terminal_box_c.png │ ├── terminal_box_e.png │ ├── terminal_box_n.png │ ├── terminal_box_ne.png │ ├── terminal_box_nw.png │ ├── terminal_box_s.png │ ├── terminal_box_se.png │ ├── terminal_box_sw.png │ ├── terminal_box_w.png │ └── theme.txt ├── unicode ├── ArabicShaping.txt ├── BidiMirroring.txt ├── COPYING └── UnicodeData.txt └── util ├── bash-completion.d ├── Makefile.am └── grub-completion.bash.in ├── bin2h.c ├── config.c ├── editenv.c ├── garbage-gen.c ├── getroot.c ├── glue-efi.c ├── grub-editenv.c ├── grub-file.c ├── grub-fstest.c ├── grub-gen-asciih.c ├── grub-gen-widthspec.c ├── grub-glue-efi.c ├── grub-install-common.c ├── grub-install.c ├── grub-kbdcomp.in ├── grub-macbless.c ├── grub-macho2img.c ├── grub-menulst2cfg.c ├── grub-mkconfig.in ├── grub-mkconfig_lib.in ├── grub-mkfont.c ├── grub-mkimage.c ├── grub-mkimagexx.c ├── grub-mklayout.c ├── grub-mknetdir.c ├── grub-mkpasswd-pbkdf2.c ├── grub-mkrelpath.c ├── grub-mkrescue.c ├── grub-mkstandalone.c ├── grub-mount.c ├── grub-pe2elf.c ├── grub-probe.c ├── grub-reboot.in ├── grub-render-label.c ├── grub-script-check.c ├── grub-set-default.in ├── grub-setup.c ├── grub-syslinux2cfg.c ├── grub.d ├── 00_header.in ├── 10_hurd.in ├── 10_illumos.in ├── 10_kfreebsd.in ├── 10_linux.in ├── 10_netbsd.in ├── 10_windows.in ├── 10_xnu.in ├── 20_linux_xen.in ├── 30_os-prober.in ├── 40_custom.in ├── 41_custom.in └── README ├── i386 └── efi │ └── grub-dumpdevtree ├── ieee1275 └── grub-ofpathname.c ├── import_gcry.py ├── import_gcrypth.sed ├── import_unicode.py ├── misc.c ├── mkimage.c ├── probe.c ├── render-label.c ├── resolve.c ├── setup.c ├── setup_bios.c ├── setup_sparc.c └── spkmodem-recv.c /AUTHORS: -------------------------------------------------------------------------------- 1 | The following authors assigned copyright on their work to the Free 2 | Software Foundation: 3 | 4 | Yoshinori K. Okuji designed and implemented the initial version. 5 | 6 | Jeroen Dekkers added initrd support, Multiboot support, and fixed bugs 7 | in ext2fs. 8 | 9 | Marco Gerards added ext2fs support, grub-emu, a new command-line 10 | engine, and fixed many bugs. 11 | 12 | Omniflux added terminfo and serial support. 13 | 14 | Vincent Pelletier added Sparc64 support. 15 | 16 | Hollis Blanchard implemented many parts of PowerPC support. 17 | 18 | Tomas Ebenlendr added the command chainloader into the normal mode, 19 | fixed some bugs. 20 | 21 | Guillem Jover merged architecture-independent ELF support code. 22 | 23 | Vesa Jaaskelainen added VBE support. 24 | -------------------------------------------------------------------------------- /BUGS: -------------------------------------------------------------------------------- 1 | GRUB team is aware of following problems: 2 | - Currently search and assembling multidevice abstractions scans 3 | all the devices which can be slow. 4 | - Cache isn't used correctly for video which results in slowness. 5 | 6 | While these are bugs their solution has a potential of breaking more and more 7 | seriously. So it was decided for 1.99 that they aren't fixed. 8 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | This is GRUB 2, the second version of the GRand Unified Bootloader. 2 | GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more 3 | robust, more powerful, and more portable. 4 | 5 | See the file NEWS for a description of recent changes to GRUB 2. 6 | 7 | See the file INSTALL for instructions on how to build and install the 8 | GRUB 2 data and program files. 9 | 10 | Please visit the official web page of GRUB 2, for more information. 11 | The URL is . 12 | 13 | More extensive documentation is available in the Info manual, 14 | accessible using 'info grub' after building and installing GRUB 2. 15 | 16 | There are a number of important user-visible differences from the 17 | first version of GRUB, now known as GRUB Legacy. For a summary, please 18 | see: 19 | 20 | info grub Introduction 'Changes from GRUB Legacy' 21 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | 2 | Before working on improving GRUB, it's very important that you 3 | make contact with the core GRUB developers. Things herein might be 4 | slightly out of date or otherwise not easy to understand at first 5 | glance. So write to first. 6 | 7 | For bug tracking, refer to: 8 | 9 | http://savannah.gnu.org/bugs/?group=grub 10 | 11 | Our wiki also lists some areas that need work: 12 | 13 | http://grub.enbug.org/ 14 | -------------------------------------------------------------------------------- /asm-tests/arm.S: -------------------------------------------------------------------------------- 1 | /* on arm clang doesn't support .arch directive */ 2 | 3 | .text 4 | .syntax unified 5 | 6 | #if !defined (__thumb2__) 7 | .arch armv7a 8 | .arm 9 | #else 10 | .arch armv7 11 | .thumb 12 | #endif 13 | mcr p15, 0, r11, c7, c14, 2 14 | 15 | /* clang restricts access to dsb/isb despite .arch */ 16 | dsb 17 | isb 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /asm-tests/i386-pc.S: -------------------------------------------------------------------------------- 1 | /* on x86 old clang doesn't support .code16 2 | newer clang supports it but creates 6-byte jumps instead of 3-byte ones 3 | which makes us go over boot sector size. */ 4 | 5 | .code16 6 | jmp far 7 | .org 4 8 | jmp nearer 9 | .org 6 10 | .space 100 11 | nearer: 12 | .space 200 13 | far: 14 | .byte 0 15 | -------------------------------------------------------------------------------- /asm-tests/i386.S: -------------------------------------------------------------------------------- 1 | /* on x86 old clang doesn't support .code16 */ 2 | 3 | .code16 4 | movb %al, %bl 5 | -------------------------------------------------------------------------------- /asm-tests/mips.S: -------------------------------------------------------------------------------- 1 | /* on mips clang doesn't support privilegied instructions, doubleword store/load 2 | and crashes with hand-written assembly 3 | */ 4 | 5 | .set mips3 6 | sync 7 | ld $t2, 0($t1) 8 | 9 | a: 10 | addiu $t1, $s0, (b - a) 11 | b: nop 12 | -------------------------------------------------------------------------------- /asm-tests/powerpc.S: -------------------------------------------------------------------------------- 1 | /* clang <= 3.3 doesn't handle most of ppc assembly, not even inline assembly 2 | used by gcrypt */ 3 | /* Cache invalidation loop is a fair test. */ 4 | li 5, 0 5 | 1: icbi 5, 3 6 | addi 5, 5, 32 7 | cmpw 5, 4 8 | blt 1b 9 | -------------------------------------------------------------------------------- /asm-tests/sparc64.S: -------------------------------------------------------------------------------- 1 | .text 2 | 1: 3 | /* A small list of examples of what clang doesn't support. */ 4 | clr %o0 5 | lduw [%o4 + 4], %o4 6 | and %o6, ~0xff, %o6 7 | stw %o5, [%o3] 8 | bne,pt %icc, 1b 9 | nop 10 | -------------------------------------------------------------------------------- /build-aux/snippet/_Noreturn.h: -------------------------------------------------------------------------------- 1 | #if !defined _Noreturn && __STDC_VERSION__ < 201112 2 | # if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \ 3 | || 0x5110 <= __SUNPRO_C) 4 | # define _Noreturn __attribute__ ((__noreturn__)) 5 | # elif 1200 <= _MSC_VER 6 | # define _Noreturn __declspec (noreturn) 7 | # else 8 | # define _Noreturn 9 | # endif 10 | #endif 11 | -------------------------------------------------------------------------------- /conf/i386-cygwin-img-ld.sc: -------------------------------------------------------------------------------- 1 | /* Linker script to create grub .img files on Cygwin. */ 2 | 3 | SECTIONS 4 | { 5 | .text : 6 | { 7 | start = . ; 8 | _start = . ; 9 | __start = . ; 10 | *(.text) 11 | etext = . ; 12 | } 13 | .data : 14 | { 15 | __data_start__ = . ; 16 | *(.data) 17 | __data_end__ = . ; 18 | __rdata_start__ = . ; 19 | *(.rdata) 20 | __rdata_end__ = . ; 21 | *(.pdata) 22 | edata = . ; 23 | _edata = . ; 24 | __edata = . ; 25 | } 26 | .bss : 27 | { 28 | __bss_start__ = . ; 29 | *(.bss) 30 | __common_start__ = . ; 31 | *(COMMON) 32 | __bss_end__ = . ; 33 | } 34 | .edata : 35 | { 36 | *(.edata) 37 | end = . ; 38 | _end = . ; 39 | __end = . ; 40 | } 41 | .stab : 42 | { 43 | *(.stab) 44 | } 45 | .stabstr : 46 | { 47 | *(.stabstr) 48 | } 49 | } 50 | 51 | ASSERT("__rdata_end__"=="edata", ".pdata not empty") 52 | ASSERT("__bss_end__" =="end" , ".edata not empty") 53 | 54 | -------------------------------------------------------------------------------- /coreboot.cfg: -------------------------------------------------------------------------------- 1 | if test -f (cbfsdisk)/etc/grub.cfg; then 2 | source (cbfsdisk)/etc/grub.cfg 3 | fi 4 | -------------------------------------------------------------------------------- /docs/Makefile.am: -------------------------------------------------------------------------------- 1 | AUTOMAKE_OPTIONS = subdir-objects 2 | 3 | # AM_MAKEINFOFLAGS = --no-split --no-validate 4 | info_TEXINFOS = grub.texi grub-dev.texi 5 | grub_TEXINFOS = fdl.texi 6 | 7 | EXTRA_DIST = font_char_metrics.png font_char_metrics.txt 8 | 9 | 10 | -------------------------------------------------------------------------------- /docs/font_char_metrics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/docs/font_char_metrics.png -------------------------------------------------------------------------------- /docs/font_char_metrics.txt: -------------------------------------------------------------------------------- 1 | Please fill this in. 2 | -------------------------------------------------------------------------------- /docs/man/grub-bios-setup.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-bios-setup \- set up a device to boot using GRUB 3 | [SEE ALSO] 4 | .BR grub-install (8), 5 | .BR grub-mkimage (1), 6 | .BR grub-mkrescue (1) 7 | -------------------------------------------------------------------------------- /docs/man/grub-editenv.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-editenv \- edit GRUB environment block 3 | [SEE ALSO] 4 | .BR grub-reboot (8), 5 | .BR grub-set-default (8) 6 | -------------------------------------------------------------------------------- /docs/man/grub-emu.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-emu \- GRUB emulator 3 | [SEE ALSO] 4 | If you are trying to install GRUB, then you should use 5 | .BR grub-install (8) 6 | rather than this program. 7 | -------------------------------------------------------------------------------- /docs/man/grub-file.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-file \- check file type 3 | -------------------------------------------------------------------------------- /docs/man/grub-fstest.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-fstest \- debug tool for GRUB filesystem drivers 3 | [SEE ALSO] 4 | .BR grub-probe (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-glue-efi.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-glue-efi \- generate a fat binary for EFI 3 | [DESCRIPTION] 4 | grub-glue-efi processes ia32 and amd64 EFI images and glues them according to Apple format. 5 | -------------------------------------------------------------------------------- /docs/man/grub-install.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-install \- install GRUB to a device 3 | [SEE ALSO] 4 | .BR grub-mkconfig (8), 5 | .BR grub-mkimage (1), 6 | .BR grub-mkrescue (1) 7 | -------------------------------------------------------------------------------- /docs/man/grub-kbdcomp.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-kbdcomp \- generate a GRUB keyboard layout file 3 | [DESCRIPTION] 4 | grub-kbdcomp processes a X keyboard layout description in 5 | .BR keymaps (5) 6 | format into a format that can be used by GRUB's 7 | .B keymap 8 | command. 9 | [SEE ALSO] 10 | .BR grub-mklayout (8) 11 | -------------------------------------------------------------------------------- /docs/man/grub-macbless.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-macbless \- bless a mac file/directory 3 | [SEE ALSO] 4 | .BR grub-install (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-macho2img.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-macho2img \- convert Mach-O to raw image 3 | [SEE ALSO] 4 | .BR grub-mkimage (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-menulst2cfg.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-menulst2cfg \- transform legacy menu.lst into grub.cfg 3 | [SEE ALSO] 4 | .BR grub-mkconfig (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkconfig.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkconfig \- generate a GRUB configuration file 3 | [SEE ALSO] 4 | .BR grub-install (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkfont.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkfont \- make GRUB font files 3 | [SEE ALSO] 4 | .BR grub-mkconfig (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkimage.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkimage \- make a bootable image of GRUB 3 | [SEE ALSO] 4 | .BR grub-install (8), 5 | .BR grub-mkrescue (1), 6 | .BR grub-mknetdir (8) 7 | -------------------------------------------------------------------------------- /docs/man/grub-mklayout.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mklayout \- generate a GRUB keyboard layout file 3 | [DESCRIPTION] 4 | grub-mklayout processes a keyboard layout description in 5 | .BR keymaps (5) 6 | format into a format that can be used by GRUB's 7 | .B keymap 8 | command. 9 | [SEE ALSO] 10 | .BR grub-mkconfig (8) 11 | -------------------------------------------------------------------------------- /docs/man/grub-mknetdir.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mknetdir \- prepare a GRUB netboot directory. 3 | [SEE ALSO] 4 | .BR grub-mkimage (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkpasswd-pbkdf2.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkpasswd-pbkdf2 \- generate hashed password for GRUB 3 | [SEE ALSO] 4 | .BR grub-mkconfig (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkrelpath.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkrelpath \- make a system path relative to its root 3 | [SEE ALSO] 4 | .BR grub-probe (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkrescue.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkrescue \- make a GRUB rescue image 3 | [SEE ALSO] 4 | .BR grub-mkimage (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mkstandalone.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mkstandalone \- make a memdisk-based GRUB image 3 | [SEE ALSO] 4 | .BR grub-mkimage (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-mount.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-mount \- export GRUB filesystem with FUSE 3 | -------------------------------------------------------------------------------- /docs/man/grub-ofpathname.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-ofpathname \- find OpenBOOT path for a device 3 | [SEE ALSO] 4 | .BR grub-probe (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-pe2elf.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-pe2elf \- convert PE image to ELF 3 | [SEE ALSO] 4 | .BR grub-mkimage (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-probe.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-probe \- probe device information for GRUB 3 | [SEE ALSO] 4 | .BR grub-fstest (1) 5 | -------------------------------------------------------------------------------- /docs/man/grub-reboot.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-reboot \- set the default boot entry for GRUB, for the next boot only 3 | [SEE ALSO] 4 | .BR grub-set-default (8), 5 | .BR grub-editenv (1) 6 | -------------------------------------------------------------------------------- /docs/man/grub-render-label.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-render-label \- generate a .disk_label for Apple Macs. 3 | 4 | -------------------------------------------------------------------------------- /docs/man/grub-script-check.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-script-check \- check grub.cfg for syntax errors 3 | [SEE ALSO] 4 | .BR grub-mkconfig (8) 5 | -------------------------------------------------------------------------------- /docs/man/grub-set-default.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-set-default \- set the saved default boot entry for GRUB 3 | [SEE ALSO] 4 | .BR grub-reboot (8), 5 | .BR grub-editenv (1) 6 | -------------------------------------------------------------------------------- /docs/man/grub-sparc64-setup.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-sparc64-setup \- set up a device to boot using GRUB 3 | [SEE ALSO] 4 | .BR grub-install (8), 5 | .BR grub-mkimage (1), 6 | .BR grub-mkrescue (1) 7 | -------------------------------------------------------------------------------- /docs/man/grub-syslinux2cfg.h2m: -------------------------------------------------------------------------------- 1 | [NAME] 2 | grub-syslinux2cfg \- transform syslinux config into grub.cfg 3 | [SEE ALSO] 4 | .BR grub-menulst2cfg (8) 5 | -------------------------------------------------------------------------------- /grub-core/boot/mips/loongson/fuloong2f.S: -------------------------------------------------------------------------------- 1 | #define FULOONG2F 1 2 | #include "fwstart.S" 3 | -------------------------------------------------------------------------------- /grub-core/commands/file32.c: -------------------------------------------------------------------------------- 1 | #define GRUB_TARGET_WORDSIZE 32 2 | #define XX 32 3 | #define ehdrXX ehdr32 4 | #define grub_file_check_netbsdXX grub_file_check_netbsd32 5 | #include "fileXX.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/file64.c: -------------------------------------------------------------------------------- 1 | #define GRUB_TARGET_WORDSIZE 64 2 | #define XX 64 3 | #define ehdrXX ehdr64 4 | #define grub_file_check_netbsdXX grub_file_check_netbsd64 5 | #include "fileXX.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/search_disk_uuid.c: -------------------------------------------------------------------------------- 1 | #define DO_SEARCH_DISK_UUID 1 2 | #define FUNC_NAME grub_search_disk_uuid 3 | #define COMMAND_NAME "search.disk_uuid" 4 | #define HELP_MESSAGE N_("Search devices by disk UUID. If VARIABLE is specified, the first device found is set to a variable.") 5 | #include "search.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/search_file.c: -------------------------------------------------------------------------------- 1 | #define DO_SEARCH_FILE 1 2 | #define FUNC_NAME grub_search_fs_file 3 | #define COMMAND_NAME "search.file" 4 | #define HELP_MESSAGE N_("Search devices by file. If VARIABLE is specified, the first device found is set to a variable.") 5 | #include "search.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/search_label.c: -------------------------------------------------------------------------------- 1 | #define DO_SEARCH_FS_LABEL 1 2 | #define FUNC_NAME grub_search_label 3 | #define COMMAND_NAME "search.fs_label" 4 | #define HELP_MESSAGE N_("Search devices by label. If VARIABLE is specified, the first device found is set to a variable.") 5 | #include "search.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/search_part_label.c: -------------------------------------------------------------------------------- 1 | #define DO_SEARCH_PART_LABEL 1 2 | #define FUNC_NAME grub_search_part_label 3 | #define COMMAND_NAME "search.part_label" 4 | #define HELP_MESSAGE N_("Search devices by partition label. If VARIABLE is specified, the first device found is set to a variable.") 5 | #include "search.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/search_part_uuid.c: -------------------------------------------------------------------------------- 1 | #define DO_SEARCH_PART_UUID 1 2 | #define FUNC_NAME grub_search_part_uuid 3 | #define COMMAND_NAME "search.part_uuid" 4 | #define HELP_MESSAGE N_("Search devices by partition UUID. If VARIABLE is specified, the first device found is set to a variable.") 5 | #include "search.c" 6 | -------------------------------------------------------------------------------- /grub-core/commands/search_uuid.c: -------------------------------------------------------------------------------- 1 | #define DO_SEARCH_FS_UUID 1 2 | #define FUNC_NAME grub_search_fs_uuid 3 | #define COMMAND_NAME "search.fs_uuid" 4 | #define HELP_MESSAGE N_("Search devices by UUID. If VARIABLE is specified, the first device found is set to a variable.") 5 | #include "search.c" 6 | -------------------------------------------------------------------------------- /grub-core/disk/mdraid_linux_be.c: -------------------------------------------------------------------------------- 1 | #define MODE_BIGENDIAN 1 2 | #include "mdraid_linux.c" 3 | -------------------------------------------------------------------------------- /grub-core/efiemu/i386/coredetect.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | #include 22 | 23 | const char * 24 | grub_efiemu_get_default_core_name (void) 25 | { 26 | return grub_cpuid_has_longmode ? "efiemu64.o" : "efiemu32.o"; 27 | } 28 | -------------------------------------------------------------------------------- /grub-core/efiemu/i386/nocfgtables.c: -------------------------------------------------------------------------------- 1 | /* Register SMBIOS and ACPI tables. */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2009 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | 26 | grub_err_t 27 | grub_machine_efiemu_init_tables (void) 28 | { 29 | return GRUB_ERR_NONE; 30 | } 31 | -------------------------------------------------------------------------------- /grub-core/efiemu/loadcore32.c: -------------------------------------------------------------------------------- 1 | /* This file contains definitions so that loadcore.c compiles for 32-bit */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2009 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #define SUFFIX(x) x ## 32 21 | #define GRUB_TARGET_WORDSIZE 32 22 | #include "loadcore.c" 23 | -------------------------------------------------------------------------------- /grub-core/efiemu/loadcore64.c: -------------------------------------------------------------------------------- 1 | /* This file contains definitions so that loadcore.c compiles for 64-bit */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2009 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #define SUFFIX(x) x ## 64 21 | #define GRUB_TARGET_WORDSIZE 64 22 | #include "loadcore.c" 23 | -------------------------------------------------------------------------------- /grub-core/efiemu/prepare32.c: -------------------------------------------------------------------------------- 1 | /* This file contains definitions so that prepare.c compiles for 32-bit */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2009 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #define SUFFIX(x) x ## 32 21 | 22 | #include "prepare.c" 23 | -------------------------------------------------------------------------------- /grub-core/efiemu/prepare64.c: -------------------------------------------------------------------------------- 1 | /* This file contains definitions so that prepare.c compiles for 64-bit */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2009 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #define SUFFIX(x) x ## 64 21 | 22 | #include "prepare.c" 23 | -------------------------------------------------------------------------------- /grub-core/fs/afs.c: -------------------------------------------------------------------------------- 1 | #define MODE_AFS 1 2 | #include "bfs.c" 3 | 4 | -------------------------------------------------------------------------------- /grub-core/fs/exfat.c: -------------------------------------------------------------------------------- 1 | #define MODE_EXFAT 1 2 | #include "fat.c" 3 | -------------------------------------------------------------------------------- /grub-core/fs/minix2.c: -------------------------------------------------------------------------------- 1 | #define MODE_MINIX2 1 2 | #include "minix.c" 3 | -------------------------------------------------------------------------------- /grub-core/fs/minix2_be.c: -------------------------------------------------------------------------------- 1 | #define MODE_MINIX2 1 2 | #define MODE_BIGENDIAN 1 3 | #include "minix.c" 4 | -------------------------------------------------------------------------------- /grub-core/fs/minix3.c: -------------------------------------------------------------------------------- 1 | #define MODE_MINIX3 1 2 | #include "minix.c" 3 | -------------------------------------------------------------------------------- /grub-core/fs/minix3_be.c: -------------------------------------------------------------------------------- 1 | #define MODE_MINIX3 1 2 | #define MODE_BIGENDIAN 1 3 | #include "minix.c" 4 | -------------------------------------------------------------------------------- /grub-core/fs/minix_be.c: -------------------------------------------------------------------------------- 1 | #define MODE_BIGENDIAN 1 2 | #include "minix.c" 3 | -------------------------------------------------------------------------------- /grub-core/fs/ufs2.c: -------------------------------------------------------------------------------- 1 | /* ufs2.c - Unix File System 2 */ 2 | #define MODE_UFS2 1 3 | #include "ufs.c" 4 | -------------------------------------------------------------------------------- /grub-core/fs/ufs_be.c: -------------------------------------------------------------------------------- 1 | #define MODE_BIGENDIAN 1 2 | #include "ufs.c" 3 | -------------------------------------------------------------------------------- /grub-core/gmodule.pl.in: -------------------------------------------------------------------------------- 1 | ### 2 | ### Generate GDB commands, that load symbols for specified module, 3 | ### with proper section relocations. See .gdbinit 4 | ### 5 | ### $Id: gmodule.pl,v 1.2 2006/05/14 11:38:42 lkundrak Exp lkundrak $ 6 | ### Lubomir Kundrak 7 | ### 8 | 9 | use strict; 10 | 11 | while (<>) { 12 | my ($name, %sections) = split; 13 | 14 | print "add-symbol-file $name.module"; 15 | 16 | open (READELF, "readelf -S $name.mod |") or die; 17 | while () { 18 | /\[\s*(\d+)\]\s+(\.\S+)/ or next; 19 | 20 | if ($2 eq '.text') { 21 | print " $sections{$1}"; 22 | next; 23 | } 24 | 25 | print " -s $2 $sections{$1}" 26 | if ($sections{$1} ne '0x0' and $sections{$1} ne ''); 27 | }; 28 | close (READELF); 29 | print "\n"; 30 | } 31 | -------------------------------------------------------------------------------- /grub-core/gnulib-fix-null-deref.diff: -------------------------------------------------------------------------------- 1 | === modified file 'grub-core/gnulib/argp-parse.c' 2 | --- grub-core/gnulib/argp-parse.c 2010-04-02 22:45:01 +0000 3 | +++ grub-core/gnulib/argp-parse.c 2011-04-10 13:25:52 +0000 4 | @@ -935,7 +935,7 @@ 5 | void * 6 | __argp_input (const struct argp *argp, const struct argp_state *state) 7 | { 8 | - if (state) 9 | + if (state && state->pstate) 10 | { 11 | struct group *group; 12 | struct parser *parser = state->pstate; 13 | 14 | -------------------------------------------------------------------------------- /grub-core/gnulib-no-gets.diff: -------------------------------------------------------------------------------- 1 | --- /tmp/x.diff 2013-04-11 16:51:42.777873536 +0200 2 | +++ grub-core/gnulib/stdio.in.h 2013-04-11 16:51:49.917873298 +0200 3 | @@ -700,7 +700,6 @@ 4 | removed it. */ 5 | #undef gets 6 | #if HAVE_RAW_DECL_GETS 7 | -_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); 8 | #endif 9 | 10 | 11 | -------------------------------------------------------------------------------- /grub-core/gnulib/argp-pin.c: -------------------------------------------------------------------------------- 1 | /* Full and short program names for argp module 2 | Copyright (C) 2005, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation; either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | #ifdef HAVE_CONFIG_H 18 | # include 19 | #endif 20 | 21 | #ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME 22 | char *program_invocation_short_name = 0; 23 | #endif 24 | #ifndef HAVE_PROGRAM_INVOCATION_NAME 25 | char *program_invocation_name = 0; 26 | #endif 27 | -------------------------------------------------------------------------------- /grub-core/gnulib/getline.c: -------------------------------------------------------------------------------- 1 | /* getline.c --- Implementation of replacement getline function. 2 | Copyright (C) 2005-2007, 2009-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU General Public License as 6 | published by the Free Software Foundation; either version 3, or (at 7 | your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, but 10 | WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program; if not, see . */ 16 | 17 | /* Written by Simon Josefsson. */ 18 | 19 | #include 20 | 21 | #include 22 | 23 | ssize_t 24 | getline (char **lineptr, size_t *n, FILE *stream) 25 | { 26 | return getdelim (lineptr, n, '\n', stream); 27 | } 28 | -------------------------------------------------------------------------------- /grub-core/gnulib/mbtowc.c: -------------------------------------------------------------------------------- 1 | /* Convert multibyte character to wide character. 2 | Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | Written by Bruno Haible , 2011. 4 | 5 | This program is free software: you can redistribute it and/or modify 6 | it under the terms of the GNU General Public License as published by 7 | the Free Software Foundation; either version 3 of the License, or 8 | (at your option) any later version. 9 | 10 | This program is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with this program. If not, see . */ 17 | 18 | #include 19 | 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | #include "mbtowc-impl.h" 27 | -------------------------------------------------------------------------------- /grub-core/gnulib/memchr.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in memchr(). 2 | # POSIX states that when the character is found, memchr must not read extra 3 | # bytes in an overestimated length (for example, where memchr is used to 4 | # implement strnlen). However, we use a safe word read to provide a speedup. 5 | { 6 | memchr-value4 7 | Memcheck:Value4 8 | fun:rpl_memchr 9 | } 10 | { 11 | memchr-value8 12 | Memcheck:Value8 13 | fun:rpl_memchr 14 | } 15 | -------------------------------------------------------------------------------- /grub-core/gnulib/rawmemchr.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in rawmemchr(). 2 | # This use is OK because it provides only a speedup. 3 | { 4 | rawmemchr-value4 5 | Memcheck:Value4 6 | fun:rawmemchr 7 | } 8 | { 9 | rawmemchr-value8 10 | Memcheck:Value8 11 | fun:rawmemchr 12 | } 13 | -------------------------------------------------------------------------------- /grub-core/gnulib/ref-del.sin: -------------------------------------------------------------------------------- 1 | # Remove this package from a list of references stored in a text file. 2 | # 3 | # Copyright (C) 2000, 2009-2013 Free Software Foundation, Inc. 4 | # 5 | # This program is free software; you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation; either version 3, or (at your option) 8 | # any later version. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License along 16 | # with this program; if not, see . 17 | # 18 | # Written by Bruno Haible . 19 | # 20 | /^# Packages using this file: / { 21 | s/# Packages using this file:// 22 | s/ @PACKAGE@ / / 23 | s/^/# Packages using this file:/ 24 | } 25 | -------------------------------------------------------------------------------- /grub-core/gnulib/strchrnul.valgrind: -------------------------------------------------------------------------------- 1 | # Suppress a valgrind message about use of uninitialized memory in strchrnul(). 2 | # This use is OK because it provides only a speedup. 3 | { 4 | strchrnul-value4 5 | Memcheck:Value4 6 | fun:strchrnul 7 | } 8 | { 9 | strchrnul-value8 10 | Memcheck:Value8 11 | fun:strchrnul 12 | } 13 | -------------------------------------------------------------------------------- /grub-core/gnulib/unistd.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE 3 | #include "unistd.h" 4 | -------------------------------------------------------------------------------- /grub-core/gnulib/wctype-h.c: -------------------------------------------------------------------------------- 1 | /* Normally this would be wctype.c, but that name's already taken. */ 2 | #include 3 | #define _GL_WCTYPE_INLINE _GL_EXTERN_INLINE 4 | #include "wctype.h" 5 | -------------------------------------------------------------------------------- /grub-core/gnulib/xsize.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define XSIZE_INLINE _GL_EXTERN_INLINE 3 | #include "xsize.h" 4 | -------------------------------------------------------------------------------- /grub-core/kern/emu/cache.c: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MACHINE_EMU 2 | #error "This source is only meant for grub-emu platform" 3 | #endif 4 | 5 | #include 6 | 7 | #if defined(__ia64__) 8 | #include "../ia64/cache.c" 9 | #elif defined (__arm__) || defined (__aarch64__) 10 | 11 | void __clear_cache (void *beg, void *end); 12 | 13 | void 14 | grub_arch_sync_caches (void *address, grub_size_t len) 15 | { 16 | __clear_cache (address, (char *) address + len); 17 | } 18 | 19 | #elif defined (__mips__) 20 | void _flush_cache (void *address, grub_size_t len, int type); 21 | 22 | void 23 | grub_arch_sync_caches (void *address, grub_size_t len) 24 | { 25 | return _flush_cache (address, len, 0); 26 | } 27 | 28 | #endif 29 | 30 | -------------------------------------------------------------------------------- /grub-core/kern/emu/cache_s.S: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MACHINE_EMU 2 | #error "This source is only meant for grub-emu platform" 3 | #endif 4 | 5 | #if defined(__i386__) || defined(__x86_64__) 6 | /* Nothing is necessary. */ 7 | #elif defined(__sparc__) 8 | #include "../sparc64/cache.S" 9 | #elif defined(__powerpc__) 10 | #include "../powerpc/cache.S" 11 | #elif defined(__ia64__) || defined(__arm__) || defined(__aarch64__) || defined(__mips__) 12 | #else 13 | #error "No target cpu type is defined" 14 | #endif 15 | -------------------------------------------------------------------------------- /grub-core/kern/emu/lite.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #ifndef GRUB_MACHINE_EMU 5 | #error "This source is only meant for grub-emu platform" 6 | #endif 7 | 8 | #if defined(__i386__) 9 | #include "../i386/dl.c" 10 | #elif defined(__x86_64__) 11 | #include "../x86_64/dl.c" 12 | #elif defined(__sparc__) 13 | #include "../sparc64/dl.c" 14 | #elif defined(__mips__) 15 | #include "../mips/dl.c" 16 | #elif defined(__powerpc__) 17 | #include "../powerpc/dl.c" 18 | #elif defined(__ia64__) 19 | #include "../ia64/dl_helper.c" 20 | #include "../ia64/dl.c" 21 | #elif defined(__arm__) 22 | #include "../arm/dl_helper.c" 23 | #include "../arm/dl.c" 24 | #elif defined(__aarch64__) 25 | #include "../arm64/dl_helper.c" 26 | #include "../arm64/dl.c" 27 | #else 28 | #error "No target cpu type is defined" 29 | #endif 30 | 31 | const int grub_no_modules = 0; 32 | 33 | /* grub-emu-lite supports dynamic module loading, so it won't have any 34 | embedded modules. */ 35 | void 36 | grub_init_all (void) 37 | { 38 | return; 39 | } 40 | 41 | void 42 | grub_fini_all (void) 43 | { 44 | return; 45 | } 46 | -------------------------------------------------------------------------------- /grub-core/kern/powerpc/cache.S: -------------------------------------------------------------------------------- 1 | /* cache.S - Flush the processor cache for a specific region. */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2004,2007,2010 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | .text 21 | 22 | .align 2 23 | .globl grub_arch_sync_caches 24 | grub_arch_sync_caches: 25 | #include "cache_flush.S" 26 | blr 27 | -------------------------------------------------------------------------------- /grub-core/kern/tpm.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | 8 | grub_err_t 9 | grub_tpm_measure (unsigned char *buf, grub_size_t size, grub_uint8_t pcr, 10 | const char *kind, const char *description) 11 | { 12 | grub_err_t ret; 13 | char *desc = grub_xasprintf("%s %s", kind, description); 14 | if (!desc) 15 | return GRUB_ERR_OUT_OF_MEMORY; 16 | ret = grub_tpm_log_event(buf, size, pcr, description); 17 | grub_free(desc); 18 | return ret; 19 | } 20 | -------------------------------------------------------------------------------- /grub-core/lib/emu/halt.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2003,2004,2005,2006,2007,2008,2009,2010 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | 21 | void 22 | grub_halt (void) 23 | { 24 | grub_reboot (); 25 | } 26 | -------------------------------------------------------------------------------- /grub-core/lib/fake_module.c: -------------------------------------------------------------------------------- 1 | /* This file is intentionally empty: it's used to generate modules with no code or data. (purely dependency modules) */ 2 | #include 3 | 4 | GRUB_MOD_LICENSE ("GPLv3+"); 5 | -------------------------------------------------------------------------------- /grub-core/lib/ieee1275/reboot.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2011 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | void 23 | grub_reboot (void) 24 | { 25 | grub_ieee1275_interpret ("reset-all", 0); 26 | for (;;) ; 27 | } 28 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/alpha/distfiles: -------------------------------------------------------------------------------- 1 | README 2 | mpih-add1.S 3 | mpih-sub1.S 4 | mpih-mul1.S 5 | mpih-mul2.S 6 | mpih-mul3.S 7 | mpih-lshift.S 8 | mpih-rshift.S 9 | 10 | udiv-qrnnd.S 11 | 12 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/amd64/distfiles: -------------------------------------------------------------------------------- 1 | mpih-add1.S 2 | mpih-lshift.S 3 | mpih-mul1.S 4 | mpih-mul2.S 5 | mpih-mul3.S 6 | mpih-rshift.S 7 | mpih-sub1.S 8 | mpi-asm-defs.h 9 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/amd64/mpi-asm-defs.h: -------------------------------------------------------------------------------- 1 | /* This file defines some basic constants for the MPI machinery. We 2 | * need to define the types on a per-CPU basis, so it is done with 3 | * this file here. */ 4 | #define BYTES_PER_MPI_LIMB 8 5 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/generic/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-add1.c 3 | mpih-mul1.c 4 | mpih-mul2.c 5 | mpih-mul3.c 6 | mpih-lshift.c 7 | mpih-rshift.c 8 | mpih-sub1.c 9 | udiv-w-sdiv.c 10 | mpi-asm-defs.h 11 | 12 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/generic/mpi-asm-defs.h: -------------------------------------------------------------------------------- 1 | /* This file defines some basic constants for the MPI machinery. We 2 | * need to define the types on a per-CPU basis, so it is done with 3 | * this file here. */ 4 | #define BYTES_PER_MPI_LIMB (SIZEOF_UNSIGNED_LONG) 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/hppa/distfiles: -------------------------------------------------------------------------------- 1 | README 2 | udiv-qrnnd.S 3 | mpih-add1.S 4 | mpih-sub1.S 5 | mpih-lshift.S 6 | mpih-rshift.S 7 | 8 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/i386/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-add1.S 3 | mpih-mul1.S 4 | mpih-mul2.S 5 | mpih-mul3.S 6 | mpih-lshift.S 7 | mpih-rshift.S 8 | mpih-sub1.S 9 | syntax.h 10 | 11 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/i586/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-add1.S 3 | mpih-mul1.S 4 | mpih-mul2.S 5 | mpih-mul3.S 6 | mpih-lshift.S 7 | mpih-rshift.S 8 | mpih-sub1.S 9 | README 10 | 11 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/m68k/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | syntax.h 3 | mpih-lshift.S 4 | mpih-rshift.S 5 | mpih-add1.S 6 | mpih-sub1.S 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/m68k/mc68020/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-mul1.S 3 | mpih-mul2.S 4 | mpih-mul3.S 5 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/mips3/README: -------------------------------------------------------------------------------- 1 | This directory contains mpn functions optimized for MIPS3. Example of 2 | processors that implement MIPS3 are R4000, R4400, R4600, R4700, and R8000. 3 | 4 | RELEVANT OPTIMIZATION ISSUES 5 | 6 | 1. On the R4000 and R4400, branches, both the plain and the "likely" ones, 7 | take 3 cycles to execute. (The fastest possible loop will take 4 cycles, 8 | because of the delay insn.) 9 | 10 | On the R4600, branches takes a single cycle 11 | 12 | On the R8000, branches often take no noticable cycles, as they are 13 | executed in a separate function unit.. 14 | 15 | 2. The R4000 and R4400 have a load latency of 4 cycles. 16 | 17 | 3. On the R4000 and R4400, multiplies take a data-dependent number of 18 | cycles, contrary to the SGI documentation. There seem to be 3 or 4 19 | possible latencies. 20 | 21 | STATUS 22 | 23 | Good... 24 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/mips3/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | README 3 | mpih-add1.S 4 | mpih-sub1.S 5 | mpih-mul1.S 6 | mpih-mul2.S 7 | mpih-mul3.S 8 | mpih-lshift.S 9 | mpih-rshift.S 10 | mpi-asm-defs.h 11 | 12 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/mips3/mpi-asm-defs.h: -------------------------------------------------------------------------------- 1 | /* This file defines some basic constants for the MPI machinery. We 2 | * need to define the types on a per-CPU basis, so it is done with 3 | * this file here. */ 4 | #define BYTES_PER_MPI_LIMB 8 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/pa7100/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-lshift.S 3 | mpih-rshift.S 4 | 5 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/pentium4/distfiles: -------------------------------------------------------------------------------- 1 | README 2 | 3 | 4 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/pentium4/mmx/distfiles: -------------------------------------------------------------------------------- 1 | mpih-lshift.S 2 | mpih-rshift.S 3 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/pentium4/sse2/distfiles: -------------------------------------------------------------------------------- 1 | mpih-add1.S 2 | mpih-mul1.S 3 | mpih-mul2.S 4 | mpih-mul3.S 5 | mpih-sub1.S 6 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/power/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-add1.S 3 | mpih-lshift.S 4 | mpih-mul1.S 5 | mpih-mul2.S 6 | mpih-mul3.S 7 | mpih-rshift.S 8 | mpih-sub1.S 9 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/powerpc32/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-add1.S 3 | mpih-sub1.S 4 | mpih-mul1.S 5 | mpih-mul2.S 6 | mpih-mul3.S 7 | mpih-lshift.S 8 | mpih-rshift.S 9 | syntax.h 10 | 11 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/powerpc64/distfiles: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/grub-core/lib/libgcrypt/mpi/powerpc64/distfiles -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/sparc32/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-lshift.S 3 | mpih-rshift.S 4 | mpih-add1.S 5 | udiv.S 6 | 7 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/sparc32v8/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | mpih-mul1.S 3 | mpih-mul2.S 4 | mpih-mul3.S 5 | 6 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/mpi/supersparc/distfiles: -------------------------------------------------------------------------------- 1 | Manifest 2 | udiv.S 3 | 4 | -------------------------------------------------------------------------------- /grub-core/lib/libgcrypt/src/versioninfo.rc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/grub-core/lib/libgcrypt/src/versioninfo.rc.in -------------------------------------------------------------------------------- /grub-core/lib/mips/qemu_mips/reboot.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2011 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | void 23 | grub_reboot (void) 24 | { 25 | grub_outl (42, 0xbfbf0000); 26 | while (1); 27 | } 28 | -------------------------------------------------------------------------------- /grub-core/lib/posix_wrap/errno.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009, 2010 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_POSIX_ERRNO_H 20 | #define GRUB_POSIX_ERRNO_H 1 21 | 22 | #include 23 | 24 | #undef errno 25 | #define errno grub_errno 26 | #define EINVAL GRUB_ERR_BAD_NUMBER 27 | #define ENOMEM GRUB_ERR_OUT_OF_MEMORY 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /grub-core/lib/posix_wrap/inttypes.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /grub-core/lib/posix_wrap/localcharset.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009, 2010 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_POSIX_LOCALCHARSET_H 20 | #define GRUB_POSIX_LOCALCHARSET_H 1 21 | 22 | static inline const char * 23 | locale_charset (void) 24 | { 25 | return "UTF-8"; 26 | } 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /grub-core/lib/posix_wrap/locale.h: -------------------------------------------------------------------------------- 1 | #ifdef GRUB_UTIL 2 | #include_next 3 | #endif 4 | -------------------------------------------------------------------------------- /grub-core/lib/posix_wrap/stdint.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /grub-core/lib/posix_wrap/unistd.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /grub-core/lib/setjmp.S: -------------------------------------------------------------------------------- 1 | #if defined(__i386__) 2 | #include "./i386/setjmp.S" 3 | #elif defined(__x86_64__) 4 | #include "./x86_64/setjmp.S" 5 | #elif defined(__sparc__) 6 | #include "./sparc64/setjmp.S" 7 | #elif defined(__mips__) 8 | #include "./mips/setjmp.S" 9 | #elif defined(__powerpc__) || defined(__PPC__) 10 | #include "./powerpc/setjmp.S" 11 | #elif defined(__ia64__) 12 | #include "./ia64/setjmp.S" 13 | #include "./ia64/longjmp.S" 14 | #elif defined(__arm__) 15 | #include "./arm/setjmp.S" 16 | #elif defined(__aarch64__) 17 | #include "./arm64/setjmp.S" 18 | #else 19 | #error "Unknown target cpu type" 20 | #endif 21 | -------------------------------------------------------------------------------- /grub-core/lib/uboot/halt.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | void 25 | grub_halt (void) 26 | { 27 | grub_machine_fini (GRUB_LOADER_FLAG_NORETURN); 28 | 29 | /* Just stop here */ 30 | 31 | while (1); 32 | } 33 | -------------------------------------------------------------------------------- /grub-core/lib/uboot/reboot.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | void 25 | grub_reboot (void) 26 | { 27 | grub_machine_fini (GRUB_LOADER_FLAG_NORETURN); 28 | 29 | grub_uboot_reset (); 30 | while (1); 31 | } 32 | -------------------------------------------------------------------------------- /grub-core/lib/xen/halt.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2011 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | void 25 | grub_halt (void) 26 | { 27 | struct sched_shutdown arg; 28 | 29 | arg.reason = SHUTDOWN_poweroff; 30 | grub_xen_sched_op (SCHEDOP_shutdown, &arg); 31 | for (;;); 32 | } 33 | -------------------------------------------------------------------------------- /grub-core/lib/xen/reboot.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2011 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | #include 22 | #include 23 | 24 | void 25 | grub_reboot (void) 26 | { 27 | struct sched_shutdown arg; 28 | 29 | arg.reason = SHUTDOWN_reboot; 30 | grub_xen_sched_op (SCHEDOP_shutdown, &arg); 31 | for (;;); 32 | } 33 | -------------------------------------------------------------------------------- /grub-core/loader/i386/bsd32.c: -------------------------------------------------------------------------------- 1 | #define SUFFIX(x) x ## 32 2 | #define GRUB_TARGET_WORDSIZE 32 3 | #define OBJSYM 0 4 | #include 5 | typedef grub_uint32_t grub_freebsd_addr_t; 6 | #include "bsdXX.c" 7 | -------------------------------------------------------------------------------- /grub-core/loader/i386/bsd64.c: -------------------------------------------------------------------------------- 1 | #define SUFFIX(x) x ## 64 2 | #define GRUB_TARGET_WORDSIZE 64 3 | #define OBJSYM 1 4 | #include 5 | typedef grub_uint64_t grub_freebsd_addr_t; 6 | #include "bsdXX.c" 7 | -------------------------------------------------------------------------------- /grub-core/loader/i386/verity-hash.h: -------------------------------------------------------------------------------- 1 | #define VERITY_ARG " verity.usrhash=" 2 | #define VERITY_HASH_OFFSET 0x40 3 | #define VERITY_HASH_LENGTH 64 4 | 5 | static inline void grub_pass_verity_hash(struct linux_kernel_header *lh, 6 | char *cmdline) 7 | { 8 | char *buf = (char *)lh; 9 | grub_size_t cmdline_len; 10 | int i; 11 | 12 | for (i=VERITY_HASH_OFFSET; i '9') // Not a number 15 | if (buf[i] < 'a' || buf[i] > 'f') // Not a hex letter 16 | return; 17 | } 18 | 19 | grub_memcpy (cmdline + grub_strlen(cmdline), VERITY_ARG, 20 | sizeof (VERITY_ARG)); 21 | cmdline_len = grub_strlen(cmdline); 22 | grub_memcpy (cmdline + cmdline_len, buf + VERITY_HASH_OFFSET, 23 | VERITY_HASH_LENGTH); 24 | cmdline[cmdline_len + VERITY_HASH_LENGTH] = '\0'; 25 | } 26 | -------------------------------------------------------------------------------- /grub-core/loader/i386/xen_file32.c: -------------------------------------------------------------------------------- 1 | #define GRUB_TARGET_WORDSIZE 32 2 | #define XX 32 3 | #define grub_le_to_cpu_addr grub_le_to_cpu32 4 | #define ehdrXX ehdr32 5 | #define grub_xen_get_infoXX grub_xen_get_info32 6 | #define FOR_ELF_PHDRS FOR_ELF32_PHDRS 7 | #include "xen_fileXX.c" 8 | -------------------------------------------------------------------------------- /grub-core/loader/i386/xen_file64.c: -------------------------------------------------------------------------------- 1 | #define GRUB_TARGET_WORDSIZE 64 2 | #define XX 64 3 | #define grub_le_to_cpu_addr grub_le_to_cpu64 4 | #define ehdrXX ehdr64 5 | #define grub_xen_get_infoXX grub_xen_get_info64 6 | #define FOR_ELF_PHDRS FOR_ELF64_PHDRS 7 | #include "xen_fileXX.c" 8 | -------------------------------------------------------------------------------- /grub-core/loader/macho32.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define SUFFIX(x) x ## 32 5 | typedef struct grub_macho_header32 grub_macho_header_t; 6 | typedef struct grub_macho_segment32 grub_macho_segment_t; 7 | typedef grub_uint32_t grub_macho_addr_t; 8 | typedef struct grub_macho_thread32 grub_macho_thread_t; 9 | #define offsetXX offset32 10 | #define ncmdsXX ncmds32 11 | #define cmdsizeXX cmdsize32 12 | #define cmdsXX cmds32 13 | #define endXX end32 14 | #define uncompressedXX uncompressed32 15 | #define compressedXX compressed32 16 | #define uncompressed_sizeXX uncompressed_size32 17 | #define compressed_sizeXX compressed_size32 18 | #define XX "32" 19 | #define GRUB_MACHO_MAGIC GRUB_MACHO_MAGIC32 20 | #define GRUB_MACHO_CMD_SEGMENT GRUB_MACHO_CMD_SEGMENT32 21 | #include "machoXX.c" 22 | 23 | -------------------------------------------------------------------------------- /grub-core/loader/macho64.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #define SUFFIX(x) x ## 64 5 | typedef struct grub_macho_header64 grub_macho_header_t; 6 | typedef struct grub_macho_segment64 grub_macho_segment_t; 7 | typedef grub_uint64_t grub_macho_addr_t; 8 | typedef struct grub_macho_thread64 grub_macho_thread_t; 9 | #define offsetXX offset64 10 | #define ncmdsXX ncmds64 11 | #define cmdsizeXX cmdsize64 12 | #define cmdsXX cmds64 13 | #define endXX end64 14 | #define uncompressedXX uncompressed64 15 | #define compressedXX compressed64 16 | #define uncompressed_sizeXX uncompressed_size64 17 | #define compressed_sizeXX compressed_size64 18 | #define XX "64" 19 | #define GRUB_MACHO_MAGIC GRUB_MACHO_MAGIC64 20 | #define GRUB_MACHO_CMD_SEGMENT GRUB_MACHO_CMD_SEGMENT64 21 | #include "machoXX.c" 22 | 23 | -------------------------------------------------------------------------------- /grub-core/osdep/basic/compress.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int 6 | grub_install_compress_gzip (const char *src, const char *dest) 7 | { 8 | grub_util_error (_("no compression is available for your platform")); 9 | } 10 | 11 | int 12 | grub_install_compress_xz (const char *src, const char *dest) 13 | { 14 | grub_util_error (_("no compression is available for your platform")); 15 | } 16 | 17 | int 18 | grub_install_compress_lzop (const char *src, const char *dest) 19 | { 20 | grub_util_error (_("no compression is available for your platform")); 21 | } 22 | -------------------------------------------------------------------------------- /grub-core/osdep/basic/ofpath.c: -------------------------------------------------------------------------------- 1 | /* ofpath.c - calculate OpenFirmware path names given an OS device */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2009, 2011,2012, 2013 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #include 21 | #include 22 | 23 | char * 24 | grub_util_devname_to_ofpath (const char *sys_devname __attribute__ ((unused))) 25 | { 26 | return NULL; 27 | } 28 | 29 | 30 | -------------------------------------------------------------------------------- /grub-core/osdep/basic/platform.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | 21 | const char * 22 | grub_install_get_default_x86_platform (void) 23 | { 24 | return "i386-pc"; 25 | } 26 | 27 | -------------------------------------------------------------------------------- /grub-core/osdep/blocklist.c: -------------------------------------------------------------------------------- 1 | #ifdef __linux__ 2 | #include "linux/blocklist.c" 3 | #elif defined (__MINGW32__) || defined (__CYGWIN__) 4 | #include "windows/blocklist.c" 5 | #else 6 | #include "generic/blocklist.c" 7 | #endif 8 | -------------------------------------------------------------------------------- /grub-core/osdep/compress.c: -------------------------------------------------------------------------------- 1 | #if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__AROS__) 2 | #include "unix/compress.c" 3 | #else 4 | #include "basic/compress.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/config.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) && !defined (__CYGWIN__) 2 | #include "windows/config.c" 3 | #elif defined (__AROS__) 4 | #include "aros/config.c" 5 | #else 6 | #include "unix/config.c" 7 | #endif 8 | -------------------------------------------------------------------------------- /grub-core/osdep/cputime.c: -------------------------------------------------------------------------------- 1 | #ifdef __MINGW32__ 2 | #include "windows/cputime.c" 3 | #else 4 | #include "unix/cputime.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/dl.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) || defined (__CYGWIN__) 2 | #include "windows/dl.c" 3 | #else 4 | #include "unix/dl.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/emuconsole.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) && !defined (__CYGWIN__) 2 | #include "windows/emuconsole.c" 3 | #else 4 | #include "unix/emuconsole.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/emunet.c: -------------------------------------------------------------------------------- 1 | #if defined (__linux__) 2 | #include "linux/emunet.c" 3 | #else 4 | #include "basic/emunet.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/exec.c: -------------------------------------------------------------------------------- 1 | #if (!defined (__MINGW32__) || defined (__CYGWIN__)) && !defined (__AROS__) 2 | #include "unix/exec.c" 3 | #endif 4 | -------------------------------------------------------------------------------- /grub-core/osdep/getroot.c: -------------------------------------------------------------------------------- 1 | #ifdef __linux__ 2 | #include "linux/getroot.c" 3 | #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) 4 | #include "freebsd/getroot.c" 5 | #elif defined(__NetBSD__) || defined(__OpenBSD__) 6 | #include "bsd/getroot.c" 7 | #elif defined(__APPLE__) 8 | #include "apple/getroot.c" 9 | #elif defined(__sun__) 10 | #include "sun/getroot.c" 11 | #elif defined(__GNU__) 12 | #include "hurd/getroot.c" 13 | #elif defined(__CYGWIN__) || defined (__MINGW32__) 14 | #include "windows/getroot.c" 15 | #elif defined(__AROS__) 16 | #include "aros/getroot.c" 17 | #elif defined (__HAIKU__) 18 | #include "haiku/getroot.c" 19 | #else 20 | # warning "No getroot OS-specific functions is available for your system. Device detection may not work properly." 21 | #include "basic/getroot.c" 22 | #endif 23 | -------------------------------------------------------------------------------- /grub-core/osdep/hostdisk.c: -------------------------------------------------------------------------------- 1 | #ifdef __linux__ 2 | #include "linux/hostdisk.c" 3 | #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) 4 | #include "freebsd/hostdisk.c" 5 | #elif defined(__NetBSD__) || defined(__OpenBSD__) 6 | #include "bsd/hostdisk.c" 7 | #elif defined(__APPLE__) 8 | #include "apple/hostdisk.c" 9 | #elif defined(__sun__) 10 | #include "sun/hostdisk.c" 11 | #elif defined(__GNU__) 12 | #include "hurd/hostdisk.c" 13 | #elif defined(__CYGWIN__) || defined(__MINGW32__) 14 | #include "windows/hostdisk.c" 15 | #elif defined(__AROS__) 16 | #include "aros/hostdisk.c" 17 | #elif defined (__HAIKU__) 18 | #include "haiku/hostdisk.c" 19 | #else 20 | # warning "No hostdisk OS-specific functions is available for your system. Device detection may not work properly." 21 | #include "basic/hostdisk.c" 22 | #endif 23 | -------------------------------------------------------------------------------- /grub-core/osdep/init.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) 2 | #include "windows/init.c" 3 | #else 4 | #include "basic/init.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/ofpath.c: -------------------------------------------------------------------------------- 1 | #if defined (__linux__) 2 | #include "linux/ofpath.c" 3 | #else 4 | #include "basic/ofpath.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/password.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) && !defined (__CYGWIN__) 2 | #include "windows/password.c" 3 | #else 4 | #include "unix/password.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/platform.c: -------------------------------------------------------------------------------- 1 | #ifdef __linux__ 2 | #include "linux/platform.c" 3 | #elif defined (__MINGW32__) || defined (__CYGWIN__) 4 | #include "windows/platform.c" 5 | #elif defined (__MINGW32__) || defined (__CYGWIN__) || defined (__AROS__) 6 | #include "basic/no_platform.c" 7 | #else 8 | #include "basic/platform.c" 9 | #endif 10 | -------------------------------------------------------------------------------- /grub-core/osdep/platform_unix.c: -------------------------------------------------------------------------------- 1 | #if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__AROS__) 2 | #include "unix/platform.c" 3 | #endif 4 | -------------------------------------------------------------------------------- /grub-core/osdep/random.c: -------------------------------------------------------------------------------- 1 | #if defined (_WIN32) || defined (__CYGWIN__) 2 | #include "windows/random.c" 3 | #elif defined (__linux__) || defined (__FreeBSD__) \ 4 | || defined (__FreeBSD_kernel__) || defined (__OpenBSD__) \ 5 | || defined (__GNU__) || defined (__NetBSD__) \ 6 | || defined (__APPLE__) || defined(__sun__) || defined (__HAIKU__) 7 | #include "unix/random.c" 8 | #else 9 | #include "basic/random.c" 10 | #endif 11 | -------------------------------------------------------------------------------- /grub-core/osdep/relpath.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) || defined (__CYGWIN__) 2 | #include "windows/relpath.c" 3 | #elif defined (__AROS__) 4 | #include "aros/relpath.c" 5 | #else 6 | #include "unix/relpath.c" 7 | #endif 8 | -------------------------------------------------------------------------------- /grub-core/osdep/sleep.c: -------------------------------------------------------------------------------- 1 | #if defined (__MINGW32__) || defined (__CYGWIN__) 2 | #include "windows/sleep.c" 3 | #else 4 | #include "unix/sleep.c" 5 | #endif 6 | -------------------------------------------------------------------------------- /grub-core/osdep/unix/cputime.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | grub_uint64_t 9 | grub_util_get_cpu_time_ms (void) 10 | { 11 | struct tms tm; 12 | static long sc_clk_tck; 13 | if (!sc_clk_tck) 14 | { 15 | sc_clk_tck = sysconf(_SC_CLK_TCK); 16 | if (sc_clk_tck <= 0) 17 | sc_clk_tck = 1000; 18 | } 19 | 20 | times (&tm); 21 | return (tm.tms_utime * 1000ULL) / sc_clk_tck; 22 | } 23 | -------------------------------------------------------------------------------- /grub-core/osdep/unix/sleep.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2002,2003,2005,2006,2007,2008,2009,2010,2011,2012,2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | void 23 | grub_millisleep (grub_uint32_t ms) 24 | { 25 | struct timespec ts; 26 | 27 | ts.tv_sec = ms / 1000; 28 | ts.tv_nsec = (ms % 1000) * 1000000; 29 | nanosleep (&ts, NULL); 30 | } 31 | -------------------------------------------------------------------------------- /grub-core/osdep/windows/cputime.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include 5 | #include 6 | 7 | grub_uint64_t 8 | grub_util_get_cpu_time_ms (void) 9 | { 10 | FILETIME cr, ex, ke, us; 11 | ULARGE_INTEGER us_ul; 12 | 13 | GetProcessTimes (GetCurrentProcess (), &cr, &ex, &ke, &us); 14 | us_ul.LowPart = us.dwLowDateTime; 15 | us_ul.HighPart = us.dwHighDateTime; 16 | 17 | return us_ul.QuadPart / 10000; 18 | } 19 | 20 | -------------------------------------------------------------------------------- /grub-core/osdep/windows/sleep.c: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2002,2003,2005,2006,2007,2008,2009,2010,2011,2012,2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | #include 21 | 22 | #include 23 | #include 24 | #include 25 | 26 | void 27 | grub_millisleep (grub_uint32_t ms) 28 | { 29 | Sleep (ms); 30 | } 31 | 32 | -------------------------------------------------------------------------------- /grub-core/term/i386/pc/mda_text.c: -------------------------------------------------------------------------------- 1 | #define MODE_MDA 1 2 | #include "vga_text.c" 3 | 4 | GRUB_MOD_INIT(mda_text) 5 | { 6 | grub_term_register_output ("mda_text", &grub_vga_text_term); 7 | } 8 | 9 | GRUB_MOD_FINI(mda_text) 10 | { 11 | grub_term_unregister_output (&grub_vga_text_term); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /grub-core/tests/boot/kbsd.spec.txt: -------------------------------------------------------------------------------- 1 | . type=dir 2 | dev type=dir 3 | console type=char device=0 mode=666 gid=0 uid=0 4 | -------------------------------------------------------------------------------- /grub-core/tests/boot/kernel-8086.S: -------------------------------------------------------------------------------- 1 | 2 | .text 3 | .globl _start 4 | _start: 5 | base: 6 | .code16 7 | jmp cont 8 | 9 | serialmsg: 10 | 1: 11 | movb 0(%si), %bl 12 | testb %bl, %bl 13 | jz 1f 14 | movw $0x3fd, %dx 15 | 2: 16 | inb %dx, %al 17 | testb $0x20, %al 18 | jz 2b 19 | 20 | movw $0x3f8, %dx 21 | movb %bl, %al 22 | outb %al, %dx 23 | incw %si 24 | jmp 1b 25 | 1: 26 | ret 27 | 28 | cont: 29 | #ifdef TARGET_NTLDR 30 | movw $0x2000, %ax 31 | #elif defined (TARGET_CHAINLOADER) 32 | xorw %ax, %ax 33 | #else 34 | #error unsupported target 35 | #endif 36 | movw %ax, %ds 37 | lea message, %si 38 | call serialmsg 39 | #include "qemu-shutdown-x86.S" 40 | 41 | 1: 42 | hlt 43 | jmp 1b 44 | 45 | message: 46 | .ascii "Boot Test Passed Successfully\n" SUCCESSFUL_BOOT_STRING "\n" 47 | .byte 0 48 | 49 | .org 510 50 | .short 0xaa55 51 | -------------------------------------------------------------------------------- /grub-core/tests/boot/kfreebsd-aout.cfg: -------------------------------------------------------------------------------- 1 | kfreebsd /kfreebsd.aout 2 | boot 3 | # Shouln't happen 4 | halt 5 | -------------------------------------------------------------------------------- /grub-core/tests/boot/kfreebsd.cfg: -------------------------------------------------------------------------------- 1 | kfreebsd /kfreebsd -hv 2 | kfreebsd_loadenv /kfreebsd_env 3 | kfreebsd_module /mfsroot.gz type=mfs_root 4 | set kFreeBSD.hw.hasbrokenint12=1 5 | fakebios 6 | boot 7 | # Shouln't happen 8 | halt 9 | -------------------------------------------------------------------------------- /grub-core/tests/boot/knetbsd.cfg: -------------------------------------------------------------------------------- 1 | knetbsd /knetbsd -h 2 | knetbsd_module_elf /miniroot.gz 3 | boot 4 | # Shouln't happen 5 | halt 6 | -------------------------------------------------------------------------------- /grub-core/tests/boot/kopenbsd.cfg: -------------------------------------------------------------------------------- 1 | kopenbsd /kopenbsd -h 2 | kopenbsd_ramdisk /ramdisk 3 | boot 4 | # Shouln't happen 5 | halt 6 | -------------------------------------------------------------------------------- /grub-core/tests/boot/kopenbsdlabel.txt: -------------------------------------------------------------------------------- 1 | # size offset fstype [fsize bsize bps/cpg] 2 | a: 256 0 4.2BSD 0 0 1 3 | c: 256 0 unused 0 0 # "raw" part, don't edit 4 | -------------------------------------------------------------------------------- /grub-core/tests/boot/linux-ppc.cfg: -------------------------------------------------------------------------------- 1 | linux /linux console=ttyPZ1 root=/dev/ram0 2 | initrd /initrd 3 | boot 4 | # Shouln't happen 5 | halt 6 | -------------------------------------------------------------------------------- /grub-core/tests/boot/linux.cfg: -------------------------------------------------------------------------------- 1 | linux /linux console=ttyS0 root=/dev/ram0 2 | initrd /initrd 3 | boot 4 | # Shouln't happen 5 | halt 6 | -------------------------------------------------------------------------------- /grub-core/tests/boot/linux16.cfg: -------------------------------------------------------------------------------- 1 | linux16 /linux console=ttyS0 root=/dev/ram0 2 | initrd16 /initrd 3 | boot 4 | # Shouln't happen 5 | halt 6 | -------------------------------------------------------------------------------- /grub-core/tests/boot/multiboot.cfg: -------------------------------------------------------------------------------- 1 | multiboot /multiboot.elf 2 | boot 3 | # Shouln't happen 4 | halt 5 | -------------------------------------------------------------------------------- /grub-core/tests/boot/multiboot2.cfg: -------------------------------------------------------------------------------- 1 | multiboot2 /multiboot2.elf 2 | boot 3 | # Shouln't happen 4 | halt 5 | -------------------------------------------------------------------------------- /grub-core/tests/boot/ntldr.cfg: -------------------------------------------------------------------------------- 1 | ntldr /ntldr.bin 2 | boot 3 | # Shouln't happen 4 | halt 5 | -------------------------------------------------------------------------------- /grub-core/tests/boot/pc-chainloader.cfg: -------------------------------------------------------------------------------- 1 | chainloader /pc-chainloader.bin 2 | boot 3 | # Shouln't happen 4 | halt 5 | -------------------------------------------------------------------------------- /grub-core/tests/boot/qemu-shutdown-x86.S: -------------------------------------------------------------------------------- 1 | movl $0x80000b80, %eax 2 | movw $0xcf8, %dx 3 | outl %eax, %dx 4 | movw $0xcfc, %dx 5 | inb %dx, %al 6 | orb $1, %al 7 | outb %al, %dx 8 | 9 | movl $0x80000b40, %eax 10 | movw $0xcf8, %dx 11 | outl %eax, %dx 12 | movl $0x7001, %eax 13 | movw $0xcfc, %dx 14 | outl %eax, %dx 15 | movw $0x2000, %ax 16 | movw $0x7004, %dx 17 | outw %ax, %dx 18 | -------------------------------------------------------------------------------- /grub-core/video/sm712_init.c: -------------------------------------------------------------------------------- 1 | /* Following sequence is a capture of sm712 initialisation sequence. */ 2 | static grub_uint8_t sm712_sr_seq1[] = 3 | { 0xc8, 0x40, 0x14, 0x60, 0x0, 0xa, 0x92, 0x0, 4 | 0x51, 0x00, 0x01, 0x00, 0x0, 0x0, 0x00, 0x0, 5 | 0xc4, 0x30, 0x02, 0x00, 0x1 }; 6 | 7 | static grub_uint8_t sm712_sr_seq2[] = 8 | { 0x28, 0x03, 0x24, 0x09, 0xc0, 0x3a, 0x3a, 0x3a, 9 | 0x3a, 0x3a, 0x3a, 0x3a, 0x00, 0x00, 0x03, 0xff, 10 | 0x00, 0xfc, 0x00, 0x00, 0x20, 0x18, 0x00, 0xfc, 11 | 0x20, 0x0c, 0x44, 0x20, 0x00, 0x00, 0x00, 0x3a, 12 | 0x06, 0x68, 0xa7, 0x7f, 0x83, 0x24, 0xff, 0x03, 13 | 0x00, 0x60, 0x59, 0x3a, 0x3a, 0x00, 0x00, 0x3a, 14 | 0x01, 0x80 }; 15 | -------------------------------------------------------------------------------- /include/grub/arm/efi/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MEMORY_CPU_HEADER 2 | #include 3 | 4 | #define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff 5 | 6 | #endif /* ! GRUB_MEMORY_CPU_HEADER */ 7 | -------------------------------------------------------------------------------- /include/grub/arm/system.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_SYSTEM_CPU_HEADER 2 | #define GRUB_SYSTEM_CPU_HEADER 3 | 4 | #include 5 | 6 | enum 7 | { 8 | GRUB_ARM_MACHINE_TYPE_RASPBERRY_PI = 3138, 9 | GRUB_ARM_MACHINE_TYPE_FDT = 0xFFFFFFFF 10 | }; 11 | 12 | void EXPORT_FUNC(grub_arm_disable_caches_mmu) (void); 13 | void grub_arm_enable_caches_mmu (void); 14 | void grub_arm_enable_mmu (grub_uint32_t *mmu_tables); 15 | void grub_arm_clear_mmu_v6 (void); 16 | 17 | #endif /* ! GRUB_SYSTEM_CPU_HEADER */ 18 | 19 | -------------------------------------------------------------------------------- /include/grub/arm/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: this can't work until we handle interrupts. */ 26 | /* __asm__ __volatile__ ("wfi"); */ 27 | } 28 | 29 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 30 | -------------------------------------------------------------------------------- /include/grub/arm64/efi/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MEMORY_CPU_HEADER 2 | #include 3 | 4 | #define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffffffffULL 5 | 6 | #endif /* ! GRUB_MEMORY_CPU_HEADER */ 7 | -------------------------------------------------------------------------------- /include/grub/arm64/reloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_ARM64_RELOC_H 20 | #define GRUB_ARM64_RELOC_H 1 21 | 22 | int grub_arm_64_check_xxxx26_offset (grub_int64_t offset); 23 | void 24 | grub_arm64_set_xxxx26_offset (grub_uint32_t *place, grub_int64_t offset); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /include/grub/arm64/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: this can't work until we handle interrupts. */ 26 | /* __asm__ __volatile__ ("wfi"); */ 27 | } 28 | 29 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 30 | -------------------------------------------------------------------------------- /include/grub/backtrace.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_BACKTRACE_HEADER 20 | #define GRUB_BACKTRACE_HEADER 1 21 | 22 | void grub_backtrace (void); 23 | void grub_backtrace_pointer (void *ptr); 24 | void grub_backtrace_print_address (void *addr); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /include/grub/boottime.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/include/grub/boottime.h -------------------------------------------------------------------------------- /include/grub/emu/console.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_CONSOLE_UTIL_HEADER 20 | #define GRUB_CONSOLE_UTIL_HEADER 1 21 | 22 | /* Initialize the console system. */ 23 | void grub_console_init (void); 24 | 25 | /* Finish the console system. */ 26 | void grub_console_fini (void); 27 | 28 | #endif /* ! GRUB_CONSOLE_UTIL_HEADER */ 29 | -------------------------------------------------------------------------------- /include/grub/fileid.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_FILEID_HEADER 20 | #define GRUB_FILEID_HEADER 1 21 | 22 | #include 23 | 24 | int 25 | grub_file_check_netbsd32 (grub_elf_t elf); 26 | int 27 | grub_file_check_netbsd64 (grub_elf_t elf); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /include/grub/gcrypt/gpg-error.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_GPG_ERROR_H 2 | #define GRUB_GPG_ERROR_H 1 3 | 4 | #include 5 | typedef enum 6 | { 7 | GPG_ERR_SOURCE_USER_1 8 | } 9 | gpg_err_source_t; 10 | #define GPG_ERR_INLINE inline 11 | static inline int 12 | gpg_err_make (gpg_err_source_t source __attribute__ ((unused)), gpg_err_code_t code) 13 | { 14 | return code; 15 | } 16 | 17 | static inline gpg_err_code_t 18 | gpg_err_code (gpg_error_t err) 19 | { 20 | return err; 21 | } 22 | 23 | static inline gpg_err_source_t 24 | gpg_err_source (gpg_error_t err __attribute__ ((unused))) 25 | { 26 | return GPG_ERR_SOURCE_USER_1; 27 | } 28 | 29 | gcry_err_code_t 30 | gpg_error_from_syserror (void); 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /include/grub/gfxmenu_model.h: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /include/grub/i386/at_keyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007,2008,2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_CPU_AT_KEYBOARD_HEADER 20 | #define GRUB_CPU_AT_KEYBOARD_HEADER 1 21 | 22 | #define KEYBOARD_REG_DATA 0x60 23 | #define KEYBOARD_REG_STATUS 0x64 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/grub/i386/coreboot/boot.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/coreboot/serial.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_MACHINE_SERIAL_HEADER 20 | #define GRUB_MACHINE_SERIAL_HEADER 1 21 | 22 | #define GRUB_MACHINE_SERIAL_PORTS { 0x3f8, 0x2f8, 0x3e8, 0x2e8 } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /include/grub/i386/coreboot/time.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/efi/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MEMORY_CPU_HEADER 2 | #include 3 | 4 | #define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff 5 | 6 | #endif /* ! GRUB_MEMORY_CPU_HEADER */ 7 | -------------------------------------------------------------------------------- /include/grub/i386/efi/serial.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/ieee1275/ieee1275.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/ieee1275/memory.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/ieee1275/serial.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/multiboot/boot.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/multiboot/console.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/multiboot/kernel.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/multiboot/memory.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/multiboot/serial.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/multiboot/time.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/pc/biosnum.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_BIOSNUM_MACHINE_HEADER 2 | #define GRUB_BIOSNUM_MACHINE_HEADER 1 3 | 4 | extern int (*grub_get_root_biosnumber) (void); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /include/grub/i386/pc/chainloader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2004,2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_CHAINLOADER_MACHINE_HEADER 20 | #define GRUB_CHAINLOADER_MACHINE_HEADER 1 21 | 22 | #include 23 | 24 | void 25 | grub_chainloader_patch_bpb (void *bs, grub_device_t dev, grub_uint8_t dl); 26 | 27 | #endif /* GRUB_CHAINLOADER_MACHINE_HEADER */ 28 | -------------------------------------------------------------------------------- /include/grub/i386/pc/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2003,2004,2005,2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_MACHINE_TIME_HEADER 20 | #define KERNEL_MACHINE_TIME_HEADER 1 21 | 22 | #include 23 | 24 | #endif /* ! KERNEL_MACHINE_TIME_HEADER */ 25 | -------------------------------------------------------------------------------- /include/grub/i386/pc/vesa_modes_table.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_VESA_MODE_TABLE_HEADER 2 | #define GRUB_VESA_MODE_TABLE_HEADER 1 3 | 4 | #include 5 | 6 | #define GRUB_VESA_MODE_TABLE_START 0x300 7 | #define GRUB_VESA_MODE_TABLE_END 0x373 8 | 9 | struct grub_vesa_mode_table_entry { 10 | grub_uint16_t width; 11 | grub_uint16_t height; 12 | grub_uint8_t depth; 13 | }; 14 | 15 | extern struct grub_vesa_mode_table_entry 16 | grub_vesa_mode_table[GRUB_VESA_MODE_TABLE_END 17 | - GRUB_VESA_MODE_TABLE_START + 1]; 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /include/grub/i386/qemu/boot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_BOOT_MACHINE_HEADER 20 | #define GRUB_BOOT_MACHINE_HEADER 1 21 | 22 | /* The size of boot.img. */ 23 | #define GRUB_BOOT_MACHINE_SIZE (0x100000 - GRUB_BOOT_MACHINE_LINK_ADDR) 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/grub/i386/qemu/console.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/qemu/memory.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/qemu/serial.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/qemu/time.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/i386/reboot.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2011 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_REBOOT_H 20 | #define GRUB_REBOOT_H 1 21 | 22 | #ifndef ASM_FILE 23 | 24 | extern grub_uint8_t grub_reboot_end[], grub_reboot_start[]; 25 | 26 | #endif 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /include/grub/i386/relocator_private.h: -------------------------------------------------------------------------------- 1 | #define GRUB_RELOCATOR16_STACK_SIZE 4096 2 | -------------------------------------------------------------------------------- /include/grub/i386/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: this can't work until we handle interrupts. */ 26 | /* __asm__ __volatile__ ("hlt"); */ 27 | } 28 | 29 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 30 | -------------------------------------------------------------------------------- /include/grub/i386/xen/memory.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/include/grub/i386/xen/memory.h -------------------------------------------------------------------------------- /include/grub/ia64/efi/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MEMORY_CPU_HEADER 2 | #include 3 | 4 | #define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff 5 | 6 | #endif /* ! GRUB_MEMORY_CPU_HEADER */ 7 | -------------------------------------------------------------------------------- /include/grub/ia64/efi/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2008 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | #ifndef GRUB_MACHINE_TIME_HEADER 19 | #define GRUB_MACHINE_TIME_HEADER 1 20 | 21 | #include 22 | 23 | #endif /* ! GRUB_MACHINE_TIME_HEADER */ 24 | -------------------------------------------------------------------------------- /include/grub/ia64/kernel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2010 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_CPU_KERNEL_HEADER 20 | #define GRUB_CPU_KERNEL_HEADER 1 21 | 22 | #define GRUB_MOD_ALIGN 0x1 23 | #define GRUB_MOD_GAP 0x0 24 | 25 | #endif /* ! GRUB_CPU_KERNEL_HEADER */ 26 | -------------------------------------------------------------------------------- /include/grub/ia64/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007, 2008 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: not implemented */ 26 | } 27 | 28 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 29 | -------------------------------------------------------------------------------- /include/grub/ieee1275/ofdisk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2005,2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_OFDISK_HEADER 20 | #define GRUB_OFDISK_HEADER 1 21 | 22 | extern void grub_ofdisk_init (void); 23 | extern void grub_ofdisk_fini (void); 24 | 25 | #endif /* ! GRUB_INIT_HEADER */ 26 | -------------------------------------------------------------------------------- /include/grub/lib/crc.h: -------------------------------------------------------------------------------- 1 | /* crc.h - prototypes for crc */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2008 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #ifndef GRUB_CRC_H 21 | #define GRUB_CRC_H 1 22 | 23 | grub_uint32_t grub_getcrc32c (grub_uint32_t crc, const void *buf, int size); 24 | 25 | #endif /* ! GRUB_CRC_H */ 26 | -------------------------------------------------------------------------------- /include/grub/lib/hexdump.h: -------------------------------------------------------------------------------- 1 | /* hexdump.h - prototypes for dump */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2007 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #ifndef GRUB_HEXDUMP_H 21 | #define GRUB_HEXDUMP_H 1 22 | 23 | void hexdump (unsigned long bse,char* buf,int len); 24 | 25 | #endif /* ! GRUB_HEXDUMP_H */ 26 | -------------------------------------------------------------------------------- /include/grub/linux.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct grub_linux_initrd_component; 4 | 5 | struct grub_linux_initrd_context 6 | { 7 | int nfiles; 8 | struct grub_linux_initrd_component *components; 9 | grub_size_t size; 10 | }; 11 | 12 | grub_err_t 13 | grub_initrd_init (int argc, char *argv[], 14 | struct grub_linux_initrd_context *ctx); 15 | 16 | grub_size_t 17 | grub_get_initrd_size (struct grub_linux_initrd_context *ctx); 18 | 19 | void 20 | grub_initrd_close (struct grub_linux_initrd_context *initrd_ctx); 21 | 22 | grub_err_t 23 | grub_initrd_load (struct grub_linux_initrd_context *initrd_ctx, 24 | char *argv[], void *target); 25 | -------------------------------------------------------------------------------- /include/grub/mips/arc/kernel.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | -------------------------------------------------------------------------------- /include/grub/mips/arc/time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/include/grub/mips/arc/time.h -------------------------------------------------------------------------------- /include/grub/mips/asm.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MIPS_ASM_HEADER 2 | #define GRUB_MIPS_ASM_HEADER 1 3 | 4 | #if defined(_MIPS_SIM) && defined(_ABIN32) && _MIPS_SIM == _ABIN32 5 | #define GRUB_ASM_T4 $a4 6 | #define GRUB_ASM_T5 $a5 7 | #define GRUB_ASM_SZREG 8 8 | #define GRUB_ASM_REG_S sd 9 | #define GRUB_ASM_REG_L ld 10 | #else 11 | #define GRUB_ASM_T4 $t4 12 | #define GRUB_ASM_T5 $t5 13 | #define GRUB_ASM_SZREG 4 14 | #define GRUB_ASM_REG_S sw 15 | #define GRUB_ASM_REG_L lw 16 | #endif 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /include/grub/mips/at_keyboard.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/mips/cmos.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/mips/kernel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2005,2006,2007,2008,2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_KERNEL_CPU_HEADER 20 | #define GRUB_KERNEL_CPU_HEADER 1 21 | 22 | #include 23 | 24 | #endif /* ! GRUB_KERNEL_MACHINE_HEADER */ 25 | -------------------------------------------------------------------------------- /include/grub/mips/loongson/at_keyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007,2008,2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_MACHINE_AT_KEYBOARD_HEADER 20 | #define GRUB_MACHINE_AT_KEYBOARD_HEADER 1 21 | 22 | #include 23 | 24 | #define KEYBOARD_REG_DATA (GRUB_MACHINE_PCI_IO_BASE | 0x60) 25 | #define KEYBOARD_REG_STATUS (GRUB_MACHINE_PCI_IO_BASE | 0x64) 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /include/grub/mips/mips.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2010 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_REGISTERS_CPU_HEADER 20 | #define GRUB_REGISTERS_CPU_HEADER 1 21 | 22 | #ifdef ASM_FILE 23 | #define GRUB_CPU_REGISTER_WRAP(x) x 24 | #else 25 | #define GRUB_CPU_REGISTER_WRAP(x) #x 26 | #endif 27 | 28 | #define GRUB_CPU_MIPS_COP0_TIMER_COUNT GRUB_CPU_REGISTER_WRAP($9) 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /include/grub/mips/pci.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/mips/qemu_mips/at_keyboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007,2008,2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_MACHINE_AT_KEYBOARD_HEADER 20 | #define GRUB_MACHINE_AT_KEYBOARD_HEADER 1 21 | 22 | #define KEYBOARD_REG_DATA 0xb4000060 23 | #define KEYBOARD_REG_STATUS 0xb4000064 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /include/grub/mips/qemu_mips/console.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_MACHINE_CONSOLE_HEADER 20 | #define GRUB_MACHINE_CONSOLE_HEADER 1 21 | 22 | void grub_vga_text_init (void); 23 | void grub_vga_text_fini (void); 24 | 25 | #endif /* ! GRUB_MACHINE_CONSOLE_HEADER */ 26 | -------------------------------------------------------------------------------- /include/grub/mips/qemu_mips/kernel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2005,2006,2007,2008,2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_KERNEL_MACHINE_HEADER 20 | #define GRUB_KERNEL_MACHINE_HEADER 1 21 | 22 | #include 23 | 24 | #ifndef ASM_FILE 25 | 26 | void grub_qemu_init_cirrus (void); 27 | 28 | #endif 29 | 30 | #endif /* ! GRUB_KERNEL_MACHINE_HEADER */ 31 | -------------------------------------------------------------------------------- /include/grub/mips/qemu_mips/loader.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/include/grub/mips/qemu_mips/loader.h -------------------------------------------------------------------------------- /include/grub/mips/qemu_mips/serial.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_MACHINE_SERIAL_HEADER 20 | #define GRUB_MACHINE_SERIAL_HEADER 1 21 | 22 | #define GRUB_MACHINE_SERIAL_PORTS { 0xb40003f8 } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /include/grub/mips/qemu_mips/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2003,2004,2005,2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_MACHINE_TIME_HEADER 20 | #define KERNEL_MACHINE_TIME_HEADER 1 21 | 22 | #include 23 | #include 24 | 25 | #endif /* ! KERNEL_MACHINE_TIME_HEADER */ 26 | -------------------------------------------------------------------------------- /include/grub/osdep/hostfile.h: -------------------------------------------------------------------------------- 1 | #if defined (__AROS__) 2 | #include "hostfile_aros.h" 3 | #elif defined (__CYGWIN__) || defined (__MINGW32__) 4 | #include "hostfile_windows.h" 5 | #else 6 | #include "hostfile_unix.h" 7 | #endif 8 | -------------------------------------------------------------------------------- /include/grub/powerpc/kernel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2005,2006,2007,2008 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_KERNEL_CPU_HEADER 20 | #define GRUB_KERNEL_CPU_HEADER 1 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /include/grub/powerpc/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: not implemented */ 26 | } 27 | 28 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 29 | -------------------------------------------------------------------------------- /include/grub/sdl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2010 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | void EXPORT_FUNC (SDL_Quit) (void); 20 | void EXPORT_FUNC (SDL_SetColors) (void); 21 | void EXPORT_FUNC (SDL_Init) (void); 22 | void EXPORT_FUNC (SDL_GetError) (void); 23 | void EXPORT_FUNC (SDL_Flip) (void); 24 | void EXPORT_FUNC (SDL_SetVideoMode) (void); 25 | -------------------------------------------------------------------------------- /include/grub/sparc64/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: not implemented */ 26 | } 27 | 28 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 29 | -------------------------------------------------------------------------------- /include/grub/tparm.h: -------------------------------------------------------------------------------- 1 | /* tparm.h - parameter formatting of terminfo */ 2 | /* 3 | * GRUB -- GRand Unified Bootloader 4 | * Copyright (C) 2002,2005,2007 Free Software Foundation, Inc. 5 | * 6 | * GRUB is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation, either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GRUB is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GRUB. If not, see . 18 | */ 19 | 20 | #ifndef GRUB_TPARM_HEADER 21 | #define GRUB_TPARM_HEADER 1 22 | 23 | /* Function prototypes. */ 24 | const char *grub_terminfo_tparm (const char *string, ...); 25 | 26 | #endif /* ! GRUB_TPARM_HEADER */ 27 | -------------------------------------------------------------------------------- /include/grub/udf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2013 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_UDF_H 20 | #define GRUB_UDF_H 1 21 | 22 | #include 23 | 24 | #ifdef GRUB_UTIL 25 | #include 26 | 27 | grub_disk_addr_t 28 | grub_udf_get_cluster_sector (grub_disk_t disk, grub_uint64_t *sec_per_lcn); 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /include/grub/util/ofpath.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_OFPATH_MACHINE_UTIL_HEADER 2 | #define GRUB_OFPATH_MACHINE_UTIL_HEADER 1 3 | 4 | char *grub_util_devname_to_ofpath (const char *devname); 5 | 6 | #endif /* ! GRUB_OFPATH_MACHINE_UTIL_HEADER */ 7 | -------------------------------------------------------------------------------- /include/grub/x86_64/at_keyboard.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/x86_64/efi/boot.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/include/grub/x86_64/efi/boot.h -------------------------------------------------------------------------------- /include/grub/x86_64/efi/loader.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2002,2003,2004,2006,2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef GRUB_LOADER_MACHINE_HEADER 20 | #define GRUB_LOADER_MACHINE_HEADER 1 21 | 22 | #include 23 | #include 24 | 25 | 26 | #endif /* ! GRUB_LOADER_MACHINE_HEADER */ 27 | -------------------------------------------------------------------------------- /include/grub/x86_64/efi/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef GRUB_MEMORY_CPU_HEADER 2 | #include 3 | 4 | #if defined (__code_model_large__) 5 | #define GRUB_EFI_MAX_USABLE_ADDRESS 0xffffffff 6 | #else 7 | #define GRUB_EFI_MAX_USABLE_ADDRESS 0x7fffffff 8 | #endif 9 | 10 | #endif /* ! GRUB_MEMORY_CPU_HEADER */ 11 | -------------------------------------------------------------------------------- /include/grub/x86_64/efi/serial.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/x86_64/io.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2009 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | -------------------------------------------------------------------------------- /include/grub/x86_64/linux.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2008 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | -------------------------------------------------------------------------------- /include/grub/x86_64/macho.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/x86_64/memory.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/x86_64/multiboot.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/x86_64/pci.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2008 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #include 20 | -------------------------------------------------------------------------------- /include/grub/x86_64/relocator.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /include/grub/x86_64/time.h: -------------------------------------------------------------------------------- 1 | /* 2 | * GRUB -- GRand Unified Bootloader 3 | * Copyright (C) 2007 Free Software Foundation, Inc. 4 | * 5 | * GRUB is free software: you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published by 7 | * the Free Software Foundation, either version 3 of the License, or 8 | * (at your option) any later version. 9 | * 10 | * GRUB is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with GRUB. If not, see . 17 | */ 18 | 19 | #ifndef KERNEL_CPU_TIME_HEADER 20 | #define KERNEL_CPU_TIME_HEADER 1 21 | 22 | static __inline void 23 | grub_cpu_idle (void) 24 | { 25 | /* FIXME: this can't work until we handle interrupts. */ 26 | /* __asm__ __volatile__ ("hlt"); */ 27 | } 28 | 29 | #endif /* ! KERNEL_CPU_TIME_HEADER */ 30 | -------------------------------------------------------------------------------- /include/grub/x86_64/xnu.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /linguas.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rsync -Lrtvz --exclude=ko.po translationproject.org::tp/latest/grub/ po 4 | 5 | autogenerated="en@quot en@hebrew de@hebrew en@cyrillic en@greek en@arabic en@piglatin de_CH" 6 | 7 | 8 | for x in $autogenerated; do 9 | rm -f "po/$x.po"; 10 | done 11 | 12 | 13 | ( 14 | ( 15 | cd po && ls *.po| cut -d. -f1 16 | for x in $autogenerated; do 17 | echo "$x"; 18 | done 19 | ) | sort | uniq | xargs 20 | ) >po/LINGUAS 21 | -------------------------------------------------------------------------------- /m4/codeset.m4: -------------------------------------------------------------------------------- 1 | # codeset.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2000-2002, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | 9 | AC_DEFUN([AM_LANGINFO_CODESET], 10 | [ 11 | AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], 12 | [AC_LINK_IFELSE( 13 | [AC_LANG_PROGRAM( 14 | [[#include ]], 15 | [[char* cs = nl_langinfo(CODESET); return !cs;]])], 16 | [am_cv_langinfo_codeset=yes], 17 | [am_cv_langinfo_codeset=no]) 18 | ]) 19 | if test $am_cv_langinfo_codeset = yes; then 20 | AC_DEFINE([HAVE_LANGINFO_CODESET], [1], 21 | [Define if you have and nl_langinfo(CODESET).]) 22 | fi 23 | ]) 24 | -------------------------------------------------------------------------------- /m4/dirname.m4: -------------------------------------------------------------------------------- 1 | #serial 10 -*- autoconf -*- 2 | dnl Copyright (C) 2002-2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_DIRNAME], 8 | [ 9 | AC_REQUIRE([gl_DIRNAME_LGPL]) 10 | ]) 11 | 12 | AC_DEFUN([gl_DIRNAME_LGPL], 13 | [ 14 | dnl Prerequisites of lib/dirname.h. 15 | AC_REQUIRE([gl_DOUBLE_SLASH_ROOT]) 16 | 17 | dnl No prerequisites of lib/basename-lgpl.c, lib/dirname-lgpl.c, 18 | dnl lib/stripslash.c. 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/eealloc.m4: -------------------------------------------------------------------------------- 1 | # eealloc.m4 serial 3 2 | dnl Copyright (C) 2003, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_EEALLOC], 8 | [ 9 | AC_REQUIRE([gl_EEMALLOC]) 10 | AC_REQUIRE([gl_EEREALLOC]) 11 | ]) 12 | 13 | AC_DEFUN([gl_EEMALLOC], 14 | [ 15 | _AC_FUNC_MALLOC_IF( 16 | [gl_cv_func_malloc_0_nonnull=1], 17 | [gl_cv_func_malloc_0_nonnull=0]) 18 | AC_DEFINE_UNQUOTED([MALLOC_0_IS_NONNULL], [$gl_cv_func_malloc_0_nonnull], 19 | [If malloc(0) is != NULL, define this to 1. Otherwise define this 20 | to 0.]) 21 | ]) 22 | 23 | AC_DEFUN([gl_EEREALLOC], 24 | [ 25 | _AC_FUNC_REALLOC_IF( 26 | [gl_cv_func_realloc_0_nonnull=1], 27 | [gl_cv_func_realloc_0_nonnull=0]) 28 | AC_DEFINE_UNQUOTED([REALLOC_0_IS_NONNULL], [$gl_cv_func_realloc_0_nonnull], 29 | [If realloc(NULL,0) is != NULL, define this to 1. Otherwise define this 30 | to 0.]) 31 | ]) 32 | -------------------------------------------------------------------------------- /m4/error.m4: -------------------------------------------------------------------------------- 1 | #serial 14 2 | 3 | # Copyright (C) 1996-1998, 2001-2004, 2009-2013 Free Software Foundation, Inc. 4 | # 5 | # This file is free software; the Free Software Foundation 6 | # gives unlimited permission to copy and/or distribute it, 7 | # with or without modifications, as long as this notice is preserved. 8 | 9 | AC_DEFUN([gl_ERROR], 10 | [ 11 | dnl We don't use AC_FUNC_ERROR_AT_LINE any more, because it is no longer 12 | dnl maintained in Autoconf and because it invokes AC_LIBOBJ. 13 | AC_CACHE_CHECK([for error_at_line], [ac_cv_lib_error_at_line], 14 | [AC_LINK_IFELSE( 15 | [AC_LANG_PROGRAM( 16 | [[#include ]], 17 | [[error_at_line (0, 0, "", 0, "an error occurred");]])], 18 | [ac_cv_lib_error_at_line=yes], 19 | [ac_cv_lib_error_at_line=no])]) 20 | ]) 21 | 22 | # Prerequisites of lib/error.c. 23 | AC_DEFUN([gl_PREREQ_ERROR], 24 | [ 25 | AC_REQUIRE([AC_FUNC_STRERROR_R]) 26 | : 27 | ]) 28 | -------------------------------------------------------------------------------- /m4/glibc2.m4: -------------------------------------------------------------------------------- 1 | # glibc2.m4 serial 3 2 | dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | # Test for the GNU C Library, version 2.0 or newer. 9 | # From Bruno Haible. 10 | 11 | AC_DEFUN([gt_GLIBC2], 12 | [ 13 | AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], 14 | [ac_cv_gnu_library_2], 15 | [AC_EGREP_CPP([Lucky GNU user], 16 | [ 17 | #include 18 | #ifdef __GNU_LIBRARY__ 19 | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 20 | Lucky GNU user 21 | #endif 22 | #endif 23 | ], 24 | [ac_cv_gnu_library_2=yes], 25 | [ac_cv_gnu_library_2=no]) 26 | ] 27 | ) 28 | AC_SUBST([GLIBC2]) 29 | GLIBC2="$ac_cv_gnu_library_2" 30 | ] 31 | ) 32 | -------------------------------------------------------------------------------- /m4/glibc21.m4: -------------------------------------------------------------------------------- 1 | # glibc21.m4 serial 5 2 | dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | # Test for the GNU C Library, version 2.1 or newer, or uClibc. 9 | # From Bruno Haible. 10 | 11 | AC_DEFUN([gl_GLIBC21], 12 | [ 13 | AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc], 14 | [ac_cv_gnu_library_2_1], 15 | [AC_EGREP_CPP([Lucky], 16 | [ 17 | #include 18 | #ifdef __GNU_LIBRARY__ 19 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 20 | Lucky GNU user 21 | #endif 22 | #endif 23 | #ifdef __UCLIBC__ 24 | Lucky user 25 | #endif 26 | ], 27 | [ac_cv_gnu_library_2_1=yes], 28 | [ac_cv_gnu_library_2_1=no]) 29 | ] 30 | ) 31 | AC_SUBST([GLIBC21]) 32 | GLIBC21="$ac_cv_gnu_library_2_1" 33 | ] 34 | ) 35 | -------------------------------------------------------------------------------- /m4/intldir.m4: -------------------------------------------------------------------------------- 1 | # intldir.m4 serial 2 (gettext-0.18) 2 | dnl Copyright (C) 2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | dnl 7 | dnl This file can can be used in projects which are not available under 8 | dnl the GNU General Public License or the GNU Library General Public 9 | dnl License but which still want to provide support for the GNU gettext 10 | dnl functionality. 11 | dnl Please note that the actual code of the GNU gettext library is covered 12 | dnl by the GNU Library General Public License, and the rest of the GNU 13 | dnl gettext package package is covered by the GNU General Public License. 14 | dnl They are *not* in the public domain. 15 | 16 | AC_PREREQ([2.52]) 17 | 18 | dnl Tells the AM_GNU_GETTEXT macro to consider an intl/ directory. 19 | AC_DEFUN([AM_GNU_GETTEXT_INTL_SUBDIR], []) 20 | -------------------------------------------------------------------------------- /m4/localcharset.m4: -------------------------------------------------------------------------------- 1 | # localcharset.m4 serial 7 2 | dnl Copyright (C) 2002, 2004, 2006, 2009-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_LOCALCHARSET], 8 | [ 9 | dnl Prerequisites of lib/localcharset.c. 10 | AC_REQUIRE([AM_LANGINFO_CODESET]) 11 | AC_REQUIRE([gl_FCNTL_O_FLAGS]) 12 | AC_CHECK_DECLS_ONCE([getc_unlocked]) 13 | 14 | dnl Prerequisites of the lib/Makefile.am snippet. 15 | AC_REQUIRE([AC_CANONICAL_HOST]) 16 | AC_REQUIRE([gl_GLIBC21]) 17 | ]) 18 | -------------------------------------------------------------------------------- /m4/localeconv.m4: -------------------------------------------------------------------------------- 1 | # localeconv.m4 serial 1 2 | dnl Copyright (C) 2012-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_LOCALECONV], 8 | [ 9 | AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) 10 | AC_REQUIRE([gl_LOCALE_H]) 11 | 12 | if test $REPLACE_STRUCT_LCONV = 1; then 13 | REPLACE_LOCALECONV=1 14 | fi 15 | ]) 16 | 17 | # Prerequisites of lib/localeconv.c. 18 | AC_DEFUN([gl_PREREQ_LOCALECONV], 19 | [ 20 | AC_CHECK_MEMBERS([struct lconv.decimal_point], [], [], 21 | [[#include ]]) 22 | ]) 23 | -------------------------------------------------------------------------------- /m4/mbtowc.m4: -------------------------------------------------------------------------------- 1 | # mbtowc.m4 serial 2 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_MBTOWC], 8 | [ 9 | AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 10 | 11 | if false; then 12 | REPLACE_MBTOWC=1 13 | fi 14 | ]) 15 | 16 | # Prerequisites of lib/mbtowc.c. 17 | AC_DEFUN([gl_PREREQ_MBTOWC], [ 18 | : 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/mempcpy.m4: -------------------------------------------------------------------------------- 1 | # mempcpy.m4 serial 11 2 | dnl Copyright (C) 2003-2004, 2006-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_FUNC_MEMPCPY], 9 | [ 10 | dnl Persuade glibc to declare mempcpy(). 11 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 12 | 13 | dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'. 14 | AC_REQUIRE([AC_C_RESTRICT]) 15 | 16 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 17 | AC_CHECK_FUNCS([mempcpy]) 18 | if test $ac_cv_func_mempcpy = no; then 19 | HAVE_MEMPCPY=0 20 | fi 21 | ]) 22 | 23 | # Prerequisites of lib/mempcpy.c. 24 | AC_DEFUN([gl_PREREQ_MEMPCPY], [ 25 | : 26 | ]) 27 | -------------------------------------------------------------------------------- /m4/msvc-inval.m4: -------------------------------------------------------------------------------- 1 | # msvc-inval.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_MSVC_INVAL], 8 | [ 9 | AC_CHECK_FUNCS_ONCE([_set_invalid_parameter_handler]) 10 | if test $ac_cv_func__set_invalid_parameter_handler = yes; then 11 | HAVE_MSVC_INVALID_PARAMETER_HANDLER=1 12 | AC_DEFINE([HAVE_MSVC_INVALID_PARAMETER_HANDLER], [1], 13 | [Define to 1 on MSVC platforms that have the "invalid parameter handler" 14 | concept.]) 15 | else 16 | HAVE_MSVC_INVALID_PARAMETER_HANDLER=0 17 | fi 18 | AC_SUBST([HAVE_MSVC_INVALID_PARAMETER_HANDLER]) 19 | ]) 20 | -------------------------------------------------------------------------------- /m4/msvc-nothrow.m4: -------------------------------------------------------------------------------- 1 | # msvc-nothrow.m4 serial 1 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_MSVC_NOTHROW], 8 | [ 9 | AC_REQUIRE([gl_MSVC_INVAL]) 10 | ]) 11 | -------------------------------------------------------------------------------- /m4/off_t.m4: -------------------------------------------------------------------------------- 1 | # off_t.m4 serial 1 2 | dnl Copyright (C) 2012-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl Check whether to override the 'off_t' type. 8 | dnl Set WINDOWS_64_BIT_OFF_T. 9 | 10 | AC_DEFUN([gl_TYPE_OFF_T], 11 | [ 12 | m4_ifdef([gl_LARGEFILE], [ 13 | AC_REQUIRE([gl_LARGEFILE]) 14 | ], [ 15 | WINDOWS_64_BIT_OFF_T=0 16 | ]) 17 | AC_SUBST([WINDOWS_64_BIT_OFF_T]) 18 | ]) 19 | -------------------------------------------------------------------------------- /m4/rawmemchr.m4: -------------------------------------------------------------------------------- 1 | # rawmemchr.m4 serial 2 2 | dnl Copyright (C) 2003, 2007-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_FUNC_RAWMEMCHR], 8 | [ 9 | dnl Persuade glibc to declare rawmemchr(). 10 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 11 | 12 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 13 | AC_CHECK_FUNCS([rawmemchr]) 14 | if test $ac_cv_func_rawmemchr = no; then 15 | HAVE_RAWMEMCHR=0 16 | fi 17 | ]) 18 | 19 | # Prerequisites of lib/strchrnul.c. 20 | AC_DEFUN([gl_PREREQ_RAWMEMCHR], [:]) 21 | -------------------------------------------------------------------------------- /m4/ssize_t.m4: -------------------------------------------------------------------------------- 1 | # ssize_t.m4 serial 5 (gettext-0.18.2) 2 | dnl Copyright (C) 2001-2003, 2006, 2010-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | dnl Test whether ssize_t is defined. 9 | 10 | AC_DEFUN([gt_TYPE_SSIZE_T], 11 | [ 12 | AC_CACHE_CHECK([for ssize_t], [gt_cv_ssize_t], 13 | [AC_COMPILE_IFELSE( 14 | [AC_LANG_PROGRAM( 15 | [[#include ]], 16 | [[int x = sizeof (ssize_t *) + sizeof (ssize_t); 17 | return !x;]])], 18 | [gt_cv_ssize_t=yes], [gt_cv_ssize_t=no])]) 19 | if test $gt_cv_ssize_t = no; then 20 | AC_DEFINE([ssize_t], [int], 21 | [Define as a signed type of the same size as size_t.]) 22 | fi 23 | ]) 24 | -------------------------------------------------------------------------------- /m4/stdint_h.m4: -------------------------------------------------------------------------------- 1 | # stdint_h.m4 serial 9 2 | dnl Copyright (C) 1997-2004, 2006, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Paul Eggert. 8 | 9 | # Define HAVE_STDINT_H_WITH_UINTMAX if exists, 10 | # doesn't clash with , and declares uintmax_t. 11 | 12 | AC_DEFUN([gl_AC_HEADER_STDINT_H], 13 | [ 14 | AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], 15 | [AC_COMPILE_IFELSE( 16 | [AC_LANG_PROGRAM( 17 | [[#include 18 | #include ]], 19 | [[uintmax_t i = (uintmax_t) -1; return !i;]])], 20 | [gl_cv_header_stdint_h=yes], 21 | [gl_cv_header_stdint_h=no])]) 22 | if test $gl_cv_header_stdint_h = yes; then 23 | AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], 24 | [Define if exists, doesn't clash with , 25 | and declares uintmax_t. ]) 26 | fi 27 | ]) 28 | -------------------------------------------------------------------------------- /m4/strnlen.m4: -------------------------------------------------------------------------------- 1 | # strnlen.m4 serial 13 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2013 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | 8 | AC_DEFUN([gl_FUNC_STRNLEN], 9 | [ 10 | AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS]) 11 | 12 | dnl Persuade glibc to declare strnlen(). 13 | AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) 14 | 15 | AC_CHECK_DECLS_ONCE([strnlen]) 16 | if test $ac_cv_have_decl_strnlen = no; then 17 | HAVE_DECL_STRNLEN=0 18 | else 19 | m4_pushdef([AC_LIBOBJ], [:]) 20 | dnl Note: AC_FUNC_STRNLEN does AC_LIBOBJ([strnlen]). 21 | AC_FUNC_STRNLEN 22 | m4_popdef([AC_LIBOBJ]) 23 | if test $ac_cv_func_strnlen_working = no; then 24 | REPLACE_STRNLEN=1 25 | fi 26 | fi 27 | ]) 28 | 29 | # Prerequisites of lib/strnlen.c. 30 | AC_DEFUN([gl_PREREQ_STRNLEN], [:]) 31 | -------------------------------------------------------------------------------- /m4/sys_types_h.m4: -------------------------------------------------------------------------------- 1 | # sys_types_h.m4 serial 5 2 | dnl Copyright (C) 2011-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN_ONCE([gl_SYS_TYPES_H], 8 | [ 9 | AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) 10 | gl_NEXT_HEADERS([sys/types.h]) 11 | 12 | dnl Ensure the type pid_t gets defined. 13 | AC_REQUIRE([AC_TYPE_PID_T]) 14 | 15 | dnl Ensure the type mode_t gets defined. 16 | AC_REQUIRE([AC_TYPE_MODE_T]) 17 | 18 | dnl Whether to override the 'off_t' type. 19 | AC_REQUIRE([gl_TYPE_OFF_T]) 20 | ]) 21 | 22 | AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS], 23 | [ 24 | ]) 25 | -------------------------------------------------------------------------------- /m4/wchar_t.m4: -------------------------------------------------------------------------------- 1 | # wchar_t.m4 serial 4 (gettext-0.18.2) 2 | dnl Copyright (C) 2002-2003, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | dnl From Bruno Haible. 8 | dnl Test whether has the 'wchar_t' type. 9 | dnl Prerequisite: AC_PROG_CC 10 | 11 | AC_DEFUN([gt_TYPE_WCHAR_T], 12 | [ 13 | AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], 14 | [AC_COMPILE_IFELSE( 15 | [AC_LANG_PROGRAM( 16 | [[#include 17 | wchar_t foo = (wchar_t)'\0';]], 18 | [[]])], 19 | [gt_cv_c_wchar_t=yes], 20 | [gt_cv_c_wchar_t=no])]) 21 | if test $gt_cv_c_wchar_t = yes; then 22 | AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) 23 | fi 24 | ]) 25 | -------------------------------------------------------------------------------- /m4/xsize.m4: -------------------------------------------------------------------------------- 1 | # xsize.m4 serial 5 2 | dnl Copyright (C) 2003-2004, 2008-2013 Free Software Foundation, Inc. 3 | dnl This file is free software; the Free Software Foundation 4 | dnl gives unlimited permission to copy and/or distribute it, 5 | dnl with or without modifications, as long as this notice is preserved. 6 | 7 | AC_DEFUN([gl_XSIZE], 8 | [ 9 | dnl Prerequisites of lib/xsize.h. 10 | AC_REQUIRE([gl_SIZE_MAX]) 11 | AC_CHECK_HEADERS([stdint.h]) 12 | ]) 13 | -------------------------------------------------------------------------------- /po/README: -------------------------------------------------------------------------------- 1 | 2 | If you checked out this source tree directly from GRUB Git, you might be 3 | wondering where are the POT and PO files. Here are some instructions 4 | that will hopefully clarify the situation. 5 | 6 | - If you're a user or a distributor, simply fill the po directory by 7 | importing translations from the Translation Project: 8 | 9 | ./linguas.sh 10 | 11 | GRUB's build system will automatically detect those and include them 12 | in your install. 13 | 14 | - If you're a translator and want to add a new translation or improve an 15 | existing one, get in touch with the Translation Project 16 | (http://translationproject.org/). The GRUB project doesn't interact 17 | with translators directly (but we dearly appreciate your work!). 18 | 19 | - If you're a developer adding/removing/modifying translatable strings, 20 | you can check that these turn into a sane POT file by using the 21 | `po/grub.pot' make rule. 22 | 23 | - If you're the maintainer of GNU GRUB preparing a new release, don't 24 | forget to include the latest PO files in your source tarball! 25 | -------------------------------------------------------------------------------- /po/Rules-swiss: -------------------------------------------------------------------------------- 1 | # Special Makefile rules for transforming German typography into Swiss one. 2 | 3 | DISTFILES.common.extra2 = swiss.sed Rules-swiss 4 | 5 | de_CH.po-create: de.po swiss.sed 6 | LC_ALL=C.UTF-8 $(MSGFILTER) -i $< -o $(srcdir)/de_CH.po sed -f $(srcdir)/swiss.sed 7 | 8 | -------------------------------------------------------------------------------- /po/Rules-windowsdir: -------------------------------------------------------------------------------- 1 | # generate windowsdir 2 | 3 | DISTFILES.common.extra5 = Rules-windowsdir 4 | 5 | windowsdir="$(top_builddir)/$(PACKAGE)-$(VERSION)-for-windows" 6 | windowsdir: $(GMOFILES) 7 | test -d "$(windowsdir)/locale" || mkdir "$(windowsdir)/locale" 8 | for x in $(CATALOGS); do \ 9 | test -d "$(windowsdir)/locale/$${x%.gmo}" || mkdir "$(windowsdir)/locale/$${x%.gmo}"; \ 10 | cp -fp "$(srcdir)/$$x" "$(windowsdir)/locale/$${x%.gmo}/grub.mo"; \ 11 | done 12 | -------------------------------------------------------------------------------- /po/boldquot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | s/“/“/g 8 | s/”/”/g 9 | s/‘/‘/g 10 | s/’/’/g 11 | -------------------------------------------------------------------------------- /po/en@piglatin.header: -------------------------------------------------------------------------------- 1 | # This catalog in addition to fixing quoting like en@quot translates the 2 | # messages into Pig Latin. Can be useful for testing that all strings are 3 | # marked even before any translation is available or without knowing any 4 | # specific language besides English. 5 | -------------------------------------------------------------------------------- /po/exclude.pot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/po/exclude.pot -------------------------------------------------------------------------------- /po/grub.d.sed: -------------------------------------------------------------------------------- 1 | /^#: util\/grub\.d\//a\ 2 | #, c-format 3 | -------------------------------------------------------------------------------- /po/insert-header.sin: -------------------------------------------------------------------------------- 1 | # Sed script that inserts the file called HEADER before the header entry. 2 | # 3 | # At each occurrence of a line starting with "msgid ", we execute the following 4 | # commands. At the first occurrence, insert the file. At the following 5 | # occurrences, do nothing. The distinction between the first and the following 6 | # occurrences is achieved by looking at the hold space. 7 | /^msgid /{ 8 | x 9 | # Test if the hold space is empty. 10 | s/m/m/ 11 | ta 12 | # Yes it was empty. First occurrence. Read the file. 13 | r HEADER 14 | # Output the file's contents by reading the next line. But don't lose the 15 | # current line while doing this. 16 | g 17 | N 18 | bb 19 | :a 20 | # The hold space was nonempty. Following occurrences. Do nothing. 21 | x 22 | :b 23 | } 24 | -------------------------------------------------------------------------------- /po/piglatin.sed: -------------------------------------------------------------------------------- 1 | /^Project-Id-Version:/ b 2 | /^Report-Msgid-Bugs-To:/ b 3 | /^POT-Creation-Date:/ b 4 | /^PO-Revision-Date:/ b 5 | /^Last-Translator:/ b 6 | /^Language-Team:/ b 7 | /^Language:/ b 8 | /^MIME-Version:/ b 9 | /^Content-Type:/ b 10 | /^Content-Transfer-Encoding:/ b 11 | /^Plural-Forms:/ b 12 | 13 | s/"\([^"]*\)"/“\1”/g 14 | s/`\([^`']*\)'/‘\1’/g 15 | s/ '\([^`']*\)' / ‘\1’ /g 16 | s/ '\([^`']*\)'$/ ‘\1’/g 17 | s/^'\([^`']*\)' /‘\1’ /g 18 | s/“”/""/g 19 | 20 | s,\(^\|[^a-zA-Z0-9%\\]\)\([aoeuiAOEUI]\)\([a-zA-Z]*\),\1\2\3way,g 21 | s,\(^\|[^a-zA-Z0-9%\\]\)\([bcdfghj-np-tvwxzBCDFGHJ-NP-TVWXZ][bcdfghj-np-tvwxzBCDFGHJ-NP-TVWXZ]*\)\([a-zA-Z]*\),\1\3\2ay,g 22 | -------------------------------------------------------------------------------- /po/quot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | -------------------------------------------------------------------------------- /po/remove-potcdate.sin: -------------------------------------------------------------------------------- 1 | # Sed script that remove the POT-Creation-Date line in the header entry 2 | # from a POT file. 3 | # 4 | # The distinction between the first and the following occurrences of the 5 | # pattern is achieved by looking at the hold space. 6 | /^"POT-Creation-Date: .*"$/{ 7 | x 8 | # Test if the hold space is empty. 9 | s/P/P/ 10 | ta 11 | # Yes it was empty. First occurrence. Remove the line. 12 | g 13 | d 14 | bb 15 | :a 16 | # The hold space was nonempty. Following occurrences. Do nothing. 17 | x 18 | :b 19 | } 20 | -------------------------------------------------------------------------------- /po/swiss.sed: -------------------------------------------------------------------------------- 1 | s,ß,ss,g 2 | y,»«,«», 3 | s,\bRechner\b,Computer,g 4 | s,\bStrg\b,Ctrl,g 5 | s,\bEinfg\b,Insert,g 6 | s,\bEntf\b,Del,g 7 | 8 | -------------------------------------------------------------------------------- /tests/btrfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.btrfs >/dev/null 2>&1; then 14 | echo "mkfs.btrfs not installed; cannot test btrfs." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" btrfs 19 | "@builddir@/grub-fs-tester" btrfs_zlib 20 | "@builddir@/grub-fs-tester" btrfs_lzo 21 | "@builddir@/grub-fs-tester" btrfs_raid0 22 | "@builddir@/grub-fs-tester" btrfs_raid1 23 | "@builddir@/grub-fs-tester" btrfs_single 24 | "@builddir@/grub-fs-tester" btrfs_raid10 25 | -------------------------------------------------------------------------------- /tests/cpio_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if ! which cpio >/dev/null 2>&1; then 6 | echo "cpio not installed; cannot test cpio." 7 | exit 77 8 | fi 9 | 10 | "@builddir@/grub-fs-tester" cpio_bin 11 | "@builddir@/grub-fs-tester" cpio_odc 12 | "@builddir@/grub-fs-tester" cpio_newc 13 | "@builddir@/grub-fs-tester" cpio_crc 14 | "@builddir@/grub-fs-tester" cpio_ustar 15 | "@builddir@/grub-fs-tester" cpio_hpbin 16 | "@builddir@/grub-fs-tester" cpio_hpodc 17 | -------------------------------------------------------------------------------- /tests/dfly-mbr-mbexample.dfly.img.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/dfly-mbr-mbexample.dfly.img.gz -------------------------------------------------------------------------------- /tests/dfly-mbr-mbexample.mbr.img.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/dfly-mbr-mbexample.mbr.img.gz -------------------------------------------------------------------------------- /tests/example_grub_script_test.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester --modules=echo 2 | 3 | echo "hello world" 4 | -------------------------------------------------------------------------------- /tests/example_scripted_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | true 5 | -------------------------------------------------------------------------------- /tests/exfat_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.exfat >/dev/null 2>&1; then 14 | echo "mkfs.exfat not installed; cannot test exFAT." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" exfat 19 | -------------------------------------------------------------------------------- /tests/ext234_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.ext2 >/dev/null 2>&1; then 14 | echo "mkfs.ext2 not installed; cannot test ext2." 15 | exit 77 16 | fi 17 | 18 | if ! which mkfs.ext3 >/dev/null 2>&1; then 19 | echo "mkfs.ext3 not installed; cannot test ext3." 20 | exit 77 21 | fi 22 | 23 | if ! which mkfs.ext4 >/dev/null 2>&1; then 24 | echo "mkfs.ext4 not installed; cannot test ext4." 25 | exit 77 26 | fi 27 | 28 | "@builddir@/grub-fs-tester" ext2_old 29 | "@builddir@/grub-fs-tester" ext2 30 | "@builddir@/grub-fs-tester" ext3 31 | "@builddir@/grub-fs-tester" ext4 32 | "@builddir@/grub-fs-tester" ext4_metabg 33 | -------------------------------------------------------------------------------- /tests/fat_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.vfat >/dev/null 2>&1; then 14 | echo "mkfs.vfat not installed; cannot test FAT." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" vfat16a 19 | "@builddir@/grub-fs-tester" vfat12a 20 | "@builddir@/grub-fs-tester" vfat12 21 | "@builddir@/grub-fs-tester" vfat16 22 | "@builddir@/grub-fs-tester" vfat32 23 | -------------------------------------------------------------------------------- /tests/file_filter/file: -------------------------------------------------------------------------------- 1 | Hello, user! 2 | -------------------------------------------------------------------------------- /tests/file_filter/file.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/file.gz -------------------------------------------------------------------------------- /tests/file_filter/file.gz.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/file.gz.sig -------------------------------------------------------------------------------- /tests/file_filter/file.lzop: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/file.lzop -------------------------------------------------------------------------------- /tests/file_filter/file.lzop.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/file.lzop.sig -------------------------------------------------------------------------------- /tests/file_filter/file.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/file.xz -------------------------------------------------------------------------------- /tests/file_filter/file.xz.sig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/file.xz.sig -------------------------------------------------------------------------------- /tests/file_filter/keys: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/keys -------------------------------------------------------------------------------- /tests/file_filter/keys.pub: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/file_filter/keys.pub -------------------------------------------------------------------------------- /tests/file_filter/test.cfg: -------------------------------------------------------------------------------- 1 | trust /keys.pub 2 | set check_signatures=enforce 3 | cat /file.gz 4 | cat /file.xz 5 | cat /file.lzop 6 | set check_signatures= 7 | -------------------------------------------------------------------------------- /tests/grub_cmd_date.in: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | set -e 3 | 4 | . "@builddir@/grub-core/modinfo.sh" 5 | 6 | # FIXME: OpenBIOS on sparc64 doesn't implement RTC 7 | if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = sparc64-ieee1275 ]; then 8 | exit 0 9 | fi 10 | 11 | pdt="$(date -u +%s)" 12 | dt=`echo date | @builddir@/grub-shell` 13 | dtg="$(date -u -d "$dt" +%s)" 14 | ndt="$(date -u +%s)" 15 | 16 | if [ $pdt -gt $dtg ] || [ $dtg -gt $ndt ]; then 17 | echo "Date not in range: $pdt <= $dtg <= $ndt" 18 | exit 1 19 | fi 20 | 21 | pdt="$(date -u +%s)" 22 | dt=`echo 'insmod datehook; echo $YEAR-$MONTH-$DAY $HOUR:$MINUTE:$SECOND' | @builddir@/grub-shell` 23 | dtg="$(date -u -d "$dt" +%s)" 24 | ndt="$(date -u +%s)" 25 | 26 | if [ $pdt -gt $dtg ] || [ $dtg -gt $ndt ]; then 27 | echo "Date not in range: $pdt <= $dtg <= $ndt" 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /tests/grub_cmd_echo.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | # 3 | # Copyright (C) 2010 Free Software Foundation, Inc. 4 | # 5 | # GRUB is free software: you can redistribute it and/or modify 6 | # it under the terms of the GNU General Public License as published by 7 | # the Free Software Foundation, either version 3 of the License, or 8 | # (at your option) any later version. 9 | # 10 | # GRUB is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with GRUB. If not, see . 17 | 18 | echo 19 | echo -n 20 | 21 | echo foo 22 | echo foo bar 23 | 24 | echo -n foo 25 | 26 | echo -e "foo\nbar" 27 | 28 | echo -n -e "foo\nbar" 29 | 30 | echo foo -n 31 | echo foo -n -e 32 | 33 | echo ------- 34 | 35 | if test -n "$grubshell"; then insmod regexp; fi 36 | 37 | echo '*' 38 | echo "*" 39 | 40 | foo="*" 41 | echo "$foo" 42 | -------------------------------------------------------------------------------- /tests/grub_cmd_set_date.in: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | set -e 3 | 4 | . "@builddir@/grub-core/modinfo.sh" 5 | 6 | case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in 7 | # FIXME: OpenBIOS on sparc64 doesn't implement RTC 8 | sparc64-ieee1275) 9 | exit 0;; 10 | # PLATFORM: ARC doesn't provide any way to set time 11 | *-arc) 12 | exit 0;; 13 | # PLATFORM: EMU doesn't provide any way to set time 14 | # Even if it did we'd need some kind of sandbox to avoid 15 | # modifying real system time. 16 | *-emu) 17 | exit 0;; 18 | esac 19 | 20 | out=$(cat <. 17 | 18 | echo a###b 19 | echo a# #b 20 | 21 | echo # 22 | echo \# 23 | 24 | echo '#' 25 | echo "#" 26 | 27 | echo '\#' 28 | echo "\#" 29 | -------------------------------------------------------------------------------- /tests/grub_script_dollar.in: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -e 3 | 4 | @builddir@/grub-script-check << EOF 5 | echo "\\\$" 6 | EOF 7 | -------------------------------------------------------------------------------- /tests/grub_script_echo_keywords.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | echo if then else fi for do done 4 | -------------------------------------------------------------------------------- /tests/grub_script_escape_comma.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | x=1\\,1 4 | echo $x 5 | y='$' 6 | echo $y 7 | z='\' 8 | echo $z 9 | t='\*' 10 | echo $t 11 | u='$' 12 | echo $u 13 | v='\?' 14 | echo $v 15 | 16 | 17 | echo \\ 18 | 19 | -------------------------------------------------------------------------------- /tests/grub_script_eval.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | eval echo "Hello world" 4 | valname=tst 5 | eval $valname=hi 6 | echo $tst -------------------------------------------------------------------------------- /tests/grub_script_final_semicolon.in: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -e 3 | 4 | @builddir@/grub-script-check <. 17 | 18 | LC_ALL=C 19 | export LC_ALL 20 | 21 | if [ "z" "<" "â" ]; then echo unsigned; else echo signed; fi 22 | if [ "z" ">" "â" ]; then echo signed; else echo unsigned; fi 23 | -------------------------------------------------------------------------------- /tests/grub_script_test.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | for device in 'hd0' 'fd0'; do 4 | # But search them if their search has been inforced 5 | set fd0search="no" 6 | if [ "$device" != "fd0" -a "$device" != "cd" \ 7 | -o \ 8 | "$device" = "fd0" -a "$fd0search" = "yes" ]\ 9 | ; then 10 | echo "Yes" 11 | else 12 | echo "No" 13 | fi 14 | 15 | done -------------------------------------------------------------------------------- /tests/grub_script_vars1.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | # Run GRUB script in a Qemu instance 4 | # Copyright (C) 2010 Free Software Foundation, Inc. 5 | # 6 | # GRUB is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, either version 3 of the License, or 9 | # (at your option) any later version. 10 | # 11 | # GRUB is distributed in the hope that it will be useful, 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | # GNU General Public License for more details. 15 | # 16 | # You should have received a copy of the GNU General Public License 17 | # along with GRUB. If not, see . 18 | 19 | var=foo 20 | echo $var 21 | echo "$var" 22 | echo ${var} 23 | echo "${var}" 24 | 25 | echo $1 $2 $? 26 | 27 | foo=foo 28 | echo "" $foo 29 | 30 | echo $bar $foo 31 | 32 | bar="" 33 | echo $bar $foo 34 | 35 | -------------------------------------------------------------------------------- /tests/grub_script_while1.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | echo one 4 | foo="" 5 | while test "$foo" != "1111"; do foo="${foo}1"; echo "$foo"; done 6 | 7 | echo two 8 | foo="" 9 | while test "$foo" != "aaaa" 10 | do 11 | foo="${foo}a" 12 | echo $foo 13 | done 14 | 15 | foo="" 16 | until test "$foo" = "1111"; do foo="${foo}1"; echo $foo; done 17 | foo="" 18 | until test "$foo" = "aaaa" 19 | do 20 | foo="${foo}a" 21 | echo $foo 22 | done 23 | 24 | # check "$?" in condition gets its value from while body commands 25 | foo="" 26 | false 27 | while test "$?" != "0" 28 | do 29 | echo $foo 30 | foo="${foo}1" 31 | test "$foo" = "111111" 32 | done 33 | -------------------------------------------------------------------------------- /tests/gzcompress_test.in: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Copyright (C) 2013 Free Software Foundation, Inc. 3 | # 4 | # GRUB is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # GRUB is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with GRUB. If not, see . 16 | 17 | set -e 18 | grubshell=@builddir@/grub-shell 19 | 20 | . "@builddir@/grub-core/modinfo.sh" 21 | 22 | if ! which gzip >/dev/null 2>&1; then 23 | echo "gzip not installed; cannot test gzip compression." 24 | exit 77 25 | fi 26 | 27 | if [ "$(echo hello | "${grubshell}" --mkrescue-arg=--compress=gz)" != "Hello World" ]; then 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /tests/help_test.in: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | set -e 3 | 4 | . "@builddir@/grub-core/modinfo.sh" 5 | 6 | template="Usage: help [PATTERN ...] 7 | Show a help message. 8 | 9 | -h, --help Display this help and exit. 10 | -u, --usage Display the usage of this command and exit. 11 | Hello World" 12 | outpu="$(echo 'help help; hello' | @builddir@/grub-shell)" 13 | 14 | if [ "$template" != "$outpu" ]; then 15 | exit 1 16 | fi 17 | -------------------------------------------------------------------------------- /tests/hfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.hfs >/dev/null 2>&1; then 14 | echo "mkfs.hfs not installed; cannot test HFS." 15 | exit 77 16 | fi 17 | 18 | if ! modprobe mac-roman; then 19 | echo "no mac-roman support; cannot test HFS." 20 | exit 77 21 | fi 22 | 23 | "@builddir@/grub-fs-tester" hfs 24 | -------------------------------------------------------------------------------- /tests/hfsplus_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.hfsplus >/dev/null 2>&1; then 14 | echo "mkfs.hfsplus not installed; cannot test hfsplus." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" hfsplus 19 | "@builddir@/grub-fs-tester" hfsplus_casesens 20 | "@builddir@/grub-fs-tester" hfsplus_wrap 21 | -------------------------------------------------------------------------------- /tests/iso9660_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if ! which xorriso >/dev/null 2>&1; then 6 | echo "xorriso not installed; cannot test iso9660." 7 | exit 77 8 | fi 9 | 10 | "@builddir@/grub-fs-tester" joliet 11 | "@builddir@/grub-fs-tester" rockridge 12 | "@builddir@/grub-fs-tester" rockridge_joliet 13 | "@builddir@/grub-fs-tester" joliet_1999 14 | "@builddir@/grub-fs-tester" rockridge_1999 15 | "@builddir@/grub-fs-tester" rockridge_joliet_1999 -------------------------------------------------------------------------------- /tests/jfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.jfs >/dev/null 2>&1; then 14 | echo "mkfs.jfs not installed; cannot test JFS." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" jfs 19 | -------------------------------------------------------------------------------- /tests/lzocompress_test.in: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Copyright (C) 2013 Free Software Foundation, Inc. 3 | # 4 | # GRUB is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # GRUB is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with GRUB. If not, see . 16 | 17 | set -e 18 | grubshell=@builddir@/grub-shell 19 | 20 | . "@builddir@/grub-core/modinfo.sh" 21 | 22 | if ! which lzop >/dev/null 2>&1; then 23 | echo "lzop not installed; cannot test lzo compression." 24 | exit 77 25 | fi 26 | 27 | if [ "$(echo hello | "${grubshell}" --mkrescue-arg=--compress=lzo)" != "Hello World" ]; then 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /tests/minixfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.minix >/dev/null 2>&1; then 14 | echo "mkfs.minix not installed; cannot test minixfs." 15 | exit 77 16 | fi 17 | 18 | if ! mkfs.minix -h | grep -- -v > /dev/null; then 19 | echo "mkfs.minix doesn't support minix3fs; cannot test minix*fs." 20 | exit 77 21 | fi 22 | 23 | "@builddir@/grub-fs-tester" minix 24 | "@builddir@/grub-fs-tester" minix2 25 | "@builddir@/grub-fs-tester" minix3 26 | -------------------------------------------------------------------------------- /tests/nilfs2_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.nilfs2 >/dev/null 2>&1; then 14 | echo "mkfs.nilfs2 not installed; cannot test nilfs2." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" nilfs2 19 | -------------------------------------------------------------------------------- /tests/ntfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.ntfs >/dev/null 2>&1; then 14 | echo "mkfs.ntfs not installed; cannot test ntfs." 15 | exit 77 16 | fi 17 | 18 | if ! which setfattr >/dev/null 2>&1; then 19 | echo "setfattr not installed; cannot test ntfs." 20 | exit 77 21 | fi 22 | 23 | "@builddir@/grub-fs-tester" ntfs 24 | "@builddir@/grub-fs-tester" ntfscomp 25 | -------------------------------------------------------------------------------- /tests/reiserfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.reiserfs >/dev/null 2>&1; then 14 | echo "mkfs.reiserfs not installed; cannot test reiserfs." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" reiserfs 19 | "@builddir@/grub-fs-tester" reiserfs_old 20 | 21 | -------------------------------------------------------------------------------- /tests/romfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if ! which genromfs >/dev/null 2>&1; then 6 | echo "genromfs not installed; cannot test romfs." 7 | exit 77 8 | fi 9 | 10 | "@builddir@/grub-fs-tester" romfs 11 | -------------------------------------------------------------------------------- /tests/squashfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if ! which mksquashfs >/dev/null 2>&1; then 6 | echo "mksquashfs not installed; cannot test squashfs." 7 | exit 77 8 | fi 9 | 10 | "@builddir@/grub-fs-tester" squash4_gzip 11 | "@builddir@/grub-fs-tester" squash4_xz 12 | "@builddir@/grub-fs-tester" squash4_lzo 13 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/adtxt.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/tests/syslinux/ubuntu10.04/isolinux/adtxt.cfg -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/exithelp.cfg: -------------------------------------------------------------------------------- 1 | label menu 2 | kernel vesamenu.c32 3 | config isolinux.cfg 4 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/gfxboot.cfg: -------------------------------------------------------------------------------- 1 | foreground=0xFFFFFF 2 | background=0x958490 3 | screen-colour=0x270A1E 4 | hidden-timeout=2 5 | label normal=Normal 6 | append normal= 7 | label driverupdates=Use driver update disc 8 | append driverupdates=debian-installer/driver-update=true 9 | applies driverupdates=live live-install 10 | label oem=OEM install (for manufacturers) 11 | append oem=oem-config/enable=true 12 | applies oem=live live-install install 13 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/isolinux.cfg: -------------------------------------------------------------------------------- 1 | # D-I config version 2.0 2 | include menu.cfg 3 | default vesamenu.c32 4 | prompt 0 5 | timeout 50 6 | ui gfxboot bootlogo 7 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/menu.cfg: -------------------------------------------------------------------------------- 1 | menu hshift 13 2 | menu width 49 3 | menu margin 8 4 | 5 | menu title Installer boot menu 6 | include stdmenu.cfg 7 | include txt.cfg 8 | include gtk.cfg 9 | menu begin advanced 10 | menu title Advanced options 11 | include stdmenu.cfg 12 | label mainmenu 13 | menu label ^Back.. 14 | menu exit 15 | include adtxt.cfg 16 | include adgtk.cfg 17 | menu end 18 | label help 19 | menu label ^Help 20 | text help 21 | Display help screens; type 'menu' at boot prompt to return to this menu 22 | endtext 23 | config prompt.cfg 24 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/po4a.cfg: -------------------------------------------------------------------------------- 1 | [po4a_langs] ar bn ca cs da de es eu fi fr gl hu id it ja ka ko ku lv nb nl pl pt pt_BR ru sk sv ta tr vi zh_CN zh_TW 2 | [po4a_paths] po/help.pot $lang:po/$lang.po 3 | [type:docbook] help.xml 4 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/prompt.cfg: -------------------------------------------------------------------------------- 1 | prompt 1 2 | display f1.txt 3 | timeout 50 4 | include menu.cfg 5 | include exithelp.cfg 6 | 7 | f1 f1.txt 8 | f2 f2.txt 9 | f3 f3.txt 10 | f4 f4.txt 11 | f5 f5.txt 12 | f6 f6.txt 13 | f7 f7.txt 14 | f8 f8.txt 15 | f9 f9.txt 16 | f0 f10.txt 17 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/rqtxt.cfg: -------------------------------------------------------------------------------- 1 | label rescue 2 | menu label ^Rescue mode 3 | kernel /install/vmlinuz 4 | append vga=788 initrd=/install/initrd.gz rescue/enable=true -- quiet 5 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/stdmenu.cfg: -------------------------------------------------------------------------------- 1 | menu background splash.png 2 | menu color title * #FFFFFFFF * 3 | menu color border * #00000000 #00000000 none 4 | menu color sel * #ffffffff #76a1d0ff * 5 | menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * 6 | menu color tabmsg * #ffffffff #00000000 * 7 | menu color help 37;40 #ffdddd00 #00000000 none 8 | menu vshift 12 9 | menu rows 10 10 | menu helpmsgrow 15 11 | # The command line must be at least one line from the bottom. 12 | menu cmdlinerow 16 13 | menu timeoutrow 16 14 | menu tabmsgrow 18 15 | menu tabmsg Press ENTER to boot or TAB to edit a menu entry 16 | -------------------------------------------------------------------------------- /tests/syslinux/ubuntu10.04/isolinux/txt.cfg: -------------------------------------------------------------------------------- 1 | default live 2 | label live 3 | menu label ^Try Ubuntu without installing 4 | kernel /casper/vmlinuz 5 | append file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash -- 6 | label live-install 7 | menu label ^Install Ubuntu 8 | kernel /casper/vmlinuz 9 | append file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity initrd=/casper/initrd.lz quiet splash -- 10 | label check 11 | menu label ^Check disc for defects 12 | kernel /casper/vmlinuz 13 | append boot=casper integrity-check initrd=/casper/initrd.lz quiet splash -- 14 | label memtest 15 | menu label Test ^memory 16 | kernel /install/mt86plus 17 | label hd 18 | menu label ^Boot from first hard disk 19 | localboot 0x80 20 | -------------------------------------------------------------------------------- /tests/syslinux_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | outfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 6 | 7 | "@builddir@/grub-syslinux2cfg" -r "@abs_top_srcdir@/tests/syslinux/ubuntu10.04" "@abs_top_srcdir@/tests/syslinux/ubuntu10.04/isolinux/isolinux.cfg" -o "$outfile" 8 | 9 | echo "$outfile" 10 | 11 | if ! diff -u "$outfile" "@builddir@/tests/syslinux/ubuntu10.04_grub.cfg"; then 12 | echo "Mismatch in ubuntu10.04" 13 | exit 1; 14 | fi 15 | 16 | exit 0 17 | -------------------------------------------------------------------------------- /tests/tar_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if ! which tar >/dev/null 2>&1; then 6 | echo "tar not installed; cannot test tar." 7 | exit 77 8 | fi 9 | 10 | "@builddir@/grub-fs-tester" tarfs 11 | -------------------------------------------------------------------------------- /tests/test_sha512sum.in: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | # create a randome file 4 | file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 5 | cat >$file <$outfile1 <$outfile2 25 | 26 | SHA1=`cat $outfile1 | tr -d '\n' | cut -f1 -d\ ` 27 | SHA2=`cat $outfile2 | cut -f1 -d\ ` 28 | 29 | if test "$SHA1" = "$SHA2"; then 30 | rm -f ${outfile1} ${outfile2} 31 | exit 0 32 | else 33 | echo "GRUB sha512sum output did not match sha512sum output." 34 | echo "See diff -u ${outfile1} ${outfile2}" 35 | exit 1 36 | fi 37 | -------------------------------------------------------------------------------- /tests/test_unset.in: -------------------------------------------------------------------------------- 1 | #! @builddir@/grub-shell-tester 2 | 3 | foo=one 4 | echo $foo 5 | 6 | unset foo 7 | echo $foo 8 | echo ${foo} 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/udf_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkudffs >/dev/null 2>&1; then 14 | echo "mkudffs not installed; cannot test UDF." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" udf 19 | 20 | -------------------------------------------------------------------------------- /tests/xfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which mkfs.xfs >/dev/null 2>&1; then 14 | echo "mkfs.xfs not installed; cannot test xfs." 15 | exit 77 16 | fi 17 | 18 | 19 | "@builddir@/grub-fs-tester" xfs_crc 20 | "@builddir@/grub-fs-tester" xfs 21 | -------------------------------------------------------------------------------- /tests/xzcompress_test.in: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # Copyright (C) 2013 Free Software Foundation, Inc. 3 | # 4 | # GRUB is free software: you can redistribute it and/or modify 5 | # it under the terms of the GNU General Public License as published by 6 | # the Free Software Foundation, either version 3 of the License, or 7 | # (at your option) any later version. 8 | # 9 | # GRUB is distributed in the hope that it will be useful, 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | # GNU General Public License for more details. 13 | # 14 | # You should have received a copy of the GNU General Public License 15 | # along with GRUB. If not, see . 16 | 17 | set -e 18 | grubshell=@builddir@/grub-shell 19 | 20 | . "@builddir@/grub-core/modinfo.sh" 21 | 22 | if ! which xz >/dev/null 2>&1; then 23 | echo "xz not installed; cannot test xz compression." 24 | exit 77 25 | fi 26 | 27 | if [ "$(echo hello | "${grubshell}" --mkrescue-arg=--compress=xz)" != "Hello World" ]; then 28 | exit 1 29 | fi 30 | -------------------------------------------------------------------------------- /tests/zfs_test.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | if [ "x$EUID" = "x" ] ; then 6 | EUID=`id -u` 7 | fi 8 | 9 | if [ "$EUID" != 0 ] ; then 10 | exit 77 11 | fi 12 | 13 | if ! which zpool >/dev/null 2>&1; then 14 | echo "zpool not installed; cannot test zfs." 15 | exit 77 16 | fi 17 | 18 | "@builddir@/grub-fs-tester" zfs 19 | "@builddir@/grub-fs-tester" zfs_lzjb 20 | "@builddir@/grub-fs-tester" zfs_gzip 21 | "@builddir@/grub-fs-tester" zfs_zle 22 | "@builddir@/grub-fs-tester" zfs_raidz3 23 | "@builddir@/grub-fs-tester" zfs_raidz2 24 | "@builddir@/grub-fs-tester" zfs_raidz 25 | "@builddir@/grub-fs-tester" zfs_mirror 26 | "@builddir@/grub-fs-tester" zfs_stripe 27 | "@builddir@/grub-fs-tester" zfs_caseins 28 | -------------------------------------------------------------------------------- /themes/starfield/blob_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/blob_w.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_c.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_e.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_n.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_ne.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_nw.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_s.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_se.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_sw.png -------------------------------------------------------------------------------- /themes/starfield/boot_menu_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/boot_menu_w.png -------------------------------------------------------------------------------- /themes/starfield/slider_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/slider_c.png -------------------------------------------------------------------------------- /themes/starfield/slider_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/slider_n.png -------------------------------------------------------------------------------- /themes/starfield/slider_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/slider_s.png -------------------------------------------------------------------------------- /themes/starfield/src/blob_nw.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/blob_nw.xcf -------------------------------------------------------------------------------- /themes/starfield/src/bootmenu/center.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/bootmenu/center.xcf -------------------------------------------------------------------------------- /themes/starfield/src/bootmenu/corner.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/bootmenu/corner.xcf -------------------------------------------------------------------------------- /themes/starfield/src/bootmenu/side.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/bootmenu/side.xcf -------------------------------------------------------------------------------- /themes/starfield/src/slider_c.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/slider_c.xcf -------------------------------------------------------------------------------- /themes/starfield/src/slider_n.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/slider_n.xcf -------------------------------------------------------------------------------- /themes/starfield/src/slider_s.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/slider_s.xcf -------------------------------------------------------------------------------- /themes/starfield/src/terminalbox/center.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/terminalbox/center.xcf -------------------------------------------------------------------------------- /themes/starfield/src/terminalbox/corner.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/terminalbox/corner.xcf -------------------------------------------------------------------------------- /themes/starfield/src/terminalbox/side.xcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/src/terminalbox/side.xcf -------------------------------------------------------------------------------- /themes/starfield/starfield.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/starfield.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_c.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_e.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_n.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_ne.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_nw.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_s.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_se.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_sw.png -------------------------------------------------------------------------------- /themes/starfield/terminal_box_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjg59/grub/c9016d2ae0abc5edcb4dcf4b1ce04f138f6e5a67/themes/starfield/terminal_box_w.png -------------------------------------------------------------------------------- /util/bash-completion.d/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | bash_completion_source = grub-completion.bash.in 3 | bash_completion_script = grub 4 | 5 | EXTRA_DIST = $(bash_completion_source) 6 | 7 | CLEANFILES = $(bash_completion_script) config.log 8 | 9 | bashcompletiondir = $(sysconfdir)/bash_completion.d 10 | bashcompletion_DATA = $(bash_completion_script) 11 | 12 | $(bash_completion_script): $(bash_completion_source) $(top_builddir)/config.status 13 | $(top_builddir)/config.status --file=$@:$< 14 | -------------------------------------------------------------------------------- /util/grub.d/40_custom.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec tail -n +3 $0 3 | # This file provides an easy way to add custom menu entries. Simply type the 4 | # menu entries you want to add after this comment. Be careful not to change 5 | # the 'exec tail' line above. 6 | -------------------------------------------------------------------------------- /util/grub.d/41_custom.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cat <. 17 | 18 | if [ "x$1" = "x" ]; then 19 | echo "Filename required". 20 | fi 21 | 22 | ioreg -lw0 -p IODeviceTree -n efi -r -x |grep device-properties | sed 's/.*.*//;' | xxd -r -p > $1 23 | -------------------------------------------------------------------------------- /util/import_gcrypth.sed: -------------------------------------------------------------------------------- 1 | /^#@INSERT_SYS_SELECT_H@/ d 2 | /^@FALLBACK_SOCKLEN_T@/ d 3 | /^# *include / d 4 | /^# *include / d 5 | /^# *include / d 6 | /^# *include / d 7 | /^# *include / d 8 | /^# *include / d 9 | /^# *include / d 10 | /^ typedef long ssize_t;/ d 11 | /^ typedef int pid_t;/ d 12 | /^# *include / s,#include ,#include , 13 | /^typedef gpg_error_t gcry_error_t;/ d 14 | /^typedef gpg_err_code_t gcry_err_code_t;/ d 15 | /^typedef struct gcry_mpi \*gcry_mpi_t;/ d 16 | /^struct gcry_thread_cbs/ d 17 | s,_gcry_mpi_invm,gcry_mpi_invm,g 18 | p -------------------------------------------------------------------------------- /util/setup_bios.c: -------------------------------------------------------------------------------- 1 | #define GRUB_SETUP_BIOS 1 2 | #include "setup.c" 3 | -------------------------------------------------------------------------------- /util/setup_sparc.c: -------------------------------------------------------------------------------- 1 | #define GRUB_SETUP_SPARC64 1 2 | #include "setup.c" 3 | --------------------------------------------------------------------------------