]> git.ipfire.org Git - thirdparty/grub.git/log
thirdparty/grub.git
15 years agoFix reversal of NPAGE and PPAGE when handling Linux keymaps
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 18:40:06 +0000 (20:40 +0200)] 
Fix reversal of NPAGE and PPAGE when handling Linux keymaps

15 years agoChange GRUB_TERM_NO_KEY to 0
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 11:21:53 +0000 (13:21 +0200)] 
Change GRUB_TERM_NO_KEY to 0

15 years agoFix RCTRL and RALT linux scancodes
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 11:21:26 +0000 (13:21 +0200)] 
Fix RCTRL and RALT linux scancodes

15 years agoFix bugs in grub_getkey introduced in previous commit
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 11:12:29 +0000 (13:12 +0200)] 
Fix bugs in grub_getkey introduced in previous commit

15 years agoMacroify GRUB_TERM_NO_KEY and use grub_checkkey in grub_getkey
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 10:53:42 +0000 (12:53 +0200)] 
Macroify GRUB_TERM_NO_KEY and use grub_checkkey in grub_getkey

15 years agoRemove checkkey on term level
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 10:07:49 +0000 (12:07 +0200)] 
Remove checkkey on term level

15 years agoWait for ACKs when setting the mode
Vladimir 'phcoder' Serbinenko [Mon, 23 Aug 2010 09:26:28 +0000 (11:26 +0200)] 
Wait for ACKs when setting the mode

15 years agoFix ignoring of set1 extended sequences
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 23:44:54 +0000 (01:44 +0200)] 
Fix ignoring of set1 extended sequences

15 years agoFix multiple issues with set 2
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 23:13:54 +0000 (01:13 +0200)] 
Fix multiple issues with set 2

15 years agoMacroify key constants
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 21:56:41 +0000 (23:56 +0200)] 
Macroify key constants

15 years agoSupport scancode set 2
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 20:53:31 +0000 (22:53 +0200)] 
Support scancode set 2

15 years agoBump keylayouts version
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 16:16:16 +0000 (18:16 +0200)] 
Bump keylayouts version

15 years agoSet the leds and drain the input buffer in at_keyboard initialisation
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 16:15:27 +0000 (18:15 +0200)] 
Set the leds and drain the input buffer in at_keyboard initialisation

15 years agoProperly handle extended_pending
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 15:44:03 +0000 (17:44 +0200)] 
Properly handle extended_pending

15 years agomerge mainline into keylayouts
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 15:12:27 +0000 (17:12 +0200)] 
merge mainline into keylayouts

15 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.

15 years agoMake USB the main keylayout for simplicity
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 14:06:09 +0000 (16:06 +0200)] 
Make USB the main keylayout for simplicity

15 years agoSupport numpad
Vladimir 'phcoder' Serbinenko [Sun, 22 Aug 2010 00:17:14 +0000 (02:17 +0200)] 
Support numpad

15 years agoIncrease pre-repeat usb keyboad interval
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 23:01:31 +0000 (01:01 +0200)] 
Increase pre-repeat usb keyboad interval

15 years agoAdd back accidently removed mov
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 22:57:04 +0000 (00:57 +0200)] 
Add back accidently removed mov

15 years agoSet last_key to -1 at init time
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 22:31:43 +0000 (00:31 +0200)] 
Set last_key to -1 at init time

15 years agoSupport USB key repeat
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 22:29:34 +0000 (00:29 +0200)] 
Support USB key repeat

15 years agoIgnore keyboard errors and track numlock status
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 22:01:21 +0000 (00:01 +0200)] 
Ignore keyboard errors and track numlock status

15 years agomerge usb into keylayouts
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 21:17:44 +0000 (23:17 +0200)] 
merge usb into keylayouts

15 years agoUse status change pipe for hub hotplug detection
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 21:09:37 +0000 (23:09 +0200)] 
Use status change pipe for hub hotplug detection

15 years agoMAke an enum out of reqtype
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 19:55:24 +0000 (21:55 +0200)] 
MAke an enum out of reqtype

15 years agoclear port status change afte polling it
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 19:39:15 +0000 (21:39 +0200)] 
clear port status change afte polling it

15 years agoreally set controller_data in ohci
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 18:54:20 +0000 (20:54 +0200)] 
really set controller_data in ohci

15 years agoGive better debug message in usb_keyboard_checkkey
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 17:42:31 +0000 (19:42 +0200)] 
Give better debug message in usb_keyboard_checkkey

15 years agoFix incorrect toggle calculation
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 17:41:37 +0000 (19:41 +0200)] 
Fix incorrect toggle calculation

15 years agoEnable usb device polling again
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 16:24:09 +0000 (18:24 +0200)] 
Enable usb device polling again

