]> git.proxmox.com Git - grub2.git/log
grub2.git
14 years ago2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Mon, 23 Aug 2010 20:41:14 +0000 (22:41 +0200)]
2010-08-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* util/grub.d/30_os-prober.in: Fix conversion from grub-probe
--target=drive output to Mach device name.

14 years agoautomake based build system for grub
BVK Chaitanya [Mon, 23 Aug 2010 17:56:24 +0000 (23:26 +0530)]
automake based build system for grub

14 years ago Replace --enable-grub-emu-modules with grub-emu-lite.
BVK Chaitanya [Mon, 23 Aug 2010 17:36:29 +0000 (23:06 +0530)]
Replace --enable-grub-emu-modules with grub-emu-lite.

* kern/emu/cache.S: New file.  Wrapper for $target_cpu specific
cache.S.

* include/grub/emu/misc.h (grub_emu_init): New prototype.
* kern/emu/full.c: New file. For grub-emu specific initialization.
* kern/emu/lite.c: New file. For grub-emu-lite initialization.
* kern/emu/main.c: Call initialization function grub_emu_init.

* Makefile.in: Include grub-emu-lite in install.
* commands/parttool.c: Use grub_no_autoload to differentiate
between grub-emu and grub-emu-lite.
* include/grub/misc.h: New variable grub_no_autoload.

* conf/any-emu.rmk: New rules for grub-emu-lite.
* configure.ac: Remove --enable-grub-emu-modules.
* genmk.rb: Cleanup unnecessary rules.
* include/grub/dl.h: Remove GRUB_NO_MODULES macro.

* normal/main.c: Don't load list files on grub-emu-lite.
* util/misc.c (grub_arch_sync_caches): Removed.

14 years agomerge with mainline
BVK Chaitanya [Mon, 23 Aug 2010 16:20:38 +0000 (21:50 +0530)]
merge with mainline

14 years agofix x86_64-efi build
BVK Chaitanya [Mon, 23 Aug 2010 15:53:39 +0000 (21:23 +0530)]
fix x86_64-efi build

14 years ago* kern/mips/startup.S (grub_prefix): Update comment to refer to
Colin Watson [Mon, 23 Aug 2010 11:55:47 +0000 (12:55 +0100)]
* kern/mips/startup.S (grub_prefix): Update comment to refer to
grub-mkimage rather than grub-mkelfimage.
* kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.

14 years agoforce bash for autogen.sh
BVK Chaitanya [Mon, 23 Aug 2010 08:37:29 +0000 (14:07 +0530)]
force bash for autogen.sh

14 years agofix exit 1 in autogen.sh
BVK Chaitanya [Mon, 23 Aug 2010 08:02:59 +0000 (13:32 +0530)]
fix exit 1 in autogen.sh

14 years agofinal touches
BVK Chaitanya [Mon, 23 Aug 2010 07:53:56 +0000 (13:23 +0530)]
final touches

14 years agofix emu build
BVK Chaitanya [Mon, 23 Aug 2010 05:01:08 +0000 (10:31 +0530)]
fix emu build

14 years agomerge with mainline
BVK Chaitanya [Sun, 22 Aug 2010 15:30:22 +0000 (21:00 +0530)]
merge with mainline

14 years ago * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 15:10:39 +0000 (17:10 +0200)]
* term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
a key after CapsLock or NumLock. It's just a qemu bug.

14 years agoremove wrong extension
BVK Chaitanya [Sat, 21 Aug 2010 15:53:42 +0000 (21:23 +0530)]
remove wrong extension

14 years agopicks 10_${host_kernel} script
BVK Chaitanya [Sat, 21 Aug 2010 15:33:26 +0000 (21:03 +0530)]
picks 10_${host_kernel} script

14 years agofix x86_64_efi build
BVK Chaitanya [Sat, 21 Aug 2010 11:52:19 +0000 (17:22 +0530)]
fix x86_64_efi build

14 years agobuild fixes for mips and ieee1275 platforms
BVK Chaitanya [Sat, 21 Aug 2010 11:41:40 +0000 (17:11 +0530)]
build fixes for mips and ieee1275 platforms

14 years ago*_sources now collect all values of all its groups
BVK Chaitanya [Sat, 21 Aug 2010 08:57:31 +0000 (14:27 +0530)]
*_sources now collect all values of all its groups

