1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 17:45:33 +02:00

qi-commandline-debug-added-if-ui-key-down.patch

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-12-01 01:26:05 +00:00 committed by Andy Green
parent 842a4ad19b
commit 5c9a2104f9

View File

@ -296,6 +296,18 @@ void bootloader_second_phase(void)
cmdline += strlen(strcpy(cmdline,
commandline_rootfs_append));
/*
* if he's still holding down the UI_ACTION_SKIPKERNEL key
* now we finished loading the kernel, take it to mean he wants
* to have the debugging options added to the commandline
*/
if (this_board->commandline_board_debug &&
this_board->get_ui_keys)
if ((this_board->get_ui_keys)() & UI_ACTION_SKIPKERNEL)
cmdline += strlen(strcpy(cmdline, this_board->
commandline_board_debug));
params->hdr.tag = ATAG_CMDLINE;
params->hdr.size = (sizeof (struct tag_header) +
strlen(params->u.cmdline.cmdline) + 1 + 4) >> 2;