• Alessandro Rubini's avatar
    shell: optionally define a build-time init command · ce0af021
    Alessandro Rubini authored
    This commit adds the possibility to build an init command in the
    binary.  It can be useful to install a number of nodes with a special
    configuration, without the need to reach the shell and/or eeprom of
    each one.
    
    This is useful, for example, to pass syslog configuration
    or the (yet to be implemented) definition of multiple vlans for
    etherbone and the wr fabric (frame classes 7 and 6 f the packet
    filter). Moreover, I personally love to load a master or slave node
    for testing without interacting with the node (or changing the flash
    over and over).
    
    This commit also makes reading of commands from storage an optional
    feature, but only in the advanced/developer options. Thus, you can
    build a wrpc that uses the build-time init commands, or the
    flash-stored init commands, both or none of them.
    
    Size effects:
         * no effect if you keep the defaults (no build-time init, flash init)
         * +248 bytes (+ the command itself) if you enable build-time init
         * -1696 bytes if you remove flash-based init (discouraged)
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ce0af021
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ 908e88d6
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...