mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-23 03:39:41 +02:00
qi-commandline-debug-added-if-ui-key-down.patch
Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
parent
842a4ad19b
commit
5c9a2104f9
@ -296,6 +296,18 @@ void bootloader_second_phase(void)
|
|||||||
cmdline += strlen(strcpy(cmdline,
|
cmdline += strlen(strcpy(cmdline,
|
||||||
commandline_rootfs_append));
|
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.tag = ATAG_CMDLINE;
|
||||||
params->hdr.size = (sizeof (struct tag_header) +
|
params->hdr.size = (sizeof (struct tag_header) +
|
||||||
strlen(params->u.cmdline.cmdline) + 1 + 4) >> 2;
|
strlen(params->u.cmdline.cmdline) + 1 + 4) >> 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user