14 years agoreview comments
BVK Chaitanya [Sat, 21 Aug 2010 04:18:27 +0000 (09:48 +0530)]
review comments

14 years ago * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 00:09:16 +0000 (02:09 +0200)]
* include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
needed by libusb wrapper.

14 years ago2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
Samuel Thibault [Fri, 20 Aug 2010 23:36:02 +0000 (01:36 +0200)]
2010-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>

* docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.

14 years ago * loader/multiboot.c (grub_cmd_module): Don't unzip module if
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 22:57:12 +0000 (00:57 +0200)]
* loader/multiboot.c (grub_cmd_module): Don't unzip module if
--nounzip is passed.

14 years ago USB hotunplugging and USB serial support.
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 19:34:52 +0000 (21:34 +0200)]
USB hotunplugging and USB serial support.

* bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
* bus/usb/uhci.c (grub_free_queue): Compute *actual.
(grub_uhci_transfer): Respect timeout and set *actual.
* bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
non-standard length.
(grub_usb_device_attach): Autoload modules.
(GRUB_MOD_INIT): Set grub_term_poll_usb.
(GRUB_MOD_FINI): Unset grub_term_poll_usb.
* bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
users updated.
(grub_usb_add_hub): Fill nports and children.
(attach_root_port): Receive hub instead of controller.
All users updated. Fill hub->devices.
(grub_usb_root_hub): Allocate hub->devices.
(detach_device): New function.
(poll_nonroot_hub): Fill children and detach devices.
* bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
actual arguments. All users updated.
(grub_usb_bulk_read_extended): New function.
* bus/usb/serial/common.c: New file.
* bus/usb/serial/ftdi.c: Likewise.
* bus/usb/serial/pl2303.c: Likewise.
* commands/terminal.c (handle_command): Support wildcard.
* commands/usbtest.c: Output "Unknown" instead of empty string.
* conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
(usbserial_common_mod_SOURCES): New variable.
(usbserial_common_mod_CFLAGS): Likewise.
(usbserial_common_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add usbserial_pl2303.mod.
(usbserial_pl2303_mod_SOURCES): New variable.
(usbserial_pl2303_mod_CFLAGS): Likewise.
(usbserial_pl2303_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add usbserial_ftdi.mod.
(usbserial_ftdi_mod_SOURCES): New variable.
(usbserial_ftdi_mod_CFLAGS): Likewise.
(usbserial_ftdi_mod_LDFLAGS): Likewise.
(pkglib_MODULES): Add serial.mod.
(serial_mod_SOURCES): New variable.
(serial_mod_CFLAGS): Likewise.
(serial_mod_LDFLAGS): Likewise.
* conf/i386-pc.rmk: Likewise.
* conf/mips-yeeloong.rmk: Likewise.
* conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
* disk/usbms.c (first_available_slot): New variable.
(grub_usbms_attach): Don't reuse free slots due to potential cache
problems.
* include/grub/serial.h: Moved to ..
* include/grub/ns8250.h: ...this.
* include/grub/serial.h: New file.
* include/grub/term.h (grub_term_poll_usb): New variable.
* include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
readkey. All users updated.
(grub_terminfo_output_state): Pass term to put.
* include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
(grub_usb_controller_dev): Add timeout and actual arguments to
transfer. All users updated.
(grub_usb_interface): New field detach_data.
(grub_usb_device): New fields children and nports.
(grub_usb_ep_type_t): New type.
(grub_usb_get_ep_type): New function.
(grub_usb_bulk_read_extended): Likewise.
* include/grub/usbdesc.h (grub_usb_desc): New type.
* include/grub/usbserial.h: New file.
* include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
* kern/term.c (grub_term_poll_usb): New variable.
(grub_getkey): Call grub_term_poll_usb if set.
(grub_checkkey): Likewise.
(grub_getkeystatus): Likewise.
* term/serial.c: Moved controller-specific parts to ...
* term/ns8250.c: ... here.
* term/serial.c: Mostly rewritten.
* term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
according to spec.

14 years agoExport serial-related functions from kernel
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 19:31:33 +0000 (21:31 +0200)]
Export serial-related functions from kernel

14 years agoAdd ChangeLog
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 19:26:27 +0000 (21:26 +0200)]
Add ChangeLog

