- Nov 21, 2012
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Pretty often it happens that during trials we pick wrong external functions (e.g., "printf") and the final link claims horribly about dozens of undefined symbols. By having an intermediate wrc.o we can easily check which are the symbols we really leave undefined for libc and libgcc to fill, before they resolve them by asking for something else. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This renames ram.ld to ram.ld.S, adding a preprocessing rule. The commit has no techcnical effect: it is only preparation for the next one. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 01, 2012
-
-
Alessandro Rubini authored
-
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 <rubini@gnudd.com>
-
Alessandro Rubini authored
Some individual files are LGPL, some are public domain, some are GPL 2-only and most are GPL 2-or-later. You can pick parts according to the respective license (marked in the files themselves), but this one (GNU GPL version 2) is what applies to the work as a whole. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
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 <rubini@gnudd.com>
-
Alessandro Rubini authored
We include newlib headers (and link part of newlib), so any locally-defined function must have the same prototype as standard ones. We'll soon nee a "puts" implementation for pp_printf, so this adds puts as an alias of uart_write_string (at no size cost) and makes uart_write_string itself return integer (this costs a few bytes). While I'm at it, change uart_write_byte to be slightly faster. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This comes from git://gitorious.org/rubi/pp-printf.git . This commit just copies it over, without enabling it for compilation. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
-
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Also add the missing prototypes in eeprom.h, to fix warnings in shell/ Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This removes the "unsigned" for environment variables, since the public header has all "char *" types. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
I also turned to gui to void, as nobody checks the return value and there's no error code to return in any case. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
When I add prototypes to headers, I ensure the source that defines the function sees the header, to detect inconsistencies (here, I add <wrc.h> to the includes). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This adds all missing prototypes and removes unused variables. It includes a generic <wrc.h> (which btw includes the printf prototype, not in uart.h any more) and other needed bits. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
There was a wrong "static" in a public header that triggered my interest here. This fixes the warning and makes all functions that are unused elsewhere really static. It also saves 50 bytes in the final binary. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
-
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 <rubini@gnudd.com>
-