Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
emulab-grub2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emulab
emulab-grub2
Commits
48c09f48
Commit
48c09f48
authored
Mar 16, 2018
by
Mike Hibler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'grub2-source'
parents
d4c64df2
e2faabac
Changes
274
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
274 changed files
with
7391 additions
and
2339 deletions
+7391
-2339
.gitignore
.gitignore
+1
-0
INSTALL
INSTALL
+3
-4
Makefile.am
Makefile.am
+39
-26
NEWS
NEWS
+3
-0
acinclude.m4
acinclude.m4
+52
-0
conf/Makefile.common
conf/Makefile.common
+3
-1
configure.ac
configure.ac
+66
-18
docs/grub.texi
docs/grub.texi
+64
-43
gentpl.py
gentpl.py
+6
-4
grub-core/Makefile.am
grub-core/Makefile.am
+26
-2
grub-core/Makefile.core.def
grub-core/Makefile.core.def
+47
-19
grub-core/boot/sparc64/ieee1275/boot.S
grub-core/boot/sparc64/ieee1275/boot.S
+10
-0
grub-core/bus/fdt.c
grub-core/bus/fdt.c
+256
-0
grub-core/bus/spi/rk3288_spi.c
grub-core/bus/spi/rk3288_spi.c
+103
-0
grub-core/bus/usb/ehci-fdt.c
grub-core/bus/usb/ehci-fdt.c
+45
-0
grub-core/bus/usb/ehci-pci.c
grub-core/bus/usb/ehci-pci.c
+208
-0
grub-core/bus/usb/ehci.c
grub-core/bus/usb/ehci.c
+16
-189
grub-core/bus/usb/usbtrans.c
grub-core/bus/usb/usbtrans.c
+1
-1
grub-core/commands/acpi.c
grub-core/commands/acpi.c
+4
-4
grub-core/commands/efi/lsefi.c
grub-core/commands/efi/lsefi.c
+3
-1
grub-core/commands/file.c
grub-core/commands/file.c
+3
-3
grub-core/commands/hdparm.c
grub-core/commands/hdparm.c
+1
-0
grub-core/commands/i386/coreboot/cb_timestamps.c
grub-core/commands/i386/coreboot/cb_timestamps.c
+1
-1
grub-core/commands/i386/coreboot/cbls.c
grub-core/commands/i386/coreboot/cbls.c
+1
-1
grub-core/commands/keylayouts.c
grub-core/commands/keylayouts.c
+3
-3
grub-core/commands/legacycfg.c
grub-core/commands/legacycfg.c
+1
-1
grub-core/commands/ls.c
grub-core/commands/ls.c
+9
-0
grub-core/commands/menuentry.c
grub-core/commands/menuentry.c
+2
-2
grub-core/commands/nativedisk.c
grub-core/commands/nativedisk.c
+1
-0
grub-core/disk/ahci.c
grub-core/disk/ahci.c
+20
-2
grub-core/disk/cryptodisk.c
grub-core/disk/cryptodisk.c
+1
-0
grub-core/disk/efi/efidisk.c
grub-core/disk/efi/efidisk.c
+10
-1
grub-core/efiemu/i386/loadcore64.c
grub-core/efiemu/i386/loadcore64.c
+1
-0
grub-core/efiemu/mm.c
grub-core/efiemu/mm.c
+1
-0
grub-core/fs/btrfs.c
grub-core/fs/btrfs.c
+1
-1
grub-core/fs/ext2.c
grub-core/fs/ext2.c
+22
-1
grub-core/fs/fat.c
grub-core/fs/fat.c
+5
-1
grub-core/fs/squash4.c
grub-core/fs/squash4.c
+37
-20
grub-core/fs/udf.c
grub-core/fs/udf.c
+140
-2
grub-core/fs/xfs.c
grub-core/fs/xfs.c
+3
-0
grub-core/fs/zfs/zfs_lz4.c
grub-core/fs/zfs/zfs_lz4.c
+5
-6
grub-core/gdb/cstub.c
grub-core/gdb/cstub.c
+1
-0
grub-core/genmod.sh.in
grub-core/genmod.sh.in
+6
-2
grub-core/genmoddep.awk
grub-core/genmoddep.awk
+4
-0
grub-core/gensyminfo.sh.in
grub-core/gensyminfo.sh.in
+1
-1
grub-core/gnulib-fix-gcc7-fallthrough.diff
grub-core/gnulib-fix-gcc7-fallthrough.diff
+14
-0
grub-core/gnulib/regexec.c
grub-core/gnulib/regexec.c
+3
-0
grub-core/io/gzio.c
grub-core/io/gzio.c
+61
-25
grub-core/kern/arm/cache.c
grub-core/kern/arm/cache.c
+34
-0
grub-core/kern/arm/cache_armv7.S
grub-core/kern/arm/cache_armv7.S
+12
-0
grub-core/kern/arm/coreboot/cbtable.c
grub-core/kern/arm/coreboot/cbtable.c
+40
-0
grub-core/kern/arm/coreboot/coreboot.S
grub-core/kern/arm/coreboot/coreboot.S
+44
-0
grub-core/kern/arm/coreboot/dma.c
grub-core/kern/arm/coreboot/dma.c
+59
-0
grub-core/kern/arm/coreboot/init.c
grub-core/kern/arm/coreboot/init.c
+151
-0
grub-core/kern/arm/coreboot/timer.c
grub-core/kern/arm/coreboot/timer.c
+101
-0
grub-core/kern/arm/dl.c
grub-core/kern/arm/dl.c
+7
-2
grub-core/kern/arm/efi/misc.c
grub-core/kern/arm/efi/misc.c
+2
-2
grub-core/kern/arm/startup.S
grub-core/kern/arm/startup.S
+12
-56
grub-core/kern/arm/uboot/init.c
grub-core/kern/arm/uboot/init.c
+70
-0
grub-core/kern/arm/uboot/uboot.S
grub-core/kern/arm/uboot/uboot.S
+73
-0
grub-core/kern/arm64/dl.c
grub-core/kern/arm64/dl.c
+53
-43
grub-core/kern/arm64/dl_helper.c
grub-core/kern/arm64/dl_helper.c
+39
-0
grub-core/kern/coreboot/cbtable.c
grub-core/kern/coreboot/cbtable.c
+72
-0
grub-core/kern/coreboot/mmap.c
grub-core/kern/coreboot/mmap.c
+4
-2
grub-core/kern/efi/efi.c
grub-core/kern/efi/efi.c
+12
-0
grub-core/kern/efi/fdt.c
grub-core/kern/efi/fdt.c
+43
-0
grub-core/kern/efi/init.c
grub-core/kern/efi/init.c
+6
-2
grub-core/kern/efi/mm.c
grub-core/kern/efi/mm.c
+110
-26
grub-core/kern/emu/main.c
grub-core/kern/emu/main.c
+1
-0
grub-core/kern/i386/coreboot/cbtable.c
grub-core/kern/i386/coreboot/cbtable.c
+7
-46
grub-core/kern/i386/tsc.c
grub-core/kern/i386/tsc.c
+1
-1
grub-core/kern/ia64/dl.c
grub-core/kern/ia64/dl.c
+4
-0
grub-core/kern/ia64/dl_helper.c
grub-core/kern/ia64/dl_helper.c
+37
-3
grub-core/kern/ieee1275/ieee1275.c
grub-core/kern/ieee1275/ieee1275.c
+200
-0
grub-core/kern/ieee1275/init.c
grub-core/kern/ieee1275/init.c
+2
-18
grub-core/kern/ieee1275/openfw.c
grub-core/kern/ieee1275/openfw.c
+27
-0
grub-core/kern/mips/dl.c
grub-core/kern/mips/dl.c
+1
-0
grub-core/kern/misc.c
grub-core/kern/misc.c
+7
-6
grub-core/kern/sparc64/dl.c
grub-core/kern/sparc64/dl.c
+1
-0
grub-core/kern/sparc64/ieee1275/ieee1275.c
grub-core/kern/sparc64/ieee1275/ieee1275.c
+56
-0
grub-core/kern/uboot/init.c
grub-core/kern/uboot/init.c
+0
-16
grub-core/kern/uboot/uboot.c
grub-core/kern/uboot/uboot.c
+0
-35
grub-core/kern/x86_64/dl.c
grub-core/kern/x86_64/dl.c
+1
-0
grub-core/lib/crypto.c
grub-core/lib/crypto.c
+2
-2
grub-core/lib/dummy/datetime.c
grub-core/lib/dummy/datetime.c
+2
-3
grub-core/lib/dummy/halt.c
grub-core/lib/dummy/halt.c
+0
-0
grub-core/lib/dummy/reboot.c
grub-core/lib/dummy/reboot.c
+6
-7
grub-core/lib/fdt.c
grub-core/lib/fdt.c
+107
-36
grub-core/lib/i386/relocator64.S
grub-core/lib/i386/relocator64.S
+13
-3
grub-core/lib/i386/xen/relocator.S
grub-core/lib/i386/xen/relocator.S
+1
-1
grub-core/lib/libgcrypt/cipher/bufhelp.h
grub-core/lib/libgcrypt/cipher/bufhelp.h
+432
-0
grub-core/lib/libgcrypt/cipher/crc.c
grub-core/lib/libgcrypt/cipher/crc.c
+657
-160
grub-core/lib/xzembed/xz_dec_lzma2.c
grub-core/lib/xzembed/xz_dec_lzma2.c
+4
-0
grub-core/lib/xzembed/xz_dec_stream.c
grub-core/lib/xzembed/xz_dec_stream.c
+6
-0
grub-core/loader/arm/linux.c
grub-core/loader/arm/linux.c
+72
-68
grub-core/loader/arm64/linux.c
grub-core/loader/arm64/linux.c
+15
-18
grub-core/loader/arm64/xen_boot.c
grub-core/loader/arm64/xen_boot.c
+35
-8
grub-core/loader/efi/chainloader.c
grub-core/loader/efi/chainloader.c
+5
-1
grub-core/loader/efi/fdt.c
grub-core/loader/efi/fdt.c
+8
-29
grub-core/loader/i386/coreboot/chainloader.c
grub-core/loader/i386/coreboot/chainloader.c
+1
-0
grub-core/loader/i386/linux.c
grub-core/loader/i386/linux.c
+9
-6
grub-core/loader/i386/multiboot_mbi.c
grub-core/loader/i386/multiboot_mbi.c
+2
-2
grub-core/loader/i386/pc/chainloader.c
grub-core/loader/i386/pc/chainloader.c
+19
-3
grub-core/loader/i386/pc/linux.c
grub-core/loader/i386/pc/linux.c
+6
-6
grub-core/loader/i386/xen.c
grub-core/loader/i386/xen.c
+1
-3
grub-core/loader/i386/xen_file.c
grub-core/loader/i386/xen_file.c
+28
-8
grub-core/loader/ia64/efi/linux.c
grub-core/loader/ia64/efi/linux.c
+5
-5
grub-core/loader/multiboot.c
grub-core/loader/multiboot.c
+44
-29
grub-core/loader/multiboot_elfxx.c
grub-core/loader/multiboot_elfxx.c
+7
-7
grub-core/loader/multiboot_mbi2.c
grub-core/loader/multiboot_mbi2.c
+34
-34
grub-core/modinfo.sh.in
grub-core/modinfo.sh.in
+1
-1
grub-core/net/arp.c
grub-core/net/arp.c
+10
-2
grub-core/net/bootp.c
grub-core/net/bootp.c
+14
-10
grub-core/net/drivers/ieee1275/ofnet.c
grub-core/net/drivers/ieee1275/ofnet.c
+126
-42
grub-core/net/ethernet.c
grub-core/net/ethernet.c
+42
-5
grub-core/net/ip.c
grub-core/net/ip.c
+24
-9
grub-core/normal/auth.c
grub-core/normal/auth.c
+3
-3
grub-core/normal/charset.c
grub-core/normal/charset.c
+15
-1
grub-core/normal/cmdline.c
grub-core/normal/cmdline.c
+2
-2
grub-core/normal/crypto.c
grub-core/normal/crypto.c
+1
-1
grub-core/normal/menu.c
grub-core/normal/menu.c
+1
-1
grub-core/normal/menu_entry.c
grub-core/normal/menu_entry.c
+1
-1
grub-core/osdep/devmapper/getroot.c
grub-core/osdep/devmapper/getroot.c
+1
-1
grub-core/osdep/linux/getroot.c
grub-core/osdep/linux/getroot.c
+34
-11
grub-core/osdep/linux/ofpath.c
grub-core/osdep/linux/ofpath.c
+201
-3
grub-core/osdep/unix/exec.c
grub-core/osdep/unix/exec.c
+4
-4
grub-core/osdep/unix/hostdisk.c
grub-core/osdep/unix/hostdisk.c
+8
-0
grub-core/osdep/unix/platform.c
grub-core/osdep/unix/platform.c
+15
-9
grub-core/script/lexer.c
grub-core/script/lexer.c
+0
-1
grub-core/script/yylex.l
grub-core/script/yylex.l
+1
-1
grub-core/term/arm/cros.c
grub-core/term/arm/cros.c
+125
-0
grub-core/term/arm/cros_ec.c
grub-core/term/arm/cros_ec.c
+238
-0
grub-core/term/arm/pl050.c
grub-core/term/arm/pl050.c
+189
-0
grub-core/term/at_keyboard.c
grub-core/term/at_keyboard.c
+43
-406
grub-core/term/efi/console.c
grub-core/term/efi/console.c
+1
-1
grub-core/term/gfxterm.c
grub-core/term/gfxterm.c
+7
-1
grub-core/term/i386/coreboot/cbmemc.c
grub-core/term/i386/coreboot/cbmemc.c
+36
-16
grub-core/term/i386/pc/console.c
grub-core/term/i386/pc/console.c
+1
-1
grub-core/term/ps2.c
grub-core/term/ps2.c
+387
-0
grub-core/term/terminfo.c
grub-core/term/terminfo.c
+5
-5
grub-core/tests/checksums.h
grub-core/tests/checksums.h
+129
-129
grub-core/tests/cmdline_cat_test.c
grub-core/tests/cmdline_cat_test.c
+1
-1
grub-core/tests/gfxterm_menu.c
grub-core/tests/gfxterm_menu.c
+1
-1
grub-core/tests/lib/functional_test.c
grub-core/tests/lib/functional_test.c
+11
-2
grub-core/tests/setjmp_test.c
grub-core/tests/setjmp_test.c
+4
-1
grub-core/tests/strtoull_test.c
grub-core/tests/strtoull_test.c
+63
-0
grub-core/video/coreboot/cbfb.c
grub-core/video/coreboot/cbfb.c
+1
-1
grub-core/video/fb/video_fb.c
grub-core/video/fb/video_fb.c
+1
-1
grub-core/video/ieee1275.c
grub-core/video/ieee1275.c
+1
-0
grub-core/video/readers/jpeg.c
grub-core/video/readers/jpeg.c
+1
-0
include/grub/aout.h
include/grub/aout.h
+1
-0
include/grub/arc/arc.h
include/grub/arc/arc.h
+1
-1
include/grub/arm/coreboot/console.h
include/grub/arm/coreboot/console.h
+29
-0
include/grub/arm/coreboot/kernel.h
include/grub/arm/coreboot/kernel.h
+44
-0
include/grub/arm/cros_ec.h
include/grub/arm/cros_ec.h
+21
-0
include/grub/arm/linux.h
include/grub/arm/linux.h
+30
-9
include/grub/arm/startup.h
include/grub/arm/startup.h
+16
-0
include/grub/arm64/linux.h
include/grub/arm64/linux.h
+6
-9
include/grub/arm64/reloc.h
include/grub/arm64/reloc.h
+7
-0
include/grub/at_keyboard.h
include/grub/at_keyboard.h
+2
-4
include/grub/autoefi.h
include/grub/autoefi.h
+1
-1
include/grub/cache.h
include/grub/cache.h
+5
-4
include/grub/coreboot/lbio.h
include/grub/coreboot/lbio.h
+9
-0
include/grub/dl.h
include/grub/dl.h
+5
-0
include/grub/dma.h
include/grub/dma.h
+44
-0
include/grub/efi/efi.h
include/grub/efi/efi.h
+13
-1
include/grub/efi/fdtload.h
include/grub/efi/fdtload.h
+0
-3
include/grub/efi/memory.h
include/grub/efi/memory.h
+7
-0
include/grub/efi/pe32.h
include/grub/efi/pe32.h
+2
-0
include/grub/elf.h
include/grub/elf.h
+3
-0
include/grub/fat.h
include/grub/fat.h
+6
-11
include/grub/fdt.h
include/grub/fdt.h
+15
-8
include/grub/fdtbus.h
include/grub/fdtbus.h
+89
-0
include/grub/i386/linux.h
include/grub/i386/linux.h
+5
-5
include/grub/i386/multiboot.h
include/grub/i386/multiboot.h
+12
-1
include/grub/ia64/reloc.h
include/grub/ia64/reloc.h
+2
-0
include/grub/ieee1275/ieee1275.h
include/grub/ieee1275/ieee1275.h
+21
-1
include/grub/kernel.h
include/grub/kernel.h
+2
-1
include/grub/mips/multiboot.h
include/grub/mips/multiboot.h
+2
-2
include/grub/misc.h
include/grub/misc.h
+2
-1
include/grub/module_verifier.h
include/grub/module_verifier.h
+2
-2
include/grub/multiboot.h
include/grub/multiboot.h
+1
-10
include/grub/multiboot2.h
include/grub/multiboot2.h
+104
-0
include/grub/net.h
include/grub/net.h
+3
-0
include/grub/net/arp.h
include/grub/net/arp.h
+3
-2
include/grub/net/ip.h
include/grub/net/ip.h
+2
-1
include/grub/offsets.h
include/grub/offsets.h
+8
-2
include/grub/pci.h
include/grub/pci.h
+1
-21
include/grub/ps2.h
include/grub/ps2.h
+43
-0
include/grub/sparc64/ieee1275/ieee1275.h
include/grub/sparc64/ieee1275/ieee1275.h
+2
-0
include/grub/term.h
include/grub/term.h
+2
-1
include/grub/usb.h
include/grub/usb.h
+4
-0
include/grub/util/install.h
include/grub/util/install.h
+7
-3
include/grub/util/mkimage.h
include/grub/util/mkimage.h
+5
-5
include/multiboot2.h
include/multiboot2.h
+2
-2
linguas.sh
linguas.sh
+1
-1
po/Makefile.in.in
po/Makefile.in.in
+1
-1
tests/ahci_test.in
tests/ahci_test.in
+1
-1
tests/btrfs_test.in
tests/btrfs_test.in
+1
-1
tests/cdboot_test.in
tests/cdboot_test.in
+1
-1
tests/core_compress_test.in
tests/core_compress_test.in
+1
-1
tests/cpio_test.in
tests/cpio_test.in
+1
-1
tests/ehci_test.in
tests/ehci_test.in
+1
-1
tests/example_scripted_test.in
tests/example_scripted_test.in
+1
-1
tests/exfat_test.in
tests/exfat_test.in
+1
-1
tests/ext234_test.in
tests/ext234_test.in
+2
-1
tests/fat_test.in
tests/fat_test.in
+1
-1
tests/fddboot_test.in
tests/fddboot_test.in
+1
-1
tests/file_filter_test.in
tests/file_filter_test.in
+1
-1
tests/gettext_strings_test.in
tests/gettext_strings_test.in
+1
-1
tests/grub_cmd_date.in
tests/grub_cmd_date.in
+2
-2
tests/grub_cmd_regexp.in
tests/grub_cmd_regexp.in
+1
-1
tests/grub_cmd_set_date.in
tests/grub_cmd_set_date.in
+1
-1
tests/grub_cmd_sleep.in
tests/grub_cmd_sleep.in
+3
-3
tests/grub_cmd_test.in
tests/grub_cmd_test.in
+1
-1
tests/grub_cmd_tr.in
tests/grub_cmd_tr.in
+1
-1
tests/grub_func_test.in
tests/grub_func_test.in
+1
-1
tests/grub_script_blanklines.in
tests/grub_script_blanklines.in
+1
-1
tests/grub_script_blockarg.in
tests/grub_script_blockarg.in
+1
-1
tests/grub_script_dollar.in
tests/grub_script_dollar.in
+1
-1
tests/grub_script_expansion.in
tests/grub_script_expansion.in
+1
-1
tests/grub_script_final_semicolon.in
tests/grub_script_final_semicolon.in
+1
-1
tests/grub_script_no_commands.in
tests/grub_script_no_commands.in
+1
-1
tests/gzcompress_test.in
tests/gzcompress_test.in
+1
-1
tests/hddboot_test.in
tests/hddboot_test.in
+1
-1
tests/help_test.in
tests/help_test.in
+1
-1
tests/hfs_test.in
tests/hfs_test.in
+1
-1
tests/hfsplus_test.in
tests/hfsplus_test.in
+1
-1
tests/iso9660_test.in
tests/iso9660_test.in
+1
-1
tests/jfs_test.in
tests/jfs_test.in
+1
-1
tests/lzocompress_test.in
tests/lzocompress_test.in
+1
-1
tests/minixfs_test.in
tests/minixfs_test.in
+1
-1
tests/netboot_test.in
tests/netboot_test.in
+1
-1
tests/nilfs2_test.in
tests/nilfs2_test.in
+1
-1
tests/ntfs_test.in
tests/ntfs_test.in
+1
-1
tests/ohci_test.in
tests/ohci_test.in
+1
-1
tests/partmap_test.in
tests/partmap_test.in
+1
-1
tests/pata_test.in
tests/pata_test.in
+1
-1
tests/printf_unit_test.c
tests/printf_unit_test.c
+4
-0
tests/pseries_test.in
tests/pseries_test.in
+1
-1
tests/reiserfs_test.in
tests/reiserfs_test.in
+1
-1
tests/romfs_test.in
tests/romfs_test.in
+1
-1
tests/squashfs_test.in
tests/squashfs_test.in
+1
-1
tests/syslinux_test.in
tests/syslinux_test.in
+1
-1
tests/tar_test.in
tests/tar_test.in
+1
-1
tests/test_sha512sum.in
tests/test_sha512sum.in
+1
-1
tests/udf_test.in
tests/udf_test.in
+1
-1
tests/uhci_test.in
tests/uhci_test.in
+1
-1
tests/util/grub-fs-tester.in
tests/util/grub-fs-tester.in
+215
-165
tests/util/grub-shell-tester.in
tests/util/grub-shell-tester.in
+1
-1
tests/util/grub-shell.in
tests/util/grub-shell.in
+2
-2
tests/xfs_test.in
tests/xfs_test.in
+1
-1
tests/xzcompress_test.in
tests/xzcompress_test.in
+1
-1
tests/zfs_test.in
tests/zfs_test.in
+1
-1
util/getroot.c
util/getroot.c
+1
-1
util/grub-install-common.c
util/grub-install-common.c
+10
-2
util/grub-install.c
util/grub-install.c
+22
-5
util/grub-mkconfig.in
util/grub-mkconfig.in
+8
-0
util/grub-mkconfig_lib.in
util/grub-mkconfig_lib.in
+1
-0
util/grub-mkfont.c
util/grub-mkfont.c
+0
-3
util/grub-mkimage.c
util/grub-mkimage.c
+16
-1
util/grub-mkimage32.c
util/grub-mkimage32.c
+2
-0
util/grub-mkimage64.c
util/grub-mkimage64.c
+2
-0
util/grub-mkimagexx.c
util/grub-mkimagexx.c
+333
-202
util/grub-mknetdir.c
util/grub-mknetdir.c
+2
-1
util/grub-mkrescue.c
util/grub-mkrescue.c
+12
-3
util/grub-module-verifier.c
util/grub-module-verifier.c
+37
-5
util/grub-module-verifierXX.c
util/grub-module-verifierXX.c
+68
-4
util/grub-mount.c
util/grub-mount.c
+1
-0
util/grub.d/10_linux.in
util/grub.d/10_linux.in
+27
-6
util/grub.d/20_linux_xen.in
util/grub.d/20_linux_xen.in
+15
-3
util/ieee1275/grub-ofpathname.c
util/ieee1275/grub-ofpathname.c
+3
-1
util/mkimage.c
util/mkimage.c
+63
-6
util/setup.c
util/setup.c
+23
-3
No files found.
.gitignore
View file @
48c09f48
...
@@ -246,3 +246,4 @@ build-aux/test-driver
...
@@ -246,3 +246,4 @@ build-aux/test-driver
/garbage-gen
/garbage-gen
/garbage-gen.exe
/garbage-gen.exe
/grub-fs-tester
/grub-fs-tester
grub-core/build-grub-module-verifier
INSTALL
View file @
48c09f48
...
@@ -15,15 +15,14 @@ configuring the GRUB.
...
@@ -15,15 +15,14 @@ configuring the GRUB.
Note: older versions may work but support is limited
Note: older versions may work but support is limited
Experimental support for clang 3.3 or later (results in much bigger binaries)
Experimental support for clang 3.3 or later (results in much bigger binaries)
for i386, x86_64, arm (
except
thumb), arm64, mips(el), powerpc, sparc64
for i386, x86_64, arm (
including
thumb), arm64, mips(el), powerpc, sparc64
Note: clang 3.2 or later works for i386 and x86_64 targets but results in
Note: clang 3.2 or later works for i386 and x86_64 targets but results in
much bigger binaries.
much bigger binaries.
earlier versions not tested
earlier versions not tested
Note: clang 3.2 or later works for arm
Note: clang 3.2 or later works for arm
None of tested clang versions generated usable thumb code
earlier versions not tested
earlier versions not tested
Note: clang
3.3 or later works for arm64
Note: clang
on arm64 is not supported due to
earlier versions have no arm64 support
https://llvm.org/bugs/show_bug.cgi?id=26030
Note: clang 3.3 or later works for mips(el)
Note: clang 3.3 or later works for mips(el)
earlier versions fail to generate .reginfo and hence gprel relocations
earlier versions fail to generate .reginfo and hence gprel relocations
fail.
fail.
...
...
Makefile.am
View file @
48c09f48
...
@@ -145,109 +145,116 @@ if COND_real_platform
...
@@ -145,109 +145,116 @@ if COND_real_platform
if
COND_i386_coreboot
if
COND_i386_coreboot
QEMU32
=
qemu-system-i386
QEMU32
=
qemu-system-i386
MINIMUM_CPU_LINUX
=
pentium2
endif
endif
if
COND_i386_multiboot
if
COND_i386_multiboot
QEMU32
=
qemu-system-i386
QEMU32
=
qemu-system-i386
MINIMUM_CPU_LINUX
=
pentium2
endif
endif
if
COND_i386_ieee1275
if
COND_i386_ieee1275
QEMU32
=
qemu-system-i386
QEMU32
=
qemu-system-i386
MINIMUM_CPU_LINUX
=
pentium2
endif
endif
if
COND_i386_qemu
if
COND_i386_qemu
QEMU32
=
qemu-system-i386
QEMU32
=
qemu-system-i386
MINIMUM_CPU_LINUX
=
pentium2
endif
endif
if
COND_i386_pc
if
COND_i386_pc
QEMU32
=
qemu-system-i386
QEMU32
=
qemu-system-i386
MINIMUM_CPU_LINUX
=
pentium2
endif
endif
if
COND_i386_efi
if
COND_i386_efi
QEMU32
=
qemu-system-i386
QEMU32
=
qemu-system-i386
MINIMUM_CPU_LINUX
=
pentium2
endif
endif
if
COND_x86_64_efi
if
COND_x86_64_efi
QEMU32
=
qemu-system-x86_64
QEMU32
=
qemu-system-x86_64
MINIMUM_CPU_LINUX
=
core2duo
endif
endif
linux.init.x86_64
:
$(srcdir)/grub-core/tests/boot/linux.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
linux.init.x86_64
:
$(srcdir)/grub-core/tests/boot/linux.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m64
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-
static
-
m64
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
linux.init.i386
:
$(srcdir)/grub-core/tests/boot/linux.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
linux.init.i386
:
$(srcdir)/grub-core/tests/boot/linux.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m32
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-
static
-
m32
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
linux.init.mips
:
$(srcdir)/grub-core/tests/boot/linux.init-mips.S
linux.init.mips
:
$(srcdir)/grub-core/tests/boot/linux.init-mips.S
$(TARGET_CC)
-o
$@
$<
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
linux.init.ppc
:
$(srcdir)/grub-core/tests/boot/linux.init-ppc.S
linux.init.ppc
:
$(srcdir)/grub-core/tests/boot/linux.init-ppc.S
$(TARGET_CC)
-o
$@
$<
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
linux.init.mipsel
:
$(srcdir)/grub-core/tests/boot/linux.init-mips.S
linux.init.mipsel
:
$(srcdir)/grub-core/tests/boot/linux.init-mips.S
$(TARGET_CC)
-o
$@
$<
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
linux.init.loongson
:
$(srcdir)/grub-core/tests/boot/linux.init-mips.S
linux.init.loongson
:
$(srcdir)/grub-core/tests/boot/linux.init-mips.S
$(TARGET_CC)
-o
$@
$<
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-DREBOOT
=
1
$(TARGET_CC)
-o
$@
$<
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-DREBOOT
=
1
multiboot.elf
:
$(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
multiboot.elf
:
$(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-DTARGET_MULTIBOOT
=
1
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x100000
-m32
-I
$(srcdir)
/include
$(TARGET_CC)
-o
$@
$<
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-
static
-
ffreestanding
-nostdlib
-nostdinc
-DTARGET_MULTIBOOT
=
1
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x100000
-m32
-I
$(srcdir)
/include
kfreebsd.elf
:
$(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
kfreebsd.elf
:
$(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x100000
-m32
-I
$(srcdir)
/include
$(TARGET_CC)
-o
$@
$<
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-
static
-
ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x100000
-m32
-I
$(srcdir)
/include
kfreebsd.aout
:
kfreebsd.elf
kfreebsd.aout
:
kfreebsd.elf
$(TARGET_OBJCOPY)
-O
a.out-i386-linux
$<
$@
-
R
.note.gnu.build-id
-R
.note.gnu.gold-version
$(TARGET_OBJCOPY)
-O
a.out-i386-linux
$<
$@
-
j
.text
pc-chainloader.elf
:
$(srcdir)/grub-core/tests/boot/kernel-8086.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
pc-chainloader.elf
:
$(srcdir)/grub-core/tests/boot/kernel-8086.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-DTARGET_CHAINLOADER
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x7c00
-m32
$(TARGET_CC)
-o
$@
$<
-
static
-
DTARGET_CHAINLOADER
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x7c00
-m32
pc-chainloader.bin
:
pc-chainloader.elf
pc-chainloader.bin
:
pc-chainloader.elf
$(TARGET_OBJCOPY)
-O
binary
--strip-unneeded
-R
.note
-R
.comment
-R
.note.gnu.build-id
-R
.reginfo
-R
.rel.dyn
-R
.note.gnu.gold-version
$<
$@
;
$(TARGET_OBJCOPY)
-O
binary
--strip-unneeded
-R
.note
-R
.comment
-R
.note.gnu.build-id
-R
.reginfo
-R
.rel.dyn
-R
.note.gnu.gold-version
$<
$@
;
ntldr.elf
:
$(srcdir)/grub-core/tests/boot/kernel-8086.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
ntldr.elf
:
$(srcdir)/grub-core/tests/boot/kernel-8086.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-DTARGET_NTLDR
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0
-m32
$(TARGET_CC)
-o
$@
$<
-DTARGET_NTLDR
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-
static
-
ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0
-m32
ntldr.bin
:
ntldr.elf
ntldr.bin
:
ntldr.elf
$(TARGET_OBJCOPY)
-O
binary
--strip-unneeded
-
R
.note
-R
.comment
-R
.note.gnu.build-id
-R
.reginfo
-R
.rel.dyn
-R
.note.gnu.gold-version
$<
$@
;
$(TARGET_OBJCOPY)
-O
binary
--strip-unneeded
-
j
.text
$<
$@
;
multiboot2.elf
:
$(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
multiboot2.elf
:
$(srcdir)/grub-core/tests/boot/kernel-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x100000
-m32
-I
$(srcdir)
/include
-DTARGET_MULTIBOOT2
=
1
$(TARGET_CC)
-
static
-
o
$@
$<
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
-ffreestanding
-nostdlib
-nostdinc
-Wl
,--build-id
=
none
-Wl
,-N
-Wl
,-Ttext,0x100000
-m32
-I
$(srcdir)
/include
-DTARGET_MULTIBOOT2
=
1
kfreebsd.init.x86_64
:
$(srcdir)/grub-core/tests/boot/kfreebsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
kfreebsd.init.x86_64
:
$(srcdir)/grub-core/tests/boot/kfreebsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m64
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
&&
freebsd-brandelf
-t
FreeBSD
$@
$(TARGET_CC)
-o
$@
$<
-m64
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
&&
freebsd-brandelf
-t
FreeBSD
$@
kfreebsd.init.i386
:
$(srcdir)/grub-core/tests/boot/kfreebsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
kfreebsd.init.i386
:
$(srcdir)/grub-core/tests/boot/kfreebsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m32
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
&&
freebsd-brandelf
-t
FreeBSD
$@
$(TARGET_CC)
-o
$@
$<
-m32
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
&&
freebsd-brandelf
-t
FreeBSD
$@
knetbsd.init.i386
:
$(srcdir)/grub-core/tests/boot/kbsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
knetbsd.init.i386
:
$(srcdir)/grub-core/tests/boot/kbsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m32
-nostdlib
-nostdinc
-DTARGET_NETBSD
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-m32
-
static
-
nostdlib
-nostdinc
-DTARGET_NETBSD
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
kopenbsd.init.i386
:
$(srcdir)/grub-core/tests/boot/kbsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
kopenbsd.init.i386
:
$(srcdir)/grub-core/tests/boot/kbsd.init-i386.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m32
-nostdlib
-nostdinc
-DTARGET_OPENBSD
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-m32
-
static
-
nostdlib
-nostdinc
-DTARGET_OPENBSD
=
1
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
knetbsd.init.x86_64
:
$(srcdir)/grub-core/tests/boot/kbsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
knetbsd.init.x86_64
:
$(srcdir)/grub-core/tests/boot/kbsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m64
-DTARGET_NETBSD
=
1
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-m64
-DTARGET_NETBSD
=
1
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
kopenbsd.init.x86_64
:
$(srcdir)/grub-core/tests/boot/kbsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
kopenbsd.init.x86_64
:
$(srcdir)/grub-core/tests/boot/kbsd.init-x86_64.S $(srcdir)/grub-core/tests/boot/qemu-shutdown-x86.S
$(TARGET_CC)
-o
$@
$<
-m64
-DTARGET_OPENBSD
=
1
-nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
$(TARGET_CC)
-o
$@
$<
-m64
-DTARGET_OPENBSD
=
1
-
static
-
nostdlib
-nostdinc
-DSUCCESSFUL_BOOT_STRING
=
\"
$(SUCCESSFUL_BOOT_STRING)
\"
linux-initramfs.mips
:
linux.init.mips Makefile
linux-initramfs.mips
:
linux.init.mips Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
--quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
-
R
0:0
-
-quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
linux-initramfs.ppc
:
linux.init.ppc Makefile
linux-initramfs.ppc
:
linux.init.ppc Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
--quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
-
R
0:0
-
-quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
linux-initramfs.mipsel
:
linux.init.mipsel Makefile
linux-initramfs.mipsel
:
linux.init.mipsel Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
--quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
-
R
0:0
-
-quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
linux-initramfs.loongson
:
linux.init.loongson Makefile
linux-initramfs.loongson
:
linux.init.loongson Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
--quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
-
R
0:0
-
-quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
linux-initramfs.i386
:
linux.init.i386 Makefile
linux-initramfs.i386
:
linux.init.i386 Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
--quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
-
R
0:0
-
-quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
linux-initramfs.x86_64
:
linux.init.x86_64 Makefile
linux-initramfs.x86_64
:
linux.init.x86_64 Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
--quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
cp
$<
$$
TDIR/init
&&
(
cd
$$
TDIR
&&
echo
./init | cpio
-
R
0:0
-
-quiet
--dereference
-o
-H
newc
)
|
gzip
>
$@
&&
rm
-rf
$$
TDIR
kfreebsd-mfsroot.i386.img
:
kfreebsd.init.i386 Makefile
kfreebsd-mfsroot.i386.img
:
kfreebsd.init.i386 Makefile
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
mkdir
$$
TDIR/dev
&&
mkdir
$$
TDIR/sbin
&&
cp
$<
$$
TDIR/sbin/init
&&
makefs
-t
ffs
-s
30m
-f
1000
-o
minfree
=
0,version
=
1
$@
$$
TDIR
&&
rm
-rf
$$
TDIR
TDIR
=
`
mktemp
-d
"
$
${
TMPDIR
:-
/tmp
}
/tmp.XXXXXXXXXX"
`
&&
mkdir
$$
TDIR/dev
&&
mkdir
$$
TDIR/sbin
&&
cp
$<
$$
TDIR/sbin/init
&&
makefs
-t
ffs
-s
30m
-f
1000
-o
minfree
=
0,version
=
1
$@
$$
TDIR
&&
rm
-rf
$$
TDIR
...
@@ -306,7 +313,7 @@ bootcheck-knetbsd-x86_64: knetbsd.miniroot-image.x86_64.gz $(GRUB_PAYLOADS_DIR)/
...
@@ -306,7 +313,7 @@ bootcheck-knetbsd-x86_64: knetbsd.miniroot-image.x86_64.gz $(GRUB_PAYLOADS_DIR)/
./grub-shell
--timeout
=
$(BOOTCHECK_TIMEOUT)
--qemu
=
qemu-system-x86_64
--files
=
/miniroot.gz
=
knetbsd.miniroot-image.x86_64.gz
--files
=
/knetbsd
=
$(GRUB_PAYLOADS_DIR)
/knetbsd.x86_64
$(srcdir)
/grub-core/tests/boot/knetbsd.cfg |
grep
$(SUCCESSFUL_BOOT_STRING)
>
/dev/null
./grub-shell
--timeout
=
$(BOOTCHECK_TIMEOUT)
--qemu
=
qemu-system-x86_64
--files
=
/miniroot.gz
=
knetbsd.miniroot-image.x86_64.gz
--files
=
/knetbsd
=
$(GRUB_PAYLOADS_DIR)
/knetbsd.x86_64
$(srcdir)
/grub-core/tests/boot/knetbsd.cfg |
grep
$(SUCCESSFUL_BOOT_STRING)
>
/dev/null
bootcheck-linux-i386
:
linux-initramfs.i386 $(GRUB_PAYLOADS_DIR)/linux.i386 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
bootcheck-linux-i386
:
linux-initramfs.i386 $(GRUB_PAYLOADS_DIR)/linux.i386 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
./grub-shell
--timeout
=
$(BOOTCHECK_TIMEOUT)
--qemu
=
$(QEMU32)
--files
=
/initrd
=
linux-initramfs.i386
--files
=
/linux
=
$(GRUB_PAYLOADS_DIR)
/linux.i386
$(srcdir)
/grub-core/tests/boot/linux.cfg |
grep
$(SUCCESSFUL_BOOT_STRING)
>
/dev/null
./grub-shell
--timeout
=
$(BOOTCHECK_TIMEOUT)
--qemu
=
$(QEMU32)
--files
=
/initrd
=
linux-initramfs.i386
--files
=
/linux
=
$(GRUB_PAYLOADS_DIR)
/linux.i386
$(srcdir)
/grub-core/tests/boot/linux.cfg
--qemu-opts
=
"-cpu
$(MINIMUM_CPU_LINUX)
"
|
grep
$(SUCCESSFUL_BOOT_STRING)
>
/dev/null
bootcheck-linux-x86_64
:
linux-initramfs.x86_64 $(GRUB_PAYLOADS_DIR)/linux.x86_64 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
bootcheck-linux-x86_64
:
linux-initramfs.x86_64 $(GRUB_PAYLOADS_DIR)/linux.x86_64 $(srcdir)/grub-core/tests/boot/linux.cfg grub-shell
./grub-shell
--timeout
=
$(BOOTCHECK_TIMEOUT)
--qemu
=
qemu-system-x86_64
--files
=
/initrd
=
linux-initramfs.x86_64
--files
=
/linux
=
$(GRUB_PAYLOADS_DIR)
/linux.x86_64
$(srcdir)
/grub-core/tests/boot/linux.cfg |
grep
$(SUCCESSFUL_BOOT_STRING)
>
/dev/null
./grub-shell
--timeout
=
$(BOOTCHECK_TIMEOUT)
--qemu
=
qemu-system-x86_64
--files
=
/initrd
=
linux-initramfs.x86_64
--files
=
/linux
=
$(GRUB_PAYLOADS_DIR)
/linux.x86_64
$(srcdir)
/grub-core/tests/boot/linux.cfg |
grep
$(SUCCESSFUL_BOOT_STRING)
>
/dev/null
...
@@ -369,6 +376,12 @@ if COND_i386_coreboot
...
@@ -369,6 +376,12 @@ if COND_i386_coreboot
BOOTCHECKS
=
bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64 bootcheck-kfreebsd-x86_64 bootcheck-kfreebsd-i386
BOOTCHECKS
=
bootcheck-kfreebsd-aout bootcheck-kopenbsd-i386 bootcheck-kopenbsd-x86_64 bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64 bootcheck-knetbsd-x86_64 bootcheck-kfreebsd-x86_64 bootcheck-kfreebsd-i386
endif
endif
if
COND_i386_ieee1275
# *BSD requires ACPI
#legacy protocol (linux16) makes early BIOS calls.
BOOTCHECKS
=
bootcheck-kfreebsd-aout bootcheck-multiboot bootcheck-multiboot2 bootcheck-linux-i386 bootcheck-linux-x86_64
endif
if
COND_i386_pc
if
COND_i386_pc
#pc chainloader by definition is only for i386-pc
#pc chainloader by definition is only for i386-pc
#ntldr and bootmgr require BIOS.
#ntldr and bootmgr require BIOS.
...
...
NEWS
View file @
48c09f48
...
@@ -51,6 +51,8 @@ New in 2.02:
...
@@ -51,6 +51,8 @@ New in 2.02:
* Parse `nd' disk names in GRUB Legacy configuration files.
* Parse `nd' disk names in GRUB Legacy configuration files.
* Issue separate DNS queries for IPv4 and IPv6.
* Issue separate DNS queries for IPv4 and IPv6.
* Support IPv6 Router Advertisement to configure default router.
* Support IPv6 Router Advertisement to configure default router.
* New variable net_<interface>_next_server containing next server
from BOOTP reply.
* Coreboot improvements:
* Coreboot improvements:
* CBFS support both in on-disk images (loopback) and flash.
* CBFS support both in on-disk images (loopback) and flash.
...
@@ -171,6 +173,7 @@ New in 2.02:
...
@@ -171,6 +173,7 @@ New in 2.02:
* Use fixed timestamp when generating GRUB image for reproducible builds.
* Use fixed timestamp when generating GRUB image for reproducible builds.
* Verify at build time that modules contain only supported relocations and their
* Verify at build time that modules contain only supported relocations and their
structure matches what boot-time module loader expects.
structure matches what boot-time module loader expects.
* Do not require fonts on powerpc-ieee1275.
* Revision control moved to git.
* Revision control moved to git.
...
...
acinclude.m4
View file @
48c09f48
...
@@ -390,6 +390,58 @@ else
...
@@ -390,6 +390,58 @@ else
[fi]
[fi]
])
])
AC_DEFUN([grub_CHECK_LINK_PIE],[
[# Position independent executable.
link_nopie_needed=no]
AC_MSG_CHECKING([whether linker needs disabling of PIE to work])
AC_LANG_CONFTEST([AC_LANG_SOURCE([[]])])
[if eval "$ac_compile -Wl,-r,-d -nostdlib -Werror -o conftest.o" 2> /dev/null; then]
AC_MSG_RESULT([no])
[# Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
rm -f conftest.o
else
link_nopie_needed=yes]
AC_MSG_RESULT([yes])
[fi]
])
dnl Check if the Linker supports `-no-pie'.
AC_DEFUN([grub_CHECK_NO_PIE],
[AC_MSG_CHECKING([whether linker accepts -no-pie])
AC_CACHE_VAL(grub_cv_cc_ld_no_pie,
[save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -no-pie -nostdlib -Werror"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_cc_ld_no_pie=yes],
[grub_cv_cc_ld_no_pie=no])
LDFLAGS="$save_LDFLAGS"
])
AC_MSG_RESULT([$grub_cv_cc_ld_no_pie])
nopie_possible=no
if test "x$grub_cv_cc_ld_no_pie" = xyes ; then
nopie_possible=yes
fi
])
AC_DEFUN([grub_CHECK_NO_PIE_ONEWORD],
[AC_MSG_CHECKING([whether linker accepts -nopie])
AC_CACHE_VAL(grub_cv_cc_ld_no_pie_oneword,
[save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -nopie -nostdlib -Werror"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_cc_ld_no_pie_oneword=yes],
[grub_cv_cc_ld_no_pie_oneword=no])
LDFLAGS="$save_LDFLAGS"
])
AC_MSG_RESULT([$grub_cv_cc_ld_no_pie_oneword])
nopie_oneword_possible=no
if test "x$grub_cv_cc_ld_no_pie_oneword" = xyes ; then
nopie_oneword_possible=yes
fi
])
dnl Check if the C compiler supports `-fPIC'.
dnl Check if the C compiler supports `-fPIC'.
AC_DEFUN([grub_CHECK_PIC],[
AC_DEFUN([grub_CHECK_PIC],[
[# Position independent executable.
[# Position independent executable.
...
...
conf/Makefile.common
View file @
48c09f48
...
@@ -86,9 +86,11 @@ CPPFLAGS_TERMINAL_LIST += '-Dgrub_term_register_output(...)=OUTPUT_TERMINAL_LIST
...
@@ -86,9 +86,11 @@ CPPFLAGS_TERMINAL_LIST += '-Dgrub_term_register_output(...)=OUTPUT_TERMINAL_LIST
CPPFLAGS_COMMAND_LIST
=
'-Dgrub_register_command(...)=COMMAND_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_COMMAND_LIST
=
'-Dgrub_register_command(...)=COMMAND_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_COMMAND_LIST
+=
'-Dgrub_register_extcmd(...)=EXTCOMMAND_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_COMMAND_LIST
+=
'-Dgrub_register_extcmd(...)=EXTCOMMAND_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_COMMAND_LIST
+=
'-Dgrub_register_command_p1(...)=P1COMMAND_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_COMMAND_LIST
+=
'-Dgrub_register_command_p1(...)=P1COMMAND_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_FDT_LIST
:=
'-Dgrub_fdtbus_register(...)=FDT_DRIVER_LIST_MARKER(__VA_ARGS__)'
CPPFLAGS_MARKER
=
$(CPPFLAGS_FS_LIST)
$(CPPFLAGS_VIDEO_LIST)
\
CPPFLAGS_MARKER
=
$(CPPFLAGS_FS_LIST)
$(CPPFLAGS_VIDEO_LIST)
\
$(CPPFLAGS_PARTTOOL_LIST)
$(CPPFLAGS_PARTMAP_LIST)
\
$(CPPFLAGS_PARTTOOL_LIST)
$(CPPFLAGS_PARTMAP_LIST)
\
$(CPPFLAGS_TERMINAL_LIST)
$(CPPFLAGS_COMMAND_LIST)
$(CPPFLAGS_TERMINAL_LIST)
$(CPPFLAGS_COMMAND_LIST)
\
$(CPPFLAGS_FDT_LIST)
# Define these variables to calm down automake
# Define these variables to calm down automake
...
...
configure.ac
View file @
48c09f48
...
@@ -31,7 +31,7 @@ dnl (such as BUILD_CC, BUILD_CFLAGS, etc.) for the build type and variables
...
@@ -31,7 +31,7 @@ dnl (such as BUILD_CC, BUILD_CFLAGS, etc.) for the build type and variables
dnl with the prefix "TARGET_" (such as TARGET_CC, TARGET_CFLAGS, etc.) are
dnl with the prefix "TARGET_" (such as TARGET_CC, TARGET_CFLAGS, etc.) are
dnl used for the target type. See INSTALL for full list of variables.
dnl used for the target type. See INSTALL for full list of variables.
AC_INIT([GRUB],[2.0
2~beta
3],[bug-grub@gnu.org])
AC_INIT([GRUB],[2.03],[bug-grub@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_AUX_DIR([build-aux])
...
@@ -167,6 +167,7 @@ case "$target_cpu"-"$platform" in
...
@@ -167,6 +167,7 @@ case "$target_cpu"-"$platform" in
mipsel-fuloong) platform=loongson ;;
mipsel-fuloong) platform=loongson ;;
mipsel-loongson) ;;
mipsel-loongson) ;;
arm-uboot) ;;
arm-uboot) ;;
arm-coreboot) ;;
arm-efi) ;;
arm-efi) ;;
arm64-efi) ;;
arm64-efi) ;;
*-emu) ;;
*-emu) ;;
...
@@ -203,7 +204,8 @@ case "$host_os" in
...
@@ -203,7 +204,8 @@ case "$host_os" in
esac
esac
case "$host_os" in
case "$host_os" in
cygwin | windows* | mingw32*) have_exec=n ;;
cygwin) have_exec=y ;;
windows* | mingw32*) have_exec=n ;;
aros*) have_exec=n ;;
aros*) have_exec=n ;;
*) have_exec=y;;
*) have_exec=y;;
esac
esac
...
@@ -373,7 +375,10 @@ case "$host_os" in
...
@@ -373,7 +375,10 @@ case "$host_os" in
;;
;;
*)
*)
AC_CHECK_SIZEOF(off_t)
AC_CHECK_SIZEOF(off_t)
test x"$ac_cv_sizeof_off_t" = x8 || AC_MSG_ERROR([Large file support is required]);;
if test x"$ac_cv_sizeof_off_t" != x8 ; then
AC_CHECK_SIZEOF(off64_t)
test x"$ac_cv_sizeof_off64_t" = x8 || AC_MSG_ERROR([Large file support is required])
fi;;
esac
esac
if test x$USE_NLS = xno; then
if test x$USE_NLS = xno; then
...
@@ -389,7 +394,14 @@ fi
...
@@ -389,7 +394,14 @@ fi
# Check for functions and headers.
# Check for functions and headers.
AC_CHECK_FUNCS(posix_memalign memalign getextmntent)
AC_CHECK_FUNCS(posix_memalign memalign getextmntent)
AC_CHECK_HEADERS(sys/param.h sys/mount.h sys/mnttab.h limits.h)
AC_CHECK_HEADERS(sys/param.h sys/mount.h sys/mnttab.h limits.h)
# glibc 2.25 still includes sys/sysmacros.h in sys/types.h but emits deprecation
# warning which causes compilation failure later with -Werror. So use -Werror here
# as well to force proper sys/sysmacros.h detection.
SAVED_CFLAGS="$CFLAGS"
CFLAGS="$HOST_CFLAGS -Werror"
AC_HEADER_MAJOR
AC_HEADER_MAJOR
CFLAGS="$SAVED_CFLAGS"
AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$ac_includes_default
AC_CHECK_MEMBERS([struct statfs.f_fstypename],,,[$ac_includes_default
#include <sys/param.h>
#include <sys/param.h>
...
@@ -449,6 +461,16 @@ case "$build_os" in
...
@@ -449,6 +461,16 @@ case "$build_os" in
esac
esac
AC_SUBST(BUILD_EXEEXT)
AC_SUBST(BUILD_EXEEXT)
# In some build environments like termux /bin/sh is not a valid
# shebang. Use $SHELL instead if it's executable and /bin/sh isn't
BUILD_SHEBANG=/bin/sh
for she in /bin/sh "$SHELL"; do
if test -x "$she" ; then
BUILD_SHEBANG="$she"
fi
done
AC_SUBST(BUILD_SHEBANG)
# For gnulib.
# For gnulib.
gl_INIT
gl_INIT
...
@@ -1145,14 +1167,23 @@ if test "$target_cpu"-"$platform" = x86_64-efi; then
...
@@ -1145,14 +1167,23 @@ if test "$target_cpu"-"$platform" = x86_64-efi; then
fi
fi
if test "x$target_cpu" = xarm; then
if test "x$target_cpu" = xarm; then
AC_CACHE_CHECK([whether option -mlong-calls works], grub_cv_cc_mlong_calls, [
AC_CACHE_CHECK([for options to disable movt and movw], grub_cv_target_cc_mno_movt, [
CFLAGS="$TARGET_CFLAGS -mlong-calls -Werror"
grub_cv_target_cc_mno_movt=no
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
for cand in "-mno-movt" \
[grub_cv_cc_mlong_calls=yes],
"-mllvm -arm-use-movt=0"; do
[grub_cv_cc_mlong_calls=no])
if test x"$grub_cv_target_cc_mno_movt" != xno ; then
break
fi
CFLAGS="$TARGET_CFLAGS $cand -Werror"
CPPFLAGS="$TARGET_CPPFLAGS"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_target_cc_mno_movt="$cand"], [])
done
])
])
if test "x$grub_cv_cc_mlong_calls" = xyes; then
TARGET_CFLAGS="$TARGET_CFLAGS -mlong-calls"
if test x"$grub_cv_target_cc_mno_movt" != xno ; then
# A trick so that clang doesn't see it on link stage
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $grub_cv_target_cc_mno_movt"
fi
fi
AC_CACHE_CHECK([whether option -mthumb-interwork works], grub_cv_cc_mthumb_interwork, [
AC_CACHE_CHECK([whether option -mthumb-interwork works], grub_cv_cc_mthumb_interwork, [
CFLAGS="$TARGET_CFLAGS -mthumb-interwork -Werror"
CFLAGS="$TARGET_CFLAGS -mthumb-interwork -Werror"
...
@@ -1185,13 +1216,26 @@ CFLAGS="$TARGET_CFLAGS"
...
@@ -1185,13 +1216,26 @@ CFLAGS="$TARGET_CFLAGS"
# Position independent executable.
# Position independent executable.
grub_CHECK_PIE
grub_CHECK_PIE
grub_CHECK_NO_PIE
grub_CHECK_NO_PIE_ONEWORD
grub_CHECK_LINK_PIE
[# Need that, because some distributions ship compilers that include
[# Need that, because some distributions ship compilers that include
# `-fPIE' or '-fpie' in the default specs.
# `-fPIE' or '-fpie'
and '-pie'
in the default specs.
if [ x"$pie_possible" = xyes ]; then
if [ x"$pie_possible" = xyes ]; then
TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE -fno-pie"
TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE -fno-pie"
fi
if [ x"$link_nopie_needed" = xyes ] || [ x"$pie_possible" = xyes ]; then
if [ x"$nopie_possible" = xyes ]; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -no-pie"
fi
if [ x"$nopie_oneword_possible" = xyes ]; then
TARGET_LDFLAGS="$TARGET_LDFLAGS -nopie"