14 years agoEnable usbserial on yeeloong
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 19:26:04 +0000 (21:26 +0200)]
Enable usbserial on yeeloong

14 years agoRemove unused buffer0
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 19:25:20 +0000 (21:25 +0200)]
Remove unused buffer0

14 years agoadd USE_ASCII_FAILBACK define
BVK Chaitanya [Fri, 20 Aug 2010 19:20:12 +0000 (00:50 +0530)]
add USE_ASCII_FAILBACK define

14 years agomerge with mainline
BVK Chaitanya [Fri, 20 Aug 2010 19:19:29 +0000 (00:49 +0530)]
merge with mainline

14 years agoMake HID found dprintf instead of printf
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 18:26:57 +0000 (20:26 +0200)]
Make HID found dprintf instead of printf

14 years agoMerge mainline into usb
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 18:12:26 +0000 (20:12 +0200)]
Merge mainline into usb

14 years agoAcount for transfer->size being size-1 when counting *actual
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 17:54:40 +0000 (19:54 +0200)]
Acount for transfer->size being size-1 when counting *actual

14 years agoSupport hot unplugging
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 17:34:29 +0000 (19:34 +0200)]
Support hot unplugging

14 years agoFix OHCI error message
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 17:33:44 +0000 (19:33 +0200)]
Fix OHCI error message

14 years agofix emu build on netbsd
BVK Chaitanya [Fri, 20 Aug 2010 17:04:19 +0000 (22:34 +0530)]
fix emu build on netbsd

14 years agofix distcheck from source tree
BVK Chaitanya [Fri, 20 Aug 2010 15:31:13 +0000 (21:01 +0530)]
fix distcheck from source tree

14 years agoCorrect *actual counting in OHCI
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 14:56:03 +0000 (16:56 +0200)]
Correct *actual counting in OHCI

14 years agoDon't update status on 0 message
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 14:49:24 +0000 (16:49 +0200)]
Don't update status on 0 message

14 years ago2010-08-20 Robert Millan <rmh@gnu.org>
Robert Millan [Fri, 20 Aug 2010 14:36:07 +0000 (16:36 +0200)]
2010-08-20  Robert Millan  <rmh@gnu.org>

Make kFreeBSD code more generic to support ext2fs as root, ufs as
a separate module and maybe other interesting combinations.

* util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
(kfreebsd_entry): Use load_kfreebsd_module() to load modules.
(kfreebsd_entry): Add generic filesystem module load routine.
Map GRUB `ext2' to kFreeBSD `ext2fs'.

14 years agoScan descriptor rather than elying on hardcoded endpoint number
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 14:34:34 +0000 (16:34 +0200)]
Scan descriptor rather than elying on hardcoded endpoint number

14 years agofix distcheck
BVK Chaitanya [Fri, 20 Aug 2010 13:17:22 +0000 (18:47 +0530)]
fix distcheck

14 years agogenerate gcry rules from import_gcry
BVK Chaitanya [Fri, 20 Aug 2010 12:51:31 +0000 (18:21 +0530)]
generate gcry rules from import_gcry

14 years agoUse GetReport only at initialisation as specified in the USBHID spec
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 12:36:29 +0000 (14:36 +0200)]
Use GetReport only at initialisation as specified in the USBHID spec

14 years agoFix control msg type
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 10:22:23 +0000 (12:22 +0200)]
Fix control msg type

14 years agofix COND_APPLE_CC definition
BVK Chaitanya [Fri, 20 Aug 2010 07:30:11 +0000 (13:00 +0530)]
fix COND_APPLE_CC definition

14 years agobetter fix for setjmp module
BVK Chaitanya [Fri, 20 Aug 2010 06:09:47 +0000 (11:39 +0530)]
better fix for setjmp module

14 years agoupdate .bzrignore
BVK Chaitanya [Fri, 20 Aug 2010 05:43:37 +0000 (11:13 +0530)]
update .bzrignore

14 years agominor fixes
BVK Chaitanya [Fri, 20 Aug 2010 05:40:42 +0000 (11:10 +0530)]
minor fixes

