2014-01-29 |
reset_source: add reset_source_get
...
To get reset_source from C code, not only from shell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 29 Jan 2014
|
reset_source: rename set_reset_source to reset_source_set
...
To get all reset source related functions into the same function
namespace.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 29 Jan 2014
|
2014-01-27 |
env: make path arguments to envfs_load/save const
...
These functions have no business changing the path argument, so make the
argument const.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 27 Jan 2014
|
environment: Fix wrong Kconfig dependency
...
DEFAULT_ENVIRONMENT needs ENV_HANDLING, not CMD_LOADENV.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 27 Jan 2014
|
environment: Use accessor functions for default environment path
...
default_environment_path only exists when CONFIG_ENV_HANDLING is enabled.
Boards would have to #ifdef this if they wanted to use
default_environment_path. Use accessor functions instead which can
be ifdeffed on a single place.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 27 Jan 2014
|
2014-01-22 |
console: Set Linux console parameter automatically
...
Linux specifies the linux,stdout-path property in the /chosen node
in the devicetree. Unfortunately this is ignored in most cases.
For cases in which barebox uses this property for its own use we
translate this into a Linux boot arg with:
- the console name provided by the serial driver
- the the instance from the 'serial' alias
- the baudrate from the actual baudrate.
So with this it's for devicetee enabled boards no longer necessary
to manually assign a console= parameter. Should a user not want
to use the automatically assigned parameter it should do:
global.linux.bootargs.console=
in the environment.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 22 Jan 2014
|
2014-01-14 |
bootm: introduce bootm_load_devicetree helper
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Jan 2014
|
bootm: introduce bootm_load_initrd helper
...
Make the bootm handlers simpler by factoring out an initrd load
function.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 14 Jan 2014
|
2014-01-10 |
bootm: introduce bootm_load_os helper
...
The common bootm code used to load uImage contents to SDRAM
before calling into the handlers if possible. This makes the
handlers complicated since they have to handle many cases. Instead,
introduce a helper to load the os after the handlers have figured
out a good load address.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Jan 2014
|
2014-01-07 |
Merge branch 'for-next/poller'
Sascha Hauer
committed
on 7 Jan 2014
|
2013-12-18 |
poller: Allow to call functions asynchronously
...
Sometimes execution of a function has to be delayed, for example
when a backlight can only be turned on when the picture has stabilized.
To help in such situations add a convenience function around the poller
stuff to call a function after a delay.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 18 Dec 2013
|
2013-12-06 |
Merge branch 'for-next/omap-devicetree-prepare'
Sascha Hauer
committed
on 6 Dec 2013
|
Merge branch 'for-next/misc'
...
Conflicts:
scripts/Makefile
Sascha Hauer
committed
on 6 Dec 2013
|
Merge branch 'for-next/hush'
Sascha Hauer
committed
on 6 Dec 2013
|
2013-12-04 |
scripts: bareboxcrc32 as host and target userspacetool
...
This patch adds the crc32 command to be build
as host and optionally as target tool.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Michael Grzeschik
authored
on 3 Dec 2013
Sascha Hauer
committed
on 4 Dec 2013
|
2013-11-26 |
common Kconfig: disable unused options for SHELL_NONE
...
Let commandline editing and long help depend on !SHELL_NONE.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 26 Nov 2013
|
common Kconfig: Add missing depends on
...
CONFIG_MAXARGS is only used with the simple console support, so add
a 'depends on'. While at it, move it below the shell selection.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 26 Nov 2013
|
2013-11-22 |
ARM: OMAP: Make debug_ll UART Kconfig selectable
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 22 Nov 2013
|
2013-11-20 |
common: add dependency !SANDBOX on target tools
...
The build of target tools fails on sandbox architecture.
We don't need any target tools in this case, so add a dependency.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Alexander Aring
authored
on 18 Nov 2013
Sascha Hauer
committed
on 20 Nov 2013
|
2013-11-12 |
hush: refactor reserved_word()
...
Save indentation level for easier readability.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: use standard ARRAY_SIZE
...
Use standard ARRAY_SIZE instead of handcrafted NRES.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: Be more informative on syntax error
...
Print the token that led to a syntax error, at least for the common
case.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
consolidate syntax() and syntax_err()
...
syntax is defined as syntax_err. Drop syntax_err and call syntax instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: rename __promptme to interrupt
...
the name '__promptme' does not make clear what the variable means. rename
it to 'interrupt' which is set to true when the user has hit ctrl-c.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: refactor file_get()
...
Save indentation level by returning early.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: refactor get_user_input()
...
Save indentation level by returning early.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: refactor readline call
...
Don't call readline in if/else, instead setup a variable and call
it once.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
hush: fix exit on syntax error behaviour
...
input.__promptme is no valid indicator that run_shell should be left.
It should be left on executing the 'exit' builtin which is indicated
by a return code < 0 from parse_stream_outer(). Track this with an extra
variable and use it as a condition to return from an interactive shell.
This fixes the weird behaviour that hush exits (and the user finds itself
in the menu) when a syntax error occured.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Nov 2013
|
2013-11-08 |
treewide: Add missing includes
...
A lot of files rely on include/driver.h including include/of.h (and
this including include/errno.h. include the files explicitly so we can
eventually get rid of including of.h from driver.h
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 8 Nov 2013
|
partitions: dos: parse extended partition
...
DOS MBRs might contain an extended partition that holds several logical
partitions. Add these to the partitions of the block device.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Uwe Kleine-König
authored
on 8 Nov 2013
Sascha Hauer
committed
on 8 Nov 2013
|