1. 28 Mar, 2013 4 commits
    • Alessandro Rubini's avatar
      shell: add help command · 78e9e68d
      Alessandro Rubini authored
      The help command currently only lists available commands. It was asked
      by some developers some time ago, and this implementation only costs
      150 bytes in the final exectuable.  I don't think it's worth a Kconfig
      option.
      
      This is it in action with my configuration:
      
         wrc# help
         Available commands:
           ver
           pll
           sfp
           stat
           ptp
           mode
           calibration
           time
           gui
           sdb
           mac
           init
           ptrack
           ip
           verbose
           help
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      78e9e68d
    • Alessandro Rubini's avatar
      shell: remove environment commands · bebe796c
      Alessandro Rubini authored
      The environment was drafted but not actually used, so this commit
      removes it.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      Acked-by: Grzegorz Daniluk's avatarGrzegorz Daniluk <grzegorz.daniluk@cern.ch>
      Acked-by: Tomasz Wlostowski's avatarTomasz Wlostowski <tomasz.wlostowski@cern.ch>
      bebe796c
    • Alessandro Rubini's avatar
      shell: reorganize parsing using .cmd ELF section · a9ce831d
      Alessandro Rubini authored
      This commit creates a .cmd section, so there is no global list of
      commands in shell.c any more, and no ifdef in the code for conditional
      commands.  Also, (unrelated) makes shell errors slightly more friendly.
      
      The technique is widely used, in the Linux kernel and all boot
      loaders, as well as a lot of my own personal code, so this is safe
      (and tested).
      
      As a side effect, this allows (in later commits) to move the "verbose"
      ppsi-specific command back to ppsi/arch-wrpc/ where it really belongs.
      It allows new commands to be easily added by just adding their
      respective file to the build.
      
      Even though this increases code size by around 50 lines, it makes it
      more modular and only costs 8 bytes in the final executable (in my
      configuration: 128 bytes less of text and 136 bytes more of data).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a9ce831d
    • Alessandro Rubini's avatar
      Makefile: use bigobj.lds during initial partial link · eb9d18a4
      Alessandro Rubini authored
      This commit makes no effect, but it prepares for the following one.
      In general, using an intermediate platform-agnostic linker script
      when making wrc.o is not bad, so let's do it here.
      
      The main reason why we need it is to force the "KEEP" command for the
      ".cmd" ELF section, introduced by the next commit.  The alternative to
      this would be chaning the main linker script, which is worse in my
      opinion.
      
      If we add initcalls or similar stuff later, this bigobj.lds is the
      place to do it.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      eb9d18a4
  2. 26 Mar, 2013 4 commits
  3. 19 Mar, 2013 1 commit
  4. 18 Mar, 2013 6 commits
  5. 12 Mar, 2013 1 commit
  6. 07 Mar, 2013 6 commits
  7. 06 Mar, 2013 2 commits
  8. 05 Mar, 2013 1 commit
  9. 20 Feb, 2013 15 commits