15 years agoUse background transfers for usb_keyboard
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 15:12:51 +0000 (17:12 +0200)] 
Use background transfers for usb_keyboard

15 years agoPrepare infrastructure for background USB transfers
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 14:09:43 +0000 (16:09 +0200)] 
Prepare infrastructure for background USB transfers

15 years agocorrectly pass interfno and don't use GetReport
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 11:56:55 +0000 (13:56 +0200)] 
correctly pass interfno and don't use GetReport

15 years agoDon't retire active transaction on a NAK
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 11:55:06 +0000 (13:55 +0200)] 
Don't retire active transaction on a NAK

15 years agoReturn USB_ERR_INTERNAL instead of grub_errno when appropriate
Vladimir 'phcoder' Serbinenko [Sat, 21 Aug 2010 11:54:10 +0000 (13:54 +0200)] 
Return USB_ERR_INTERNAL instead of grub_errno when appropriate

15 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.

15 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.

15 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.

15 years agoImplement CapsLock
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 22:29:57 +0000 (00:29 +0200)] 
Implement CapsLock

15 years agoAdd missing insert and \ codes
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 22:05:39 +0000 (00:05 +0200)] 
Add missing insert and \ codes

15 years agoFix cutting bits by implicit conversion to char
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 21:33:41 +0000 (23:33 +0200)] 
Fix cutting bits by implicit conversion to char

15 years agomerge mainline into keylayouts
Vladimir 'phcoder' Serbinenko [Fri, 20 Aug 2010 20:13:19 +0000 (22:13 +0200)] 
merge mainline into keylayouts

15 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.

15 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

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

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

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

15 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

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

15 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

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

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

15 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

15 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

15 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'.

15 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

15 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

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

15 years agoFix printf bug
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 23:23:33 +0000 (01:23 +0200)] 
Fix printf bug

15 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.

15 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.

15 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.

15 years agoMerge mainline into keylayouts
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 19:32:36 +0000 (21:32 +0200)] 
Merge mainline into keylayouts

15 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.

15 years agoAdd grub-kbdcomp
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 18:48:31 +0000 (20:48 +0200)] 
Add grub-kbdcomp

15 years agoRename grub-mklayouts to grub-mklayout
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 18:47:08 +0000 (20:47 +0200)] 
Rename grub-mklayouts to grub-mklayout

15 years agoMAke grub-mklayouts do only one thing rather than doing all the piping
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 18:43:40 +0000 (20:43 +0200)] 
MAke grub-mklayouts do only one thing rather than doing all the piping

15 years agoAdd missing keys to grub-mklayouts
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 17:17:36 +0000 (19:17 +0200)] 
Add missing keys to grub-mklayouts

15 years agoAdded missing values and indented USB table
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 14:12:18 +0000 (16:12 +0200)] 
Added missing values and indented USB table

15 years agoadd usb keymap support
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 13:32:43 +0000 (15:32 +0200)] 
add usb keymap support

15 years agoHook AT keyboard mapping
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 13:00:31 +0000 (15:00 +0200)] 
Hook AT keyboard mapping

15 years agoRevert all parts done for BIOS keymap translation
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 11:32:36 +0000 (13:32 +0200)] 
Revert all parts done for BIOS keymap translation

15 years agoAltGr support
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 09:44:49 +0000 (11:44 +0200)] 
AltGr support

15 years agoSolve keypad-related issues
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 02:13:32 +0000 (04:13 +0200)] 
Solve keypad-related issues

15 years agoKEyboard layout support
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 00:57:05 +0000 (02:57 +0200)] 
KEyboard layout support

15 years agoAdd new flag SHIFT
Vladimir 'phcoder' Serbinenko [Thu, 19 Aug 2010 00:21:36 +0000 (02:21 +0200)] 
Add new flag SHIFT

15 years agoReimported heavily modified version of cpina's grub-mklayout
Carles Pina i Estany [Thu, 19 Aug 2010 00:15:29 +0000 (02:15 +0200)] 
Reimported heavily modified version of cpina's grub-mklayout

15 years agosupport for Fn keys
Vladimir 'phcoder' Serbinenko [Wed, 18 Aug 2010 23:07:50 +0000 (01:07 +0200)] 
support for Fn keys

15 years agoMerge mainline into keylayouts
Vladimir 'phcoder' Serbinenko [Wed, 18 Aug 2010 20:28:47 +0000 (22:28 +0200)] 
Merge mainline into keylayouts

15 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.

15 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.

15 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.

15 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.

15 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.

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

15 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.

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

15 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.

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

15 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.

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

15 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.

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

15 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.

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

15 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

15 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.

15 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.

15 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.