1. 01 Nov, 2012 4 commits
    • Alessandro Rubini's avatar
      general: add copyright notes · 394d1405
      Alessandro Rubini authored
      This adds copyright notes to all non-trivial source files,
      unless they where already there (i.e. dev/endpoint.c alone).
      
      I found authorship using the following script, run on commit "a2721762
      documentation updated" (i.e, before automatic reindentation and other
      trivial stuff by me):
      
        git grep -l . | grep -v sockitowm/ | \
        while read F; do
             echo "##### $F"
             git blame -w $F | \
               sed -e 's/^[^ ]* .//' -e 's/-[0-9][0-9]-[0-9][0-9] .*$//' | \
               sort | uniq -c | sort -rn
        done
      
      Then I augmented each file with this boilerplate:
      
      /*
       * This work is part of the White Rabbit project
       *
       * Copyright (C) 2011 CERN (www.cern.ch)
       * Copyright (C) 2011,2012 CERN (www.cern.ch)
       * Copyright (C) 2012 CERN (www.cern.ch)
       * Copyright (C) 2011 GSI (www.gsi.de)
       * Copyright (C) 2011,2012 GSI (www.gsi.de)
       * Copyright (C) 2012 GSI (www.gsi.de)
       * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
       * Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
       * Author: Wesley W. Terpstra <w.terpstra@gsi.de>
       *
       * Released according to the GNU GPL, version 2 or any later version.
       */
      
      Then I removed all the lines that didn't apply. Sometimes I reordered
      the authors to reflect who is the main author.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      394d1405
    • Alessandro Rubini's avatar
      arch/lm32/ram.ld: provide mprintf if missing · a502f9db
      Alessandro Rubini authored
      When we'll enable pp_printf, we'll need to resolve mprintf to
      it. Local files are fixed by #define in wrc.h, but ptp-noposix has
      explicit mprintf calls inside.  By using "PROVIDE" in the linker
      script, we resolve mprintf to pp_printf only if no native mprintf
      is part of the link stage. This has no effect if pp_printf is
      not selected.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      a502f9db
    • Alessandro Rubini's avatar
      arch/lm32/ram.ld: remove all cruft · f05f3757
      Alessandro Rubini authored
      Remove all unneeded stuff from the linker script. Now the script only
      includes what is actually used: it is easier to understand and change
      (we'll add some local ELF sections), and it makes a better reference
      for possible porting to a different architecture.
      
      This commit also moves the default libraries from the linker script
      itself to the LDFLAGS in Makefile, where they really belong.
      
      CONFIG_DETERMINISTIC_BINARY confirms this makes no difference in
      the generated binary (nor the ELF FWIW).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f05f3757
    • Alessandro Rubini's avatar
      build: move libs from ldscript to LDFLAGS · 583ab278
      Alessandro Rubini authored
      Instead of picking libraries from the linker script, common practice
      is listing them in LDFLAGS. This simplifies review and modification.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      583ab278
  2. 05 Oct, 2012 2 commits
    • Alessandro Rubini's avatar
      Run ./scripts/Lindent on all .c and .h files · e625cbd9
      Alessandro Rubini authored
      This is massive: 4k lines changed (but only 840 if you ignore
      space-only changes).  In this case "git blame -w" won't always find
      the right patch, and it may fall on this patch -- because those
      800 lines changed in content too.
      
      This has been done with
      
         find . -name '*.[ch]' | xargs -n 1 ./scripts/Lindent
      
      Statistics: all changes and ignoring blank space:
      
         morgana% git diff --stat HEAD~1 | tail -1
          77 files changed, 3774 insertions(+), 3709 deletions(-)
         morgana% git diff -w --stat HEAD~1 | tail -1
          61 files changed, 894 insertions(+), 829 deletions(-)
      
      However, after this step I hand-fixed some very ugly long expressions
      (leaving them long: no content change at all is there).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      e625cbd9
    • Alessandro Rubini's avatar
      Remove all spaces at end-of-line · 1d24ecfb
      Alessandro Rubini authored
      If you find this patch with "git blame" please use "git blame -w"
      to have all white-space ignored while associating lines to commits.
      
      This commit has no practical effect but cleanup. I made it
      with sed like this:
      
        git grep -l '[ \t]$' | xargs sed -i 's/[ \t]*$//'
      
      However, I had to manually restore doc/wrpc_mon.png after the fact.
      Similarly, I restored the include/hw/*regs.h files, as they
      are (most likely) auto-generated.
      1d24ecfb
  3. 10 Jul, 2012 1 commit
  4. 13 Jun, 2012 1 commit