Jeremy Kerr [Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)]
ui/twin: fix compiler warnings
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Jeremy Kerr [Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)]
lib/pb-protocol: suppress warning for unused buf_len arg
When assert is disabled, we end up with an warning for buf_len.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Jeremy Kerr [Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)]
ui/ncurses: Fix warning from unnecessary if statement
ui/ncurses/nc-menu.c: In function 'pmenu_process_key':
ui/ncurses/nc-menu.c:207:33: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Jeremy Kerr [Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)]
discover: simplify handler switch statement
Instead of using nested switch statements in device_handler_event,
define an array of handlers, and lookup instead.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Jeremy Kerr [Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)]
nc: Only expand debug macros if DEBUG is defined
To reduce debugging output from the UI
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 16 Oct 2012 21:58:53 +0000 (14:58 -0700)]
Convert echo to printf in scripts
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 3 Apr 2012 00:20:37 +0000 (17:20 -0700)]
Fix sftp loader
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 31 Mar 2012 00:54:11 +0000 (17:54 -0700)]
Increase X screen size
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 31 Mar 2012 00:20:48 +0000 (17:20 -0700)]
Speed up --start-daemon option
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 30 Mar 2012 23:58:32 +0000 (16:58 -0700)]
Cleanup --dry-run option code
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 30 Mar 2012 03:47:51 +0000 (20:47 -0700)]
Add missing EXTRA_DIST files
Geoff Levand [Wed, 28 Mar 2012 02:59:09 +0000 (19:59 -0700)]
Add UI option --dry-run
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 03:21:21 +0000 (20:21 -0700)]
Add new macro DEFINE_LIST()
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 03:18:32 +0000 (20:18 -0700)]
pb-discover: Ignore ram, loop and no-name devices
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 03:16:37 +0000 (20:16 -0700)]
Fix device mount retry
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 02:55:53 +0000 (19:55 -0700)]
Add more paths to grub2 parser
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 02:23:17 +0000 (19:23 -0700)]
Log to stderr, allow --log=-
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 02:08:23 +0000 (19:08 -0700)]
Zero automatic sockaddr
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 01:49:23 +0000 (18:49 -0700)]
Add grub.cfg from opensuse install
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Tue, 27 Mar 2012 01:47:35 +0000 (18:47 -0700)]
Add DEVPATH to udev_print_event()
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Mon, 19 Mar 2012 05:58:29 +0000 (22:58 -0700)]
Add grub2 conf file parser
Add grub2 parser and sample config file.
Reorder parser priorities:
From (yaboot -> kboot) to (kboot -> grub2 -> yaboot).
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Mon, 19 Mar 2012 05:19:49 +0000 (22:19 -0700)]
Parser test cleanup
Major cleanup of parser tests.
* Change test data directory layout to ease test automation.
* Remove some unneeded files.
* Re-write test wraper script, rename to run-parser-tests.
* Rework for autotools.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Mon, 19 Mar 2012 00:24:21 +0000 (17:24 -0700)]
Minor comment fix
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 18 Mar 2012 23:20:38 +0000 (16:20 -0700)]
Add new member get_pair to conf parser context
To allow parsers more control over finding paramerter pairs
add a new member get_pair to the parser struct conf_context.
Initialize get_pair=conf_get_pair_equal for existing parsers.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 18 Mar 2012 23:09:16 +0000 (16:09 -0700)]
Refactor parser routine conf_get_param_pair()
Refactor conf_get_param_pair() and rename to conf_get_pair().
Add two new wrapper routines conf_get_pair_equal() and
conf_get_pair_space().
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 18 Mar 2012 22:52:02 +0000 (15:52 -0700)]
Add parser routine conf_replace_char()
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 17 Mar 2012 05:23:35 +0000 (22:23 -0700)]
Convert test to automake
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 17 Mar 2012 05:19:44 +0000 (22:19 -0700)]
Fix build error in parser-test
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 17 Mar 2012 05:06:03 +0000 (22:06 -0700)]
Use static array for parsers
Change the parser structure array implementation from using an
array in a seperate parsers section to a static array of pointers
in parser.c. Parser priority is now set by the position in the
new parsers array.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 17 Mar 2012 04:59:18 +0000 (21:59 -0700)]
Fix seg fault with bare kboot.conf variables
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 16 Mar 2012 16:53:54 +0000 (09:53 -0700)]
Use define_parser() for native
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 10 Mar 2012 02:03:41 +0000 (18:03 -0800)]
Add logrotate.conf
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 10 Mar 2012 00:32:18 +0000 (16:32 -0800)]
Add time to version string
To comply with Debian's package version rules.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 9 Mar 2012 23:36:40 +0000 (15:36 -0800)]
Fixup artwork licenses
Replace icon files with files from KDE 4.3 Oxygen. Add artwork
license info.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 9 Mar 2012 04:48:21 +0000 (20:48 -0800)]
Add --start-daemon option to ui programs
Add the option --start-daemon to automatically start
pb-discover if it is not already started. For use
when running as a stand-alone app.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 9 Mar 2012 02:31:50 +0000 (18:31 -0800)]
Log file cleanups
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 9 Mar 2012 02:08:08 +0000 (18:08 -0800)]
Rename pb-nc, pb-twin to petitboot-nc, petitboot-twin
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 9 Mar 2012 01:41:15 +0000 (17:41 -0800)]
Retry device mount without 'ro' option
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 18 Feb 2012 22:54:21 +0000 (14:54 -0800)]
Add '--action=add' to udevadm trigger command
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 22 Feb 2012 21:15:35 +0000 (13:15 -0800)]
Move installed programs from bin to sbin
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 22:54:50 +0000 (14:54 -0800)]
Cleanup man pages
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 19:33:41 +0000 (11:33 -0800)]
Update twin ui to use discover server
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 19:23:55 +0000 (11:23 -0800)]
Remove union in pb_opt_data
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 19:09:55 +0000 (11:09 -0800)]
Minor include path fix
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 19:09:14 +0000 (11:09 -0800)]
Add usage comment to parse_user_event
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 18:52:13 +0000 (10:52 -0800)]
Rename pb-nc-generic to pb-nc
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Wed, 15 Feb 2012 18:51:07 +0000 (10:51 -0800)]
Remove unused file pb-cui.c
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 22:20:04 +0000 (14:20 -0800)]
Fixups for 'make dist'
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 21:48:32 +0000 (13:48 -0800)]
Add artwork files network.png, system.png
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 21:32:23 +0000 (13:32 -0800)]
Rename ps3-cui.c to ps3-main.c
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 21:01:32 +0000 (13:01 -0800)]
Include util files in 'make install'
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 21:00:51 +0000 (13:00 -0800)]
Add new file kboot.conf.sample
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 20:46:43 +0000 (12:46 -0800)]
Rename udhcpc to pb-udhcpc
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 20:12:32 +0000 (12:12 -0800)]
Convert build to use automake
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 19:47:19 +0000 (11:47 -0800)]
Add generic ncurses program
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 12 Feb 2012 19:41:16 +0000 (11:41 -0800)]
Rename pb-test.c to discover-test.c
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 4 Dec 2011 23:46:33 +0000 (15:46 -0800)]
Fix paths.c build warnings
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 4 Dec 2011 23:02:31 +0000 (15:02 -0800)]
Fix params.c logging
Fixes build warnings like these:
implicit declaration of function ‘pb_log’
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sun, 4 Dec 2011 22:49:54 +0000 (14:49 -0800)]
Fix params.c build warnings
Fixes warnings like these:
warning: no previous prototype
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Mon, 14 Nov 2011 02:50:47 +0000 (18:50 -0800)]
Move artwork from ui/twin to ui/common
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 22:55:32 +0000 (14:55 -0800)]
Remove KEY_LEFT in nc-menu
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 22:43:44 +0000 (14:43 -0800)]
Add header dependencies to rules.mk
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 22:16:05 +0000 (14:16 -0800)]
Add twin checks to configure
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 21:59:18 +0000 (13:59 -0800)]
Add custom TALLOC_ABORT
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 21:42:31 +0000 (13:42 -0800)]
Add va-copy check to configure.ac
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 06:52:05 +0000 (22:52 -0800)]
Add list_prev_entry, list_next_entry
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 06:51:13 +0000 (22:51 -0800)]
Return NULL for head list_entry
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 04:06:37 +0000 (20:06 -0800)]
Cleanup list formatting
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Sat, 12 Nov 2011 06:28:50 +0000 (22:28 -0800)]
Add STATIC_LIST initializer
Signed-off-by: Geoff Levand <geoff@infradead.org>
Geoff Levand [Fri, 4 Nov 2011 03:31:50 +0000 (20:31 -0700)]
Fix waiter_register return value
Geoff Levand [Mon, 31 Oct 2011 03:58:04 +0000 (20:58 -0700)]
Add data structs to ui-system
Geoff Levand [Mon, 31 Oct 2011 03:54:31 +0000 (20:54 -0700)]
Add pb_protocol_dump_device
Geoff Levand [Sun, 30 Oct 2011 04:49:51 +0000 (21:49 -0700)]
pb-event: Add help message
Geoff Levand [Fri, 28 Oct 2011 04:56:53 +0000 (21:56 -0700)]
Add n_options to struct device
Geoff Levand [Tue, 11 Oct 2011 21:13:06 +0000 (14:13 -0700)]
Update maintainer
Geoff Levand [Wed, 26 Aug 2009 22:41:40 +0000 (15:41 -0700)]
cui: Remove tab hotkey
Remove the 'tab' hotkey that was used for kboot compatability.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Wed, 26 Aug 2009 00:25:12 +0000 (17:25 -0700)]
Fix seg fault on ps3 flash error
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Tue, 4 Aug 2009 00:11:38 +0000 (17:11 -0700)]
Fix minor typo in discover-client file descriptor check
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 22:37:25 +0000 (15:37 -0700)]
Iterate over all conf file parsers
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 21:45:48 +0000 (14:45 -0700)]
Delete kexec temporary files before rebooting
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Build test UI program with tests
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add petitboot man pages
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add discover server options
Add --help, --log, and --version command line options to the discover server.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Use yaboot global boot option
Use any yaboot global boot option in preference to the
yaboot.conf device path.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Fix parsing for OpenSUSE
Fix the special yaboot.conf parsing needed for the
OpenSUSE install CD.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Zero parser globals before use
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add default video arg to kernel command line
Add the current bootloader video mode to the kernel command line
when the command line does not have a video mode specified.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add ncurses joystick support
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Update item text on edit
Update the boot option menu item text on edit.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Remove unused ked status ked_boot.
Remove unused code for the ked return status ked_boot.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Remove nc menu description
Remove some unused nc menu description code.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
CUI add empty item
Add a CUI hot-key 'o' that opens a new empty menu item.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add generic CUI program
Add a non-PS3 CUI program.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Fix CUI scroll
A call to pos_menu_cursor() is needed when items are added
to menu.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Fix ps3 boot game OS
Fix the PS3 boot game OS item.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Display version on debug builds
Display the program version in the main menu for debug builds.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add PS3 timeout option
Add an option --timeout to the PS3 CUI program to enable
the use of the autoboot timer.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add PS3 reset default option
Add a --reset-defaults option to the PS3 CUI program.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add PS3 countdown timer
Add countdown timer support to the PS3 UI programs.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Geoff Levand [Thu, 9 Jul 2009 17:40:44 +0000 (10:40 -0700)]
Add CUI countdown timer
Add support for a petitboot CUI countdown timer.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>