Robert Millan
21a313dedc
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'.
2010-08-20 16:36:07 +02:00
Vladimir 'phcoder' Serbinenko
9ba74de61a
Scan descriptor rather than elying on hardcoded endpoint number
2010-08-20 16:34:34 +02:00
Vladimir 'phcoder' Serbinenko
a17e3c978b
Use GetReport only at initialisation as specified in the USBHID spec
2010-08-20 14:36:29 +02:00
Vladimir 'phcoder' Serbinenko
537f375321
Fix control msg type
2010-08-20 12:22:23 +02:00
Vladimir 'phcoder' Serbinenko
8bb7e81637
Fix printf bug
2010-08-20 01:23:33 +02:00
Colin Watson
63c734a63e
* commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
...
"numcenter" (I misunderstood the purpose of this entry).
* docs/grub.texi (sendkey): Likewise.
2010-08-20 00:15:23 +01:00
Colin Watson
c4d1654256
* 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.
2010-08-20 00:05:14 +01:00
Colin Watson
93541d660d
* commands/i386/pc/sendkey.c (options): Fix three typos.
2010-08-19 21:53:50 +01:00
Vladimir 'phcoder' Serbinenko
996469df82
Merge mainline into keylayouts
2010-08-19 21:32:36 +02:00
Vladimir 'phcoder' Serbinenko
b4ece5e11e
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.
2010-08-19 21:03:14 +02:00
Vladimir 'phcoder' Serbinenko
88e543b519
Add grub-kbdcomp
2010-08-19 20:48:31 +02:00
Vladimir 'phcoder' Serbinenko
9c9ec877cb
Rename grub-mklayouts to grub-mklayout
2010-08-19 20:47:08 +02:00
Vladimir 'phcoder' Serbinenko
5a3e99b388
MAke grub-mklayouts do only one thing rather than doing all the piping
2010-08-19 20:43:40 +02:00
Vladimir 'phcoder' Serbinenko
b175204119
Add missing keys to grub-mklayouts
2010-08-19 19:17:36 +02:00
Vladimir 'phcoder' Serbinenko
b09634f027
Added missing values and indented USB table
2010-08-19 16:12:18 +02:00
Vladimir 'phcoder' Serbinenko
5ef4e08416
add usb keymap support
2010-08-19 15:32:43 +02:00
Vladimir 'phcoder' Serbinenko
e55e09628d
Hook AT keyboard mapping
2010-08-19 15:00:31 +02:00
Vladimir 'phcoder' Serbinenko
ed19677fe3
Revert all parts done for BIOS keymap translation
2010-08-19 13:32:36 +02:00
Vladimir 'phcoder' Serbinenko
eb628338db
AltGr support
2010-08-19 11:44:49 +02:00
Vladimir 'phcoder' Serbinenko
7ea82054f5
Solve keypad-related issues
2010-08-19 04:13:32 +02:00
Vladimir 'phcoder' Serbinenko
d90aa78482
KEyboard layout support
2010-08-19 02:57:05 +02:00
Vladimir 'phcoder' Serbinenko
2111447675
Add new flag SHIFT
2010-08-19 02:21:36 +02:00
Carles Pina i Estany
b6f7b4ba03
Reimported heavily modified version of cpina's grub-mklayout
2010-08-19 02:15:29 +02:00
Vladimir 'phcoder' Serbinenko
7a6459e12d
support for Fn keys
2010-08-19 01:07:50 +02:00
Vladimir 'phcoder' Serbinenko
2cccf4b0c4
Merge mainline into keylayouts
2010-08-18 22:28:47 +02:00
Colin Watson
51f1f5afab
* configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
...
fix warnings from Autoconf.
2010-08-18 11:15:08 +01:00
Colin Watson
9da94e0576
* 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.
2010-08-18 11:08:00 +01:00
Robert Millan
729a0f2e0c
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.
2010-08-15 22:48:23 +02:00
Robert Millan
f3710e088c
2010-08-14 Robert Millan <rmh@gnu.org>
...
* kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
filesystem is not ZFS.
2010-08-14 16:53:25 +02:00
BVK Chaitanya
7a3c13dea5
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.
2010-08-12 20:52:42 +05:30
BVK Chaitanya
681440aa5b
fix bad color name handling
2010-08-12 20:45:55 +05:30
BVK Chaitanya
ab8ba50d75
"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.
2010-08-12 12:07:27 +05:30
BVK Chaitanya
163dd4f7e9
merge with mainline
2010-08-12 12:02:48 +05:30
BVK Chaitanya
4d61999e33
"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.
2010-08-12 11:48:21 +05:30
BVK Chaitanya
8908e49937
merge with mainline
2010-08-12 09:46:01 +05:30
BVK Chaitanya
4df51e0007
"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.
2010-08-12 09:35:15 +05:30
BVK Chaitanya
fd324286d4
merge with mainline
2010-08-12 09:30:26 +05:30
BVK Chaitanya
f12c842082
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.
2010-08-12 09:20:58 +05:30
BVK Chaitanya
4962a2032f
merge with mainline
2010-08-12 09:16:24 +05:30
BVK Chaitanya
8022b74825
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.
2010-08-12 09:04:37 +05:30
BVK Chaitanya
0bcbae0fa7
merge with mainline
2010-08-12 09:01:59 +05:30
Yves Blusseau
79a6ba6101
2010-08-11 Yves Blusseau <blusseau@zetam.org>
...
* .bzrignore: add grub-macho2img
2010-08-11 13:24:37 +02:00
Vladimir 'phcoder' Serbinenko
d04b9414a8
* kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
2010-08-11 04:25:56 +02:00
Vladimir 'phcoder' Serbinenko
f947ab49b0
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.
2010-08-11 04:18:07 +02:00
Vladimir 'phcoder' Serbinenko
f0206638bf
* include/grub/vga.h: Add missing grub/pci.h include.
2010-08-11 04:00:06 +02:00
Yves Blusseau
2764da3ba2
2010-08-10 Yves Blusseau <blusseau@zetam.org>
...
* util/grub-macho2img.c (main): fix typo
2010-08-10 16:32:48 +02:00
Vladimir 'phcoder' Serbinenko
cf0c775ed4
* 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.
2010-08-10 13:43:43 +02:00
BVK Chaitanya
368ba29261
merge with mainline
2010-08-10 09:52:16 +05:30
Robert Millan
07f360e92d
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.
2010-08-09 17:44:24 +02:00
Robert Millan
346c207240
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.
2010-08-09 00:11:19 +02:00