14 years agoadded conf/Makefile.common and conf/Makefile.extra-dist
BVK Chaitanya [Fri, 20 Aug 2010 04:44:29 +0000 (10:14 +0530)]
added conf/Makefile.common and conf/Makefile.extra-dist

14 years ago* commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
Colin Watson [Thu, 19 Aug 2010 23:15:23 +0000 (00:15 +0100)]
* commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
"numcenter" (I misunderstood the purpose of this entry).
* docs/grub.texi (sendkey): Likewise.

14 years ago* commands/i386/pc/sendkey.c (options): Remove "keep" from all
Colin Watson [Thu, 19 Aug 2010 23:05:14 +0000 (00:05 +0100)]
* commands/i386/pc/sendkey.c (options): Remove "keep" from all
status flag options; simply omitting the option is equivalent and
simpler.  Rename "wait" to "pause".  Rename "sysreq" to "sysrq".
(keysym_table): Rename "num5numlock" to "numlock".
(grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
can uniformly say that only the last of multiple `sendkey'
invocations has any effect.
* docs/grub.texi (sendkey): New section.

14 years ago* commands/i386/pc/sendkey.c (options): Fix three typos.
Colin Watson [Thu, 19 Aug 2010 20:53:50 +0000 (21:53 +0100)]
* commands/i386/pc/sendkey.c (options): Fix three typos.

14 years ago Implement sendkey support.
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 19:03:14 +0000 (21:03 +0200)]
Implement sendkey support.

* commands/i386/pc/sendkey.c: New file.
* conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
(sendkey_mod_SOURCES): New variable.
(sendkey_mod_CFLAGS): Likewise.
(sendkey_mod_LDFLAGS): Likewise.

14 years agominor cleanups
BVK Chaitanya [Thu, 19 Aug 2010 12:20:05 +0000 (17:50 +0530)]
minor cleanups

14 years agomerge with mainline
BVK Chaitanya [Thu, 19 Aug 2010 11:24:00 +0000 (16:54 +0530)]
merge with mainline

14 years agofix example_unit_test build
BVK Chaitanya [Thu, 19 Aug 2010 10:17:38 +0000 (15:47 +0530)]
fix example_unit_test build

14 years agofixed grub-emu build
BVK Chaitanya [Wed, 18 Aug 2010 14:55:16 +0000 (20:25 +0530)]
fixed grub-emu build

14 years agofixed distcheck
BVK Chaitanya [Wed, 18 Aug 2010 11:23:11 +0000 (16:53 +0530)]
fixed distcheck

14 years ago* configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
Colin Watson [Wed, 18 Aug 2010 10:15:08 +0000 (11:15 +0100)]
* configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
fix warnings from Autoconf.

14 years ago* acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
Colin Watson [Wed, 18 Aug 2010 10:08:00 +0000 (11:08 +0100)]
* acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
to avoid false positives with some assemblers that output things
like "someprefix_func" as part of their output.

14 years agodistcheck almost done
BVK Chaitanya [Wed, 18 Aug 2010 06:27:51 +0000 (11:57 +0530)]
distcheck almost done

14 years agorm grub-core/video/emu.moved
BVK Chaitanya [Tue, 17 Aug 2010 14:16:13 +0000 (19:46 +0530)]
rm grub-core/video/emu.moved

14 years agorm grub-core/configure.ac
BVK Chaitanya [Tue, 17 Aug 2010 14:13:37 +0000 (19:43 +0530)]
rm grub-core/configure.ac

14 years agomoved configure.common back to configure.ac
BVK Chaitanya [Tue, 17 Aug 2010 14:11:43 +0000 (19:41 +0530)]
moved configure.common back to configure.ac

14 years agoadd po/Makefile.am
BVK Chaitanya [Tue, 17 Aug 2010 13:53:50 +0000 (19:23 +0530)]
add po/Makefile.am

14 years agomove grub-core/po back
BVK Chaitanya [Tue, 17 Aug 2010 13:53:26 +0000 (19:23 +0530)]
move grub-core/po back

14 years agoremove Makefile.kernel and Makefile.vars
BVK Chaitanya [Tue, 17 Aug 2010 13:47:57 +0000 (19:17 +0530)]
remove Makefile.kernel and Makefile.vars

14 years agoupdate .bzrignore
BVK Chaitanya [Tue, 17 Aug 2010 13:34:35 +0000 (19:04 +0530)]
update .bzrignore

14 years agoworking copy, wo nested packaging
BVK Chaitanya [Tue, 17 Aug 2010 13:33:22 +0000 (19:03 +0530)]
working copy, wo nested packaging

14 years ago2010-08-15 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 15 Aug 2010 20:48:23 +0000 (22:48 +0200)]
2010-08-15  Robert Millan  <rmh@gnu.org>

* kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
errors.
* kern/emu/getroot.c (find_root_device_from_libzfs): Handle
grub_get_libzfs_handle() errors.

14 years agoparallel build fix for utils
BVK Chaitanya [Sun, 15 Aug 2010 15:39:37 +0000 (21:09 +0530)]
parallel build fix for utils

14 years agofix for grub-core parallel build failure
BVK Chaitanya [Sun, 15 Aug 2010 15:10:24 +0000 (20:40 +0530)]
fix for grub-core parallel build failure

14 years ago2010-08-14 Robert Millan <rmh@gnu.org>
Robert Millan [Sat, 14 Aug 2010 14:53:25 +0000 (16:53 +0200)]
2010-08-14  Robert Millan  <rmh@gnu.org>

* kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
filesystem is not ZFS.

14 years ago Fix for misspelled color names defaulting to black/black (bug
BVK Chaitanya [Thu, 12 Aug 2010 15:22:42 +0000 (20:52 +0530)]
Fix for misspelled color names defaulting to black/black (bug
reported by Doug Nazar)

* include/grub/normal.h (grub_parse_color_name_pair): Add return
status to prototype.
* normal/color.c (grub_parse_color_name_pair): Return failure
status.
(grub_env_write_color_normal): Ignore bad color names.
(grub_env_write_color_highlight): Likewise.
* normal/main.c (GRUB_MOD_INIT): Set default color names.

14 years agofix bad color name handling
BVK Chaitanya [Thu, 12 Aug 2010 15:15:55 +0000 (20:45 +0530)]
fix bad color name handling

14 years ago "shift" command support to GRUB script.
BVK Chaitanya [Thu, 12 Aug 2010 06:37:27 +0000 (12:07 +0530)]
"shift" command support to GRUB script.

* include/grub/script_sh.h (grub_script_shift): New prototype.
* script/execute.c (grub_script_shift): New function.
* script/main.c (grub_script_init): Register shift command.
(grub_script_fini): Unregister shift command.
* util/grub-script-check.c (grub_script_cmd_shift): New function.

* tests/grub_script_shift.in: New testcase.
* conf/tests.rmk: Rules for new testcase.

14 years agomerge with mainline
BVK Chaitanya [Thu, 12 Aug 2010 06:32:48 +0000 (12:02 +0530)]
merge with mainline

14 years ago "continue" command support to GRUB script.
BVK Chaitanya [Thu, 12 Aug 2010 06:18:21 +0000 (11:48 +0530)]
"continue" command support to GRUB script.

* script/execute.c (grub_script_execute_cmdwhile): Continue support.
(grub_script_break): Continue support.
* script/main.c (grub_script_init): Register continue command.
(grub_script_fini): Unregister continue command.

* tests/grub_script_continue.in: New testcase.
* conf/tests.rmk: Rules for new testcase.

14 years agomerge with mainline
BVK Chaitanya [Thu, 12 Aug 2010 04:16:01 +0000 (09:46 +0530)]
merge with mainline

14 years ago "break" command support to GRUB script.
BVK Chaitanya [Thu, 12 Aug 2010 04:05:15 +0000 (09:35 +0530)]
"break" command support to GRUB script.

* conf/common.rmk: Rule updates to grub-script-check.
* include/grub/misc.h (grub_min): New function.
* include/grub/script_sh.h (grub_script_init): New prototype.
(grub_script_fini): New prototype.
(grub_script_break): New prototype.
* script/main.c (grub_script_init): New function.
(grub_script_fini): New function.
* script/execute.c (grub_script_break): New function.
* normal/main.c: Calls to grub_script_{init,fini}.
* util/grub-script-check.c (grub_script_break): New function.

* tests/grub_script_break.in: New testcase.
* conf/tests.rmk: Rules for new test case.

14 years agomerge with mainline
BVK Chaitanya [Thu, 12 Aug 2010 04:00:26 +0000 (09:30 +0530)]
merge with mainline

14 years ago Function parameters support to GRUB script.
BVK Chaitanya [Thu, 12 Aug 2010 03:50:58 +0000 (09:20 +0530)]
Function parameters support to GRUB script.

* script/yylex.l (VARIABLE): Regular expression update.
* script/function.c (grub_script_function_call): Moved ...
* script/execute.c (grub_script_function_call): ... to here.
(grub_script_execute_arglist_to_argv): Removed.
(grub_script_arglist_to_argv): New function.
* script/argv.c: New file.
(grub_script_argv_free): New function.
(grub_script_argv_next): Likewise.
(grub_script_argv_append): Likewise.
(grub_script_argv_split_append): Likewise.
* include/grub/script_sh.h (grub_script_argv): New struct.
(grub_script_argv_free): New function.
(grub_script_argv_next): Likewise.
(grub_script_argv_append): Likewise.
(grub_script_argv_split_append): Likewise.

* conf/common.rmk (normal.mod): New source script/argv.c.

* tests/grub_script_echo1.in: More tests.
* tests/grub_script_vars1.in: Likewise.
* tests/grub_script_functions.in: New test case.
* conf/tests.rmk: Rules for new testcase.

14 years agomerge with mainline
BVK Chaitanya [Thu, 12 Aug 2010 03:46:24 +0000 (09:16 +0530)]
merge with mainline

14 years ago Remove grub_script_cmdblock struct.
BVK Chaitanya [Thu, 12 Aug 2010 03:34:37 +0000 (09:04 +0530)]
Remove grub_script_cmdblock struct.

* include/grub/script_sh.h: Remove grub_script_cmdblock.
* script/parser.y: Likewise.
* script/execute.c: Rename cmdblock suffix to cmdlist.
* script/script.c: Likewise.
* util/grub-script-check.c: Likewise.

14 years agomerge with mainline
BVK Chaitanya [Thu, 12 Aug 2010 03:31:59 +0000 (09:01 +0530)]
merge with mainline

14 years ago2010-08-11 Yves Blusseau <blusseau@zetam.org>
Yves Blusseau [Wed, 11 Aug 2010 11:24:37 +0000 (13:24 +0200)]
2010-08-11  Yves Blusseau  <blusseau@zetam.org>

    * .bzrignore: add grub-macho2img

14 years ago * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
Vladimir 'phcoder' Serbinenko [Wed, 11 Aug 2010 02:25:56 +0000 (04:25 +0200)]
* kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.

14 years ago Remove the dump of sm712 initialisation sequence.
Vladimir 'phcoder' Serbinenko [Wed, 11 Aug 2010 02:18:07 +0000 (04:18 +0200)]
Remove the dump of sm712 initialisation sequence.

* include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
* include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
(GRUB_VGA_IO_MISC_WRITE): Likewise.
(GRUB_VGA_CR_*): Added many registers.
(GRUB_VGA_SR_*): Likewise.
(GRUB_VGA_GR_*): Likewise.
(grub_vga_write_arx): New function.
(grub_video_hw_config): New struct.
(grub_vga_set_geometry): New function.
* kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
GRUB_PCI_CLASS_SUBCLASS_VGA.
* video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
* video/sm712.c (grub_sm712_write_reg): New function
(grub_sm712_read_reg): Likewise.
(grub_sm712_sr_write): Likewise.
(grub_sm712_gr_write): Likewise.
(grub_sm712_cr_write): Likewise.
(grub_sm712_write_arx): Likewise.
(grub_sm712_cr_shadow_write): Likewise.
(grub_sm712_write_dda_lookup): Likewise.
(grub_video_sm712_setup): Initialise the video rather then
blindly replay the dump.
(main) [TEST]: Add a routine to be able to compile as standalone for
tests.
* video/sm712_init.c (sm712_init): Removed.
(sm712_sr_seq1): New array.
(sm712_sr_seq2): Likewise.

14 years ago * include/grub/vga.h: Add missing grub/pci.h include.
Vladimir 'phcoder' Serbinenko [Wed, 11 Aug 2010 02:00:06 +0000 (04:00 +0200)]
* include/grub/vga.h: Add missing grub/pci.h include.

14 years ago2010-08-10 Yves Blusseau <blusseau@zetam.org>
Yves Blusseau [Tue, 10 Aug 2010 14:32:48 +0000 (16:32 +0200)]
2010-08-10  Yves Blusseau  <blusseau@zetam.org>

    * util/grub-macho2img.c (main): fix typo

14 years ago * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
Vladimir 'phcoder' Serbinenko [Tue, 10 Aug 2010 11:43:43 +0000 (13:43 +0200)]
* include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
(grub_vga_gr_read): Likewise.
(grub_vga_cr_write): Likewise.
(grub_vga_cr_read): Likewise.
(grub_vga_sr_write): Likewise.
(grub_vga_sr_read): Likewise.
(grub_vga_palette_read): Likewise.
(grub_vga_palette_write): Likewise.
* video/sm712.c (GRUB_SM712_REG_BASE): New definition.
(grub_sm712_sr_read): New function.
(grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
* video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.

14 years agomerge with mainline
BVK Chaitanya [Tue, 10 Aug 2010 04:22:16 +0000 (09:52 +0530)]
merge with mainline

14 years ago2010-08-09 Robert Millan <rmh@gnu.org>
Robert Millan [Mon, 9 Aug 2010 15:44:24 +0000 (17:44 +0200)]
2010-08-09  Robert Millan  <rmh@gnu.org>

* kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
out unused variables on non-ZFS build.

14 years ago2010-08-08 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 8 Aug 2010 22:11:19 +0000 (00:11 +0200)]
2010-08-08  Robert Millan  <rmh@gnu.org>

Fix path generation for sub-filesystems in ZFS.

* kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
missing slash.

14 years ago2010-08-08 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 8 Aug 2010 20:47:32 +0000 (22:47 +0200)]
2010-08-08  Robert Millan  <rmh@gnu.org>

* util/grub-fstest.c (read_file, cmd_cmp): Improve error message.

14 years ago2010-08-08 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 8 Aug 2010 14:27:58 +0000 (16:27 +0200)]
2010-08-08  Robert Millan  <rmh@gnu.org>

* util/grub.d/10_kfreebsd.in: When files required for ZFS do not
exist, issue a proper error message (rely on `ls' for translated
strings).

