mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-06 14:40:02 +00:00
![]() * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'. (pkglib_MODULES): Add `memdisk.mod'. (memdisk_mod_SOURCES): New variable. (memdisk_mod_CFLAGS): Likewise. (memdisk_mod_LDFLAGS): Likewise. * disk/memdisk.c: New file. * include/grub/disk.h (grub_disk_dev_id): Add `GRUB_DISK_DEVICE_MEMDISK_ID'. * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro. (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4. (grub_kernel_image_size): New variable declaration. (grub_total_module_size): Likewise. (grub_memdisk_image_size): Likewise. * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro. * include/grub/kernel.h: Include `<grub/symbol.h>'. (grub_arch_memdisk_addr): New variable declaration. (grub_arch_memdisk_size): Likewise. * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function. (grub_arch_memdisk_size): Likewise. * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable. (codestart): Replace hardcoded `0x100000' with `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro. * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'. (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is not NULL, append the contents of the file it refers to, at the end of the compressed kernel image. Initialize `grub_memdisk_image_size' variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset). (options): Add "memdisk"|'m' option. (main): Parse --memdisk|-m option, and pass user-provided path as parameter to generate_image(). |
||
---|---|---|
.. | ||
efi | ||
i386 | ||
ieee1275 | ||
powerpc | ||
sparc64 | ||
util | ||
acorn_filecore.h | ||
arg.h | ||
bitmap.h | ||
boot.h | ||
cache.h | ||
device.h | ||
disk.h | ||
dl.h | ||
elf.h | ||
elfload.h | ||
env.h | ||
err.h | ||
file.h | ||
font.h | ||
fs.h | ||
fshelp.h | ||
gzio.h | ||
hexdump.h | ||
hfs.h | ||
kernel.h | ||
loader.h | ||
lvm.h | ||
misc.h | ||
mm.h | ||
multiboot2.h | ||
multiboot_loader.h | ||
multiboot.h | ||
net.h | ||
normal.h | ||
ntfs.h | ||
parser.h | ||
partition.h | ||
pc_partition.h | ||
raid.h | ||
rescue.h | ||
script.h | ||
setjmp.h | ||
symbol.h | ||
term.h | ||
terminfo.h | ||
time.h | ||
tparm.h | ||
types.h | ||
video.h |