]> git.proxmox.com Git - grub2.git/log
grub2.git
15 years agoImproved Changelog as suggested by Pavel Roskin.
phcoder [Fri, 24 Jul 2009 21:22:30 +0000 (21:22 +0000)]
Improved Changelog as suggested by Pavel Roskin.

15 years ago2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Fri, 24 Jul 2009 20:41:31 +0000 (20:41 +0000)]
2009-07-24  Vladimir Serbinenko  <phcoder@gmail.com>

* util/i386/pc/grub-setup.c (setup): Fix bug when
installing on partionless disk.

15 years ago2009-07-23 Pavel Roskin <proski@gnu.org>
proski [Fri, 24 Jul 2009 01:43:10 +0000 (01:43 +0000)]
2009-07-23  Pavel Roskin  <proski@gnu.org>

* commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
instead of WORDS_BIGENDIAN.  Use grub_le_to_cpu32(), so that the
case of little endian words becomes just an optimization.
Respect const modifier.
(md5_final): Use code that doesn't depend on endianess.

15 years ago2009-07-23 Pavel Roskin <proski@gnu.org>
proski [Thu, 23 Jul 2009 16:41:29 +0000 (16:41 +0000)]
2009-07-23  Pavel Roskin  <proski@gnu.org>

* include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
to avoid loss of upper bits if align is unsigned and shorter
than addr.

15 years ago2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 22 Jul 2009 11:16:11 +0000 (11:16 +0000)]
2009-07-21  Vladimir Serbinenko  <phcoder@gmail.com>

UUID support for UFS

* fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
(grub_ufs_uuid): New function.
(grub_ufs_fs): add .uuid

15 years ago2009-07-21 Pavel Roskin <proski@gnu.org>
proski [Tue, 21 Jul 2009 20:18:44 +0000 (20:18 +0000)]
2009-07-21  Pavel Roskin  <proski@gnu.org>

* kern/dl.c (grub_dl_check_header): Make static.

15 years ago2009-07-21 Felix Zielcke <fzielcke@z-51.de>
fzielcke [Tue, 21 Jul 2009 13:37:43 +0000 (13:37 +0000)]
2009-07-21  Felix Zielcke  <fzielcke@z-51.de>

* util/grub.d/30_os-prober.in: Remove unused CHAINROOT.  Don't
add drivemap for Vista.  It breaks Windows 7.

15 years ago2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Tue, 21 Jul 2009 12:58:41 +0000 (12:58 +0000)]
2009-07-21  Vladimir Serbinenko  <phcoder@gmail.com>

* fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
128 bytes

15 years ago2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 20 Jul 2009 21:18:59 +0000 (21:18 +0000)]
2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>

Add BFS support

* conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
(grub_fstest_SOURCES): Likewise.
(pkglib_MODULES): Add befs.mod.
(befs_mod_SOURCES): New variable.
(befs_mod_CFLAGS): Likewise.
(befs_mod_LDFLAGS): Likewise.
* conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
(grub_setup_SOURCES): Likewise.
* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
(grub_setup_SOURCES): Likewise.
* fs/befs.c: New file.
* fs/afs.c (GRUB_AFS_FSNAME): New declaration.
(GRUB_AFS_SBLOCK_SECTOR): Likewise.
(GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
(GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
(B_KEY_INDEX_ALIGN): New declaration.
(B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
(grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
(grub_afs_btree) [MODE_BFS]: New conditional declaration.
(grub_afs_sblock) [MODE_BFS]: Remove link_count.
(grub_afs_validate_sblock) [MODE_BFS]: Support BFS
(grub_afs_mount) [MODE_BFS]: Likewise.
(grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
(grub_afs_fs): Use GRUB_AFS_FSNAME
(GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
(GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
(GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
(GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this

15 years ago2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
proski [Mon, 20 Jul 2009 20:03:18 +0000 (20:03 +0000)]
2009-07-19  Yves BLUSSEAU  <yves.grub-devel@zetam.org>

* util/getroot.c (find_root_device): Add support for MacOSX.
* util/hostdisk.c: Likewise.

15 years agoFix typos, spacing
proski [Mon, 20 Jul 2009 18:46:46 +0000 (18:46 +0000)]
Fix typos, spacing

15 years ago2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 20 Jul 2009 17:37:37 +0000 (17:37 +0000)]
2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>

* font/font.c (find_glyph): Check whether a font is present to avoid
segmentation fault.

15 years ago2009-07-20 Joe Auricchio <jauricchio@gmail.com>
phcoder [Mon, 20 Jul 2009 16:46:36 +0000 (16:46 +0000)]
2009-07-20  Joe Auricchio <jauricchio@gmail.com>

* term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.

15 years ago2009-07-20 Pavel Roskin <proski@gnu.org>
proski [Mon, 20 Jul 2009 13:48:41 +0000 (13:48 +0000)]
2009-07-20  Pavel Roskin  <proski@gnu.org>

* configure.ac: Trim excessively wordy excuses.

15 years ago2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 20 Jul 2009 10:01:44 +0000 (10:01 +0000)]
2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>

Add symlink, mtime and label support to AtheFS.

* fs/afs.c (grub_afs_sblock): Declare `name' as char.
(grub_afs_iterate_dir): Handle symlinks.
(grub_afs_open): Use grub_afs_read_symlink.
(grub_afs_dir): Likewise.
Pass mtime.
(grub_afs_label): New function.
(grub_afs_fs): Add grub_afs_label.
(grub_afs_read_symlink): New function.

15 years ago2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Mon, 20 Jul 2009 09:48:25 +0000 (09:48 +0000)]
2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>

Fix AtheFS support.

* fs/afs.c: Fix comments style.
(grub_afs_blockrun): Declare as packed.
(grub_afs_datastream): Likewise.
(grub_afs_bnode): Likewise.
(grub_afs_btree): Likewise.
(grub_afs_sblock): Likewise.
Declare `name' as char.
(grub_afs_inode): Declare as packed.
Change void *vnode to grub_uint32_t unused.
(grub_afs_iterate_dir): Check that key_size is positive.
(grub_afs_mount): Don't read superblock twice.
(grub_afs_dir): Don't free node in case of errorx
grub_fshelp_find_file already handles this.
(grub_afs_open): Likewise.

15 years ago2009-07-19 Pavel Roskin <proski@gnu.org>
proski [Sun, 19 Jul 2009 20:23:33 +0000 (20:23 +0000)]
2009-07-19  Pavel Roskin  <proski@gnu.org>

* Makefile.in: Remove LIBLZO and enable_lzo.
* conf/i386-pc.rmk: Remove lzo support.
* configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
* include/grub/i386/pc/kernel.h: Define ENABLE_LZMA.  Remove lzo
support.
* kern/i386/pc/lzo1x.S: Remove.
* kern/i386/pc/startup.S: Remove lzo support.
* util/i386/pc/grub-mkimage.c: Likewise.

15 years ago2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 19 Jul 2009 13:59:21 +0000 (13:59 +0000)]
2009-07-19  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
* fs/xfs.c (grub_xfs_dir): Likewise.
* fs/afs.c (grub_afs_dir): Likewise.
* fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
(grub_iso9660_open): Likewise.
* fs/jfs.c (grub_jfs_open): Likewise.
* fs/ext2.c (grub_ext2_dir): Likewise.
* include/grub/macho.h (grub_macho_fat_arch): Likewise.
* script/sh/lexer.c (grub_script_yylex): Likewise.

15 years ago2009-07-16 Pavel Roskin <proski@gnu.org>
proski [Thu, 16 Jul 2009 23:00:59 +0000 (23:00 +0000)]
2009-07-16  Pavel Roskin  <proski@gnu.org>

* configure.ac: Never add "-c" to CFLAGS.

15 years ago2009-07-16 Pavel Roskin <proski@gnu.org>
proski [Thu, 16 Jul 2009 22:43:58 +0000 (22:43 +0000)]
2009-07-16  Pavel Roskin  <proski@gnu.org>

* configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.

15 years ago2009-07-16 Pavel Roskin <proski@gnu.org>
proski [Thu, 16 Jul 2009 22:33:20 +0000 (22:33 +0000)]
2009-07-16  Pavel Roskin  <proski@gnu.org>

* configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
grub_cv_cc_efiemu should be used.

15 years ago2009-07-16 Pavel Roskin <proski@gnu.org>
proski [Thu, 16 Jul 2009 22:22:02 +0000 (22:22 +0000)]
2009-07-16  Pavel Roskin  <proski@gnu.org>

* configure.ac: Typo fixes.

15 years ago2009-07-16 Pavel Roskin <proski@gnu.org>
proski [Thu, 16 Jul 2009 22:14:09 +0000 (22:14 +0000)]
2009-07-16  Pavel Roskin  <proski@gnu.org>

* kern/mm.c (grub_zalloc): New function.
(grub_debug_zalloc): Likewise.
* include/grub/mm.h: Declare grub_zalloc() and
grub_debug_zalloc().
* util/misc.c (grub_zalloc): New function.
* bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
instead of grub_malloc(), remove unneeded initializations.
* bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
* commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
* commands/parttool.c (grub_cmd_parttool): Likewise.
* disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
* disk/raid5_recover.c (grub_raid5_recover): Likewise.
* disk/raid6_recover.c (grub_raid6_recover): Likewise.
* disk/usbms.c (grub_usbms_finddevs): Likewise.
* efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
* efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
(grub_cmd_efiemu_pnvram): Likewise.
* fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
* fs/iso9660.c (grub_iso9660_mount): Likewise.
(grub_iso9660_iterate_dir): Likewise.
* fs/jfs.c (grub_jfs_opendir): Likewise.
* fs/ntfs.c (list_file): Likewise.
(grub_ntfs_mount): Likewise.
* kern/disk.c (grub_disk_open): Likewise.
* kern/dl.c (grub_dl_load_core): Likewise.
* kern/elf.c (grub_elf_file): Likewise.
* kern/env.c (grub_env_context_open): Likewise.
(grub_env_set): Likewise.
(grub_env_set_data_slot): Likewise.
* kern/file.c (grub_file_open): Likewise.
* kern/fs.c (grub_fs_blocklist_open): Likewise.
* loader/i386/multiboot.c (grub_module): Likewise.
* loader/xnu.c (grub_xnu_create_key): Likewise.
(grub_xnu_create_value): Likewise.
* normal/main.c (grub_normal_add_menu_entry): Likewise.
(read_config_file): Likewise.
* normal/menu_entry.c (make_screen): Likewise.
* partmap/sun.c (sun_partition_map_iterate): Likewise.
* script/sh/lexer.c (grub_script_lexer_init): Likewise.
* script/sh/script.c (grub_script_parse): Likewise.
* video/bitmap.c (grub_video_bitmap_create): Likewise.
* video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
* video/readers/png.c (grub_png_output_byte): Likewise.
(grub_video_reader_png): Likewise.

15 years ago2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 16 Jul 2009 16:38:19 +0000 (16:38 +0000)]
2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>

Enable all targets that can be built by default

* configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
grub-mkfont and grub-fstest if they can be built

15 years agoMerge branch 'mainline' into newconf
phcoder [Thu, 16 Jul 2009 16:37:18 +0000 (16:37 +0000)]
Merge branch 'mainline' into newconf

15 years ago2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 16 Jul 2009 15:36:43 +0000 (15:36 +0000)]
2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>

Fix hang and segmentation fault in grub-emu-usb

* disk/scsi.c (grub_scsi_open): return err and not grub_errno
* util/usb.c (grub_libusb_devices): likewise
(grub_libusb_init): rename to ...
(GRUB_MOD_INIT (libusb)):...this
(grub_libusb_fini): rename to ..
(GRUB_MOD_FINI (libusb)):...this
* disk/usbms.c (grub_usbms_transfer): fix retry logic
* include/grub/disk.h (grub_raid_init): removed, it's useless
(grub_raid_fini): likewise
(grub_lvm_init): likewise
(grub_lvm_fini): likewise
* util/grub-emu.c (main): don't call grub_libusb_init, it's done
by grub_init_all

15 years ago2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 16 Jul 2009 14:53:33 +0000 (14:53 +0000)]
2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>

Fix libusb

* Makefile.in (LIBUSB): new macro
* genmk.rb (Utility/print_tail): new method
(Utility/rule): use intermediary variable #{prefix}_OBJECTS
(top level): call util.print_tail at the end.

15 years ago2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 15 Jul 2009 22:51:47 +0000 (22:51 +0000)]
2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>

Make FreeBSD accept zpool.cache

* loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
type is /boot/zfs/zpool.cache

15 years ago2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Wed, 15 Jul 2009 22:04:41 +0000 (22:04 +0000)]
2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>

Fix 64-bit efiemu

* include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
correct wrong typedef
* efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 19:45:44 +0000 (19:45 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* include/grub/disk.h (struct grub_disk_dev): Use enum for id.
* kern/disk.c (struct grub_disk_cache): Likewise.

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 19:30:34 +0000 (19:30 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* commands/probe.c (options): Typo fix.

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 15:06:12 +0000 (15:06 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
Increase to 0x5a to accommodate FAT32.  Adjust other offsets
accordingly.
Original patch by Yves Blusseau <yves.grub-devel@zetam.org>

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 15:00:26 +0000 (15:00 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/boot.S (general_error_string): Add DOS newline at
the end of "Error" to make the message more readable.

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 14:58:07 +0000 (14:58 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/boot.S (kernel_segment): Remove.
(copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
for destination.

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 14:55:24 +0000 (14:55 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* boot/i386/pc/boot.S (boot_version): Remove.
* include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
Remove.

15 years ago2009-07-15 Pavel Roskin <proski@gnu.org>
proski [Wed, 15 Jul 2009 14:54:18 +0000 (14:54 +0000)]
2009-07-15  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/pc/boot.h: Sort all offsets.
(GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
(GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
* boot/i386/pc/boot.S: Assert location of every offset listed in
include/grub/i386/pc/boot.h.

15 years ago2009-07-13 Pavel Roskin <proski@gnu.org>
proski [Mon, 13 Jul 2009 23:57:11 +0000 (23:57 +0000)]
2009-07-13  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/coreboot/machine.h: Rename
GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
* loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.

15 years ago2009-07-13 Pavel Roskin <proski@gnu.org>
proski [Mon, 13 Jul 2009 23:04:31 +0000 (23:04 +0000)]
2009-07-13  Pavel Roskin  <proski@gnu.org>

* kern/dl.c: Force native word size to suppress warnings when
compiling grub-emu.

15 years ago2009-07-13 Pavel Roskin <proski@gnu.org>
proski [Mon, 13 Jul 2009 22:21:49 +0000 (22:21 +0000)]
2009-07-13  Pavel Roskin  <proski@gnu.org>

* kern/device.c (grub_device_iterate): Change struct part_ent to
hold the name, not a pointer to it.  Use one grub_malloc() per
partition, not two.  Free partition_name if grub_malloc() fails.
Set ents to NULL only before grub_partition_iterate() is called.

15 years ago2009-07-11 Bean <bean123ch@gmail.com>
bean [Sat, 11 Jul 2009 03:59:15 +0000 (03:59 +0000)]
2009-07-11  Bean  <bean123ch@gmail.com>

* kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
childname.

15 years ago2009-07-10 Bean <bean123ch@gmail.com>
robertmh [Fri, 10 Jul 2009 20:19:08 +0000 (20:19 +0000)]
2009-07-10  Bean  <bean123ch@gmail.com>
2009-07-10  Robert Millan  <rmh.grub@aybabtu.com>

        * kern/ieee1275/openfw.c (grub_children_iterate)
        (grub_devalias_iterate): Fix size evaluation for property or path
        strings, which was broken since r2132.

15 years ago2009-07-07 Pavel Roskin <proski@gnu.org>
proski [Tue, 7 Jul 2009 20:13:39 +0000 (20:13 +0000)]
2009-07-07  Pavel Roskin  <proski@gnu.org>

* commands/search.c (search_file): Merge into ...
(search_fs): ... this.  Accept search type as argument.
(grub_cmd_search): Pass search type to search_fs().

15 years ago2009-07-07 Pavel Roskin <proski@gnu.org>
proski [Tue, 7 Jul 2009 20:03:03 +0000 (20:03 +0000)]
2009-07-07  Pavel Roskin  <proski@gnu.org>

* include/grub/util/console.h: New file.
* util/console.c: Use it instead of grub/machine/console.h.
* util/grub-emu.c: Likewise.

15 years ago2009-07-07 Pavel Roskin <proski@gnu.org>
proski [Tue, 7 Jul 2009 19:54:19 +0000 (19:54 +0000)]
2009-07-07  Pavel Roskin  <proski@gnu.org>

* lib/arg.c (find_long_option): Remove.
(find_long): Add `len' argument, make `s' const char *.
(grub_arg_parse): Parse long options in place, not in a
temporary buffer.

15 years ago2009-07-06 Pavel Roskin <proski@gnu.org>
proski [Tue, 7 Jul 2009 03:05:01 +0000 (03:05 +0000)]
2009-07-06  Pavel Roskin  <proski@gnu.org>

* commands/search.c (search_fs): Fix potential NULL pointer
dereference.

15 years ago2009-07-06 Pavel Roskin <proski@gnu.org>
proski [Mon, 6 Jul 2009 20:13:06 +0000 (20:13 +0000)]
2009-07-06  Pavel Roskin  <proski@gnu.org>

* commands/search.c (search_fs): Replace QUID macro with quid_fn
function pointer.

15 years ago2009-07-06 Daniel Mierswa <impulze@impulze.org>
proski [Mon, 6 Jul 2009 20:07:58 +0000 (20:07 +0000)]
2009-07-06  Daniel Mierswa  <impulze@impulze.org>

* commands/search.c (search_fs): Use grub_strcasecmp() for UUID
comparison.

15 years ago2009-07-05 Pavel Roskin <proski@gnu.org>
proski [Mon, 6 Jul 2009 02:10:57 +0000 (02:10 +0000)]
2009-07-05  Pavel Roskin  <proski@gnu.org>

* include/grub/i386/linux.h (struct linux_kernel_params):
Restore padding3, it's still needed.

15 years ago2009-07-05 Pavel Roskin <proski@gnu.org>
proski [Sun, 5 Jul 2009 22:51:05 +0000 (22:51 +0000)]
2009-07-05  Pavel Roskin  <proski@gnu.org>

* util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
FreeBSD.
* util/osdetect.lua: Likewise.

15 years ago2009-07-05 Bean <bean123ch@gmail.com>
bean [Sun, 5 Jul 2009 09:59:27 +0000 (09:59 +0000)]
2009-07-05  Bean  <bean123ch@gmail.com>

* conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.

* script/lua/grub_lib.c (grub_lua_run): Check input parameter.
(grub_lua_getenv): Likewise.
(grub_lua_setenv): Likewise.
(save_errno): New function.
(push_result): Likewise.
(grub_lua_enum_device): Likewise.
(grub_lua_enum_file): Likewise.
(grub_lua_file_open): Likewise.
(grub_lua_file_close): Likewise.
(grub_lua_file_seek): Likewise.
(grub_lua_file_read): Likewise.
(grub_lua_file_getline): Likewise.
(grub_lua_file_getsize): Likewise.
(grub_lua_file_getpos): Likewise.
(grub_lua_file_eof): Likewise.
(grub_lua_file_exist): Likewise.
(grub_lua_add_menu): Likewise.

* script/lua/grub_lua.h (isupper): New inline function.
(islower): Likewise.
(ispunct): Likewise.
(isxdigit): Likewise.
(strcspn): Change to normal function.
(strpbkr): New function declaration.
(memchr): Likewise.

* script/lua/grub_main.c (scan_str): New function.
(strcspn): Likewise.
(strpbrk): Likewise.
(memchr): Likewise.

* script/lua/linit.c (lualibs): Enable the string library.

* util/osdetect.lua: New file.

15 years ago2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 4 Jul 2009 16:29:01 +0000 (16:29 +0000)]
2009-07-04  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/linux.h (struct linux_kernel_params): Add
        `capabilities' member.

15 years ago2009-07-02 Pavel Roskin <proski@gnu.org>
proski [Thu, 2 Jul 2009 04:12:23 +0000 (04:12 +0000)]
2009-07-02  Pavel Roskin  <proski@gnu.org>

* genparttoollist.sh: Add missing newline at the end.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Thu, 2 Jul 2009 00:21:07 +0000 (00:21 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* kern/x86_64/efi/callwrap.S: Add missing newline at the end.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 23:58:30 +0000 (23:58 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* util/hostdisk.c (open_device): Remove `const' from
`sysctl_size', as sysctlbyname() can change it (in this case it
doesn't actually happen).

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 23:38:40 +0000 (23:38 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
using signed long int constants.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 23:07:17 +0000 (23:07 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
constant to avoid a warning on FreeBSD.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 22:56:51 +0000 (22:56 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* util/hostdisk.c (device_is_wholedisk): Compile only on systems
where it's needed.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 22:48:38 +0000 (22:48 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* Makefile.in: Install include/grub/machine symlink.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 22:47:28 +0000 (22:47 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* Makefile.in: When installing symlinks, use "cp -fR", which
works on FreeBSD and MacOSX.
From Yves Blusseau <cl7m42e02@sneakemail.com>

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 16:00:34 +0000 (16:00 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* kern/dl.c (grub_dl_resolve_symbol): Make static.
* include/grub/dl.h: Remove grub_dl_resolve_symbol().

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 15:59:05 +0000 (15:59 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* util/misc.c: Move grub_reboot() and grub_halt() ...
* util/grub-emu.c: ... here.  Make main_env static.
* include/grub/util/misc.h: Remove main_env.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 15:39:21 +0000 (15:39 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* kern/mm.c: Use correct format to print size_t.

15 years ago2009-07-01 Pavel Roskin <proski@gnu.org>
proski [Wed, 1 Jul 2009 14:49:22 +0000 (14:49 +0000)]
2009-07-01  Pavel Roskin  <proski@gnu.org>

* include/grub/elf.h: Define Elf_Sword and Elf_Xword.
* kern/i386/dl.c: Use ELF symbols without "32" or "64".
* kern/powerpc/dl.c: Likewise.
* kern/sparc64/dl.c: Likewise.
* kern/x86_64/dl.c: Likewise.

15 years ago2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Wed, 1 Jul 2009 13:04:38 +0000 (13:04 +0000)]
2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>

        Fix grub-emu build on sparc64-ieee1275.

        * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Syncronize with ...
        * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.

15 years ago2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Wed, 1 Jul 2009 13:01:33 +0000 (13:01 +0000)]
2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>

        * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
        (grub_reboot, grub_halt): New functions.

        * util/i386/pc/misc.c: Delete.  Update all users.
        * util/sparc64/ieee1275/misc.c: Likewise.
        * util/powerpc/ieee1275/misc.c: Likewise.

15 years ago2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Wed, 1 Jul 2009 12:59:47 +0000 (12:59 +0000)]
2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386.rmk (setjmp_mod_SOURCES)
        (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
        * conf/common.rmk (setjmp_mod_SOURCES)
        (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
        to use $(target_cpu).
        * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
        (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
        * conf/powerpc-ieee1275.rmk: Likewise.
        * conf/sparc64-ieee1275.rmk: Likewise.

        * conf/i386-pc.rmk (kernel_img_SOURCES): Use
        $(target_cpu) for kern/$(target_cpu)/dl.c.
        * conf/i386-efi.rmk: Likewise.
        * conf/i386-ieee1275.rmk: Likewise.
        * conf/x86_64-efi.rmk: Likewise.
        * conf/i386-coreboot.rmk: Likewise.
        * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
        $(target_cpu) for kern/$(target_cpu)/dl.c and for
        kern/$(target_cpu)/cache.S.
        * conf/sparc64-ieee1275.rmk: Likewise.

15 years ago2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Wed, 1 Jul 2009 01:04:12 +0000 (01:04 +0000)]
2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
        type to `grub_uint8_t', and adjust `padding9' accordingly.

15 years ago2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 29 Jun 2009 17:19:35 +0000 (17:19 +0000)]
2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.

        * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
        assembly in final jump, using register constraints.

        (grub_linux_boot): For text mode, initialize `have_vga' using
        GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).

        Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
        right before the final jump.

        Set `video_mode' to 0x3.

        Document initialization of `video_page', `video_mode' and
        `video_ega_bx'.

15 years ago2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 29 Jun 2009 15:55:42 +0000 (15:55 +0000)]
2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>

        * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
        assembly in final jump, using register constraints.

15 years ago2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 29 Jun 2009 12:20:56 +0000 (12:20 +0000)]
2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
        * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
        and set GRUB_LINUX_FLAG_QUIET appropiately.

15 years ago2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 29 Jun 2009 12:19:08 +0000 (12:19 +0000)]
2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>

        Fix build on Debian / sparc.

        * configure.ac: Recognize `sparc' target_cpu (as sparc64).

15 years ago2009-06-28 Pavel Roskin <proski@gnu.org>
proski [Mon, 29 Jun 2009 03:37:42 +0000 (03:37 +0000)]
2009-06-28  Pavel Roskin  <proski@gnu.org>

* kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
fix a warning.

15 years ago2009-06-28 Pavel Roskin <proski@gnu.org>
proski [Mon, 29 Jun 2009 02:59:53 +0000 (02:59 +0000)]
2009-06-28  Pavel Roskin  <proski@gnu.org>

* util/grub.d/10_linux.in: Match SUSE style initrd names.

15 years ago2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 27 Jun 2009 17:37:07 +0000 (17:37 +0000)]
2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>

        * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
        `err'.

15 years ago2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 27 Jun 2009 12:21:18 +0000 (12:21 +0000)]
2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>

        Revert r2338.

        * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
        file can't be opened.  grub_file_open() is already supposed to set
        grub_errno / grub_errmsg appropiately.
        * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.

15 years ago2009-06-27 Pavel Roskin <proski@gnu.org>
robertmh [Sat, 27 Jun 2009 11:18:10 +0000 (11:18 +0000)]
2009-06-27  Pavel Roskin  <proski@gnu.org>
2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/dl.h: Include grub/elf.h.
        (struct grub_dl): Add symtab field.
        * kern/dl.c [GRUB_MACHINE_QEMU]: Define
        GRUB_MODULES_MACHINE_READONLY.
        (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
        of the header for read-only modules.
        (grub_dl_unload): Free mod->symtab for read-only modules.
        * kern/i386/dl.c: Use mod->symtab.
        * kern/powerpc/dl.c: Likewise.
        * kern/sparc64/dl.c: Likewise.
        * kern/x86_64/dl.c: Likewise.

        * conf/i386-qemu.rmk: New file.
        * kern/i386/qemu/startup.S: Likewise.
        * kern/i386/qemu/mmap.c: Likewise.
        * boot/i386/qemu/boot.S: Likewise.
        * include/grub/i386/qemu/time.h: Likewise.
        * include/grub/i386/qemu/serial.h: Likewise.
        * include/grub/i386/qemu/kernel.h: Likewise.
        * include/grub/i386/qemu/console.h: Likewise.
        * include/grub/i386/qemu/boot.h: Likewise.
        * include/grub/i386/qemu/init.h: Likewise.
        * include/grub/i386/qemu/machine.h: Likewise.
        * include/grub/i386/qemu/loader.h: Likewise.
        * include/grub/i386/qemu/memory.h: Likewise.

        * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
        (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
        [qemu] (pkglib_IMAGES): Add `boot.img'.
        [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
        [qemu] (boot_img_FORMAT): New variables.
        [qemu] (bin_UTILITIES): Add `grub-mkimage'.
        [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
        [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
        [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
        [qemu] (kernel_img_FORMAT): New variables.

        * configure.ac: Recognise `i386-qemu'.

        * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
        (for no compression).
        [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
        a valid i386 ROM image.  Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
        `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
        `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
        ifdefs).

15 years ago2009-06-27 Pavel Roskin <proski@gnu.org>
proski [Sat, 27 Jun 2009 06:10:33 +0000 (06:10 +0000)]
2009-06-27  Pavel Roskin  <proski@gnu.org>

* efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
read.
* efiemu/prepare32.c: Likewise.
* efiemu/prepare64.c: Likewise.

15 years ago2009-06-26 Pavel Roskin <proski@gnu.org>
proski [Sat, 27 Jun 2009 03:01:42 +0000 (03:01 +0000)]
2009-06-26  Pavel Roskin  <proski@gnu.org>

* include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
* include/grub/elf.h: Define symbols without "32" or "64" based
on GRUB_TARGET_WORDSIZE.
* include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
* efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
ELF definitions.
* efiemu/loadcore64.c: Likewise.
* loader/i386/bsd32.c: Likewise.
* loader/i386/bsd64.c: Likewise.
* kern/dl.c: Remove own ELF definitions.
* util/i386/efi/grub-mkimage.c: Likewise.

15 years ago2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 22:48:20 +0000 (22:48 +0000)]
2009-06-23  Robert Millan  <rmh.grub@aybabtu.com>

        * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
        segment 0x0 unconditionally, because the reference generated by
        GAS is an absolute address.

15 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 20:40:28 +0000 (20:40 +0000)]
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
        [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.

15 years ago (search_file): Improve error message.
robertmh [Mon, 22 Jun 2009 20:19:13 +0000 (20:19 +0000)]
    (search_file): Improve error message.
        (GRUB_MOD_INIT(search)): Add missing `-n' to help output.

15 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 19:44:38 +0000 (19:44 +0000)]
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
        indexes.  Check for -f explicitly.

15 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 19:23:22 +0000 (19:23 +0000)]
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
        (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this.  Update all users.

15 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 18:04:37 +0000 (18:04 +0000)]
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
        * conf/i386-ieee1275.rmk: Likewise.
        * conf/i386-coreboot.rmk: Likewise.

        * kern/i386/pc/startup.S (grub_stop): Remove function.
        * kern/i386/ieee1275/startup.S: Likewise.
        * kern/i386/coreboot/startup.S: Likewise.
        * kern/i386/misc.S (grub_stop): New function.

15 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 10:42:37 +0000 (10:42 +0000)]
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * kern/i386/pc/startup.S (real_to_prot): Move from here ...
        * kern/i386/realmode.S (real_to_prot): ... to here.

15 years ago2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Mon, 22 Jun 2009 10:27:26 +0000 (10:27 +0000)]
2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>

        * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
        with `kernel.img'.
        (kernel_elf_SOURCES): Rename to ...
        (kernel_img_SOURCES): ... this.
        (kernel_elf_HEADERS): Rename to ...
        (kernel_img_HEADERS): ... this.  Update all users.
        (kernel_elf_ASFLAGS): Rename to ...
        (kernel_img_ASFLAGS): ... this.
        (kernel_elf_CFLAGS): Rename to ...
        (kernel_img_CFLAGS): ... this.
        (kernel_elf_LDFLAGS): Rename to ...
        (kernel_img_LDFLAGS): ... this.
        * conf/i386-coreboot.rmk: Likewise.
        * conf/powerpc-ieee1275.rmk: Likewise.

        * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
        with "kernel.img".

15 years ago2009-06-21 Pavel Roskin <proski@gnu.org>
proski [Sun, 21 Jun 2009 23:55:23 +0000 (23:55 +0000)]
2009-06-21  Pavel Roskin  <proski@gnu.org>

* loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
to match nested functions.
* loader/sparc64/ieee1275/linux.c: Likewise.

15 years ago2009-06-21 Pavel Roskin <proski@gnu.org>
proski [Sun, 21 Jun 2009 23:53:30 +0000 (23:53 +0000)]
2009-06-21  Pavel Roskin  <proski@gnu.org>

* conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.

15 years ago2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sun, 21 Jun 2009 20:10:44 +0000 (20:10 +0000)]
2009-06-21  Robert Millan  <rmh.grub@aybabtu.com>

        * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
        all i386 platforms.

15 years ago2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sun, 21 Jun 2009 17:24:30 +0000 (17:24 +0000)]
2009-06-21  Robert Millan  <rmh.grub@aybabtu.com>

        Fix asm file handling on ELF, and remove workarounds.

        * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
        and -DASM_FILE=1 appropiately (copied from `class Images' stanza).
        * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
        * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.

15 years ago2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sun, 21 Jun 2009 15:48:10 +0000 (15:48 +0000)]
2009-06-21  Vladimir Serbinenko  <phcoder@gmail.com>

Load BSD ELF modules

* conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
and loader/i386/bsd64.c
* include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
(FREEBSD_MODTYPE_ELF_MODULE): New definition
(FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
(grub_freebsd_load_elfmodule32): New declaration
(grub_freebsd_load_elfmoduleobj64): Likewise
(grub_freebsd_load_elf_meta32): Likewise
(grub_freebsd_load_elf_meta64): Likewise
(grub_freebsd_add_meta): Likewise
(grub_freebsd_add_meta_module): Likewise
* loader/i386/bsd.c (grub_freebsd_add_meta): Make global
(grub_freebsd_add_meta_module): Likewise and move module-specific
parts to grub_cmd_freebsd and grub_cmd_freebsd_module
(grub_cmd_freebsd): Add elf-kernel specific parts
based on grub_freebsd_add_meta_module
(grub_cmd_freebsd_module): Add type parsing moved from
grub_freebsd_add_meta_module
(grub_cmd_freebsd_module_elf): New function
(cmd_freebsd_module_elf): New variable
(GRUB_MOD_INIT): Register freebsd_module_elf
* loader/i386/bsd32.c: New file
* loader/i386/bsd64.c: Likewise
* loader/i386/bsdXX.c: Likewise
* kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
(grub_elf64_load): Likewise
* include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
All users updated
(grub_elf64_load_hook_t): Likewise

15 years ago2009-06-21 Colin Watson <cjwatson@ubuntu.com>
robertmh [Sun, 21 Jun 2009 11:21:59 +0000 (11:21 +0000)]
2009-06-21  Colin Watson  <cjwatson@ubuntu.com>

        * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
        variable.
        * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
        don't write a menu entry for recovery mode.

15 years ago2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 20 Jun 2009 14:32:53 +0000 (14:32 +0000)]
2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>

        * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
        after it's no longer needed.

15 years ago2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
robertmh [Sat, 20 Jun 2009 14:11:45 +0000 (14:11 +0000)]
2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>

        * include/grub/i386/loader.h (grub_linux_prot_size)
        (grub_linux_tmp_addr, grub_linux_real_addr)
        (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
        GRUB_MACHINE_PCBIOS.
        * util/i386/pc/grub-mkimage.c (compress_kernel): Move
        common grub_util_info() call to ...
        (generate_image): ... here.
        Fix use of uninitialized memory, comparison of signed with
        unsigned integers and memory leak.
        Remove bogus module address message.

15 years ago2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Sat, 20 Jun 2009 03:06:50 +0000 (03:06 +0000)]
2009-06-20  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
grub_raid_register
* disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise

15 years ago2009-06-19 Pavel Roskin <proski@gnu.org>
proski [Fri, 19 Jun 2009 21:33:07 +0000 (21:33 +0000)]
2009-06-19  Pavel Roskin  <proski@gnu.org>

* configure.ac: Remove stray AC_MSG_CHECKING.

15 years agoFix a typo, spacing
proski [Fri, 19 Jun 2009 20:35:38 +0000 (20:35 +0000)]
Fix a typo, spacing

15 years ago2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Fri, 19 Jun 2009 17:38:27 +0000 (17:38 +0000)]
2009-06-19  Vladimir Serbinenko  <phcoder@gmail.com>

* disk/scsi.c (grub_scsi_open): use continue instead of big if

15 years ago2009-06-18 Pavel Roskin <proski@gnu.org>
proski [Thu, 18 Jun 2009 20:00:34 +0000 (20:00 +0000)]
2009-06-18  Pavel Roskin  <proski@gnu.org>

* conf/common.rmk: Add fs_file.mod.
* disk/fs_file.c: New file.
* include/grub/disk.h (enum grub_disk_dev_id): Add
GRUB_DISK_DEVICE_FILE_ID.

15 years ago2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
phcoder [Thu, 18 Jun 2009 14:25:51 +0000 (14:25 +0000)]
2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>

Fix build with Apple's toolchain. Part 2

* aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
a fake start