14 years ago2010-08-08 Robert Millan <rmh@gnu.org>
Robert Millan [Sun, 8 Aug 2010 13:45:33 +0000 (15:45 +0200)]
2010-08-08  Robert Millan  <rmh@gnu.org>

Fix grub-probe invocation.

* util/grub.d/10_kfreebsd.in: s/label/fs_label/g.

14 years agobuilds w/o custom DEPDIR
BVK Chaitanya [Fri, 6 Aug 2010 04:31:54 +0000 (10:01 +0530)]
builds w/o custom DEPDIR

14 years ago2010-08-04 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 4 Aug 2010 12:45:58 +0000 (14:45 +0200)]
2010-08-04  Robert Millan  <rmh@gnu.org>

* configure.ac: Remove checks for getfsstat() and getmntany().
Add checks for `<sys/param.h>' and `<sys/mount.h>'.
* kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
[HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
[HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
[HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
function.
(grub_find_zpool_from_dir): Use statfs() instead of indirect matching
via find_mount_point_from_dir() and getfsstat() / getmntany().

14 years ago2010-08-04 Robert Millan <rmh@gnu.org>
Robert Millan [Wed, 4 Aug 2010 11:29:13 +0000 (13:29 +0200)]
2010-08-04  Robert Millan  <rmh@gnu.org>

* include/grub/emu/misc.h (grub_find_mount_point_from_dir)
(grub_find_zpool_from_mount_point): Merge into ...
(grub_find_zpool_from_dir): ... this.
* kern/emu/misc.c: Likewise.

* kern/emu/misc.c
(grub_make_system_path_relative_to_its_root): Replace
grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
with grub_find_zpool_from_dir().
* kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.

14 years ago2010-08-04 Robert Millan <rmh@gnu.org>
Robert Millan [Tue, 3 Aug 2010 22:15:29 +0000 (00:15 +0200)]
2010-08-04  Robert Millan  <rmh@gnu.org>

Support OpenSolaris in ZFS device resolution.

* configure.ac: Check for getmntany().
* kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
[HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
support.