26 Feb, 2014
2 commits
-
Signed-off-by: Masahiro Yamada
-
Signed-off-by: Masahiro Yamada
20 Feb, 2014
5 commits
-
Signed-off-by: Masahiro Yamada
-
Now we are ready to switch over to real Kbuild.
This commit disables temporary scripts:
scripts/{Makefile.build.tmp, Makefile.host.tmp}
and enables real Kbuild scripts:
scripts/{Makefile.build,Makefile.host,Makefile.lib}.This switch is triggered by the line in scripts/Kbuild.include
-build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
+build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build objWe need to adjust some build scripts for U-Boot.
But smaller amount of modification is preferable.Additionally, we need to fix compiler flags which are
locally added or removed.In Kbuild, it is not allowed to change CFLAGS locally.
Instead, ccflags-y, asflags-y, cppflags-y,
CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
are prepared for that purpose.Signed-off-by: Masahiro Yamada
Tested-by: Gerhard Sittig -
This commit changes the working directory
where the build process occurs.Before this commit, build process occurred under the source
tree for both in-tree and out-of-tree build.That's why we needed to add $(obj) prefix to all generated
files in makefiles like follows:
$(obj)u-boot.bin: $(obj)u-bootHere, $(obj) is empty for in-tree build, whereas it points
to the output directory for out-of-tree build.And our old build system changes the current working directory
with "make -C " syntax when descending into the
sub-directories.On the other hand, Kbuild uses a different idea
to handle out-of-tree build and directory descending.The build process of Kbuild always occurs under the output tree.
When "O=dir/to/store/output/files" is given, the build system
changes the current working directory to that directory and
restarts the make.Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
syntax for descending into sub-directories.
(We can write it like "make $(obj)=" with a shorthand.)
This means the current working directory is always the top
of the output directory.Signed-off-by: Masahiro Yamada
Tested-by: Gerhard Sittig -
This commit moves some flags which are used
under examples/ directory only.Signed-off-by: Masahiro Yamada
-
Signed-off-by: Masahiro Yamada
07 Feb, 2014
1 commit
-
Signed-off-by: Alexey Brodkin
Cc: Vineet Gupta
Cc: Francois Bedard
Cc: Wolfgang Denk
Cc: Heiko Schocher
10 Jan, 2014
1 commit
-
Bringing in the MMC tree means that CONFIG_BOUNCE_BUFFER needed to be
added to include/configs/exynos5-dt.h now.Conflicts:
include/configs/exynos5250-dt.hSigned-off-by: Tom Rini
09 Jan, 2014
1 commit
-
Relocation code based on a patch by Scott Wood, which is:
Signed-off-by: Scott WoodSigned-off-by: David Feng
16 Dec, 2013
3 commits
-
Signed-off-by: Masahiro Yamada
-
Commit fea25720 renamed arch/i386 to arch/x86.
But it missed to modify examples/standalone/Makefile.Since then, examples/standalone/82559_eeprom has
never compiled and nobody has noticed that.After some discussion on ML, we agreed to delete this example.
Signed-off-by: Masahiro Yamada
-
Convert like follows:
CPU mpc83xx -> CONFIG_MPC83xx
CPU mpc85xx -> CONFIG_MPC85xx
CPU mpc86xx -> CONFIG_MPC86xx
CPU mpc5xxx -> CONFIG_MPC5xxx
CPU mpc8xx -> CONFIG_8xx
CPU mpc8260 -> CONFIG_8260
CPU ppc4xx -> CONFIG_4xx
CPU x86 -> CONFIG_X86
ARCH x86 -> CONFIG_X86
ARCH powerpc -> CONFIG_PPCSigned-off-by: Masahiro Yamada
12 Dec, 2013
1 commit
-
The standalone programs do not use the api calls, but rely
directly on u-boot variable gd->jt for the jump table. Commit
fe1378a - "ARM: use r9 for gd" changed the register holding
the address of gd, but the assembly code in the standalone
examples was not updated accordingly. This broke the programs
on ARM relying on the jumptable in the v2013.10 release.
This patch unbricks them by using the correct register.Cc: Michal Simek
Cc: Albert ARIBAUD
Signed-off-by: Jeroen Hofstee
25 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
16 Nov, 2013
1 commit
-
Commit 309a292e deleted OXC board, but
missed to remove the standalone example specific to OXC board.eepro100_eeprom.c has been an orphan file for a long term.
Signed-off-by: Masahiro Yamada
08 Nov, 2013
1 commit
-
Signed-off-by: Masahiro Yamada
20 Sep, 2013
1 commit
-
Fix various misspellings of things like "environment", "kernel",
"default" and "volatile", and throw in a couple grammar fixes.Signed-off-by: Robert P. J. Day
12 Sep, 2013
1 commit
-
After further testing, this patch has two problems. First,
examples/standalone/Makefile was already inherting PLATFORM_LIBS from
the top-level Makefile so this lead to duplicating the private libgcc.
Second, currently the private libgcc has a reference to 'hang' that is
not being fulfilled.This reverts commit 4412db46468d5965da736d06f84d13e68a6e0b51.
Signed-off-by: Tom Rini
07 Sep, 2013
1 commit
-
Add support for defining the gcc lib in standalone examples as is
done in the main u-boot MakefileSigned-off-by: Jack Mitchell
24 Jul, 2013
2 commits
-
Signed-off-by: Wolfgang Denk
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
12 Jun, 2013
1 commit
-
C99's strict aliasing rules are insane to use in low-level code such as a
bootloader, but as Wolfgang has rejected -fno-strict-aliasing in the
past, add a union so that 16-bit accesses can be performed.Compile-tested only.
Signed-off-by: Scott Wood
Acked-by: Wolfgang Denk
16 Mar, 2013
1 commit
-
We can use the declarations of __bss_start and _end from this header
instead of declaring them locally.Signed-off-by: Simon Glass
04 Feb, 2013
1 commit
-
Move these fields into arch_global_data and tidy up.
Signed-off-by: Simon Glass
22 Oct, 2012
1 commit
-
Add section for the linker-generated lists into all possible linker
files, so that everyone can easily use these lists. This is mostly
a mechanical adjustment.Signed-off-by: Marek Vasut
Cc: Joe Hershberger
Cc: Mike Frysinger
16 Oct, 2012
1 commit
-
Both big-endian and little-endian are tested with below commands:
Rom version: (Default, Now we config it as rom version)
qemu-system-mips64el -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic
qemu-system-mips64 -M mips -bios u-boot.bin -cpu MIPS64R2-generic -nographic
Ram version:
qemu-system-mips64el -M mips -cpu MIPS64R2-generic -kernel u-boot -nographic
qemu-system-mips64 -M mips -cpu MIPS64R2-generic -kernel u-boot -nographicSigned-off-by: Zhizhou Zhang
Signed-off-by: Daniel Schwierzeck
27 Mar, 2012
1 commit
-
The LD command in examples/standalone/Makefile ignored platform specific
LDFLAGS setup. Pass these LDFLAGS to the command.Signed-off-by: Marek Vasut
Cc: Bryan Hundven
Cc: Michael Schwingen
14 Jan, 2012
1 commit
-
Signed-off-by: Stefan Kristiansson
07 Dec, 2011
1 commit
-
Modify exports.h to remove its dependencies on other files, thus
enabling standalone apps to require only exports.h from the U-Boot
source tree. This appears to be the intent based on the following
note: http://lists.denx.de/pipermail/u-boot/2010-January/067174.htmlSigned-off-by: Mike Partington
04 Nov, 2011
1 commit
-
U-Boot Makefiles contain a number of tests for compiler features etc.
which so far are executed again and again. On some architectures
(especially ARM) this results in a large number of calls to gcc.This patch makes sure to run such tests only once, thus largely
reducing the number of "execve" system calls.Example: number of "execve" system calls for building the "P2020DS"
(Power Architecture) and "qong" (ARM) boards, measured as:
-> strace -f -e trace=execve -o /tmp/foo ./MAKEALL
-> grep execve /tmp/foo | wc -lBefore: After: Reduction:
==================================
P2020DS 20555 15205 -26%
qong 31692 14490 -54%As a result, built times are significantly reduced, typically by
30...50%.Signed-off-by: Wolfgang Denk
Cc: Andy Fleming
Cc: Kumar Gala
Cc: Albert Aribaud
cc: Graeme Russ
cc: Mike Frysinger
Tested-by: Graeme Russ
Tested-by: Matthias Weisser
Tested-by: Sanjeev Premi
Tested-by: Simon Glass
Tested-by: Macpaul Lin
Acked-by: Mike Frysinger
22 Oct, 2011
1 commit
-
Add standalone program related support for nds32 architecture.
Signed-off-by: Macpaul Lin
18 Oct, 2011
1 commit
-
These are various places I found that checked for conditions equivalent
to isblank.Signed-off-by: Jason Hobbs
13 May, 2011
2 commits
-
Noticed while building all of mpc8xx. Also
constify usage string in timer.c
Warnings fixed are:
timer.c: In function 'timer':
timer.c:189: warning: format not a string literal and no format arguments
timer.c:258: warning: format not a string literal and no format arguments
atm.c: In function 'atmUnload':
atm.c:99: warning: array subscript is above array bounds
atm.c: In function 'atmLoad':
atm.c:65: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_pop_int':
codec.c:678: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_cop_short':
codec.c:585: warning: array subscript is above array bounds
codec.c: In function 'codsp_write_sop_int':
codec.c:512: warning: array subscript is above array boundsSigned-off-by: Joakim Tjernlund
-
GNU Makefile have two flavors of variables, recursively expanded that is
defined by using '=', and simply expanded that is defined by using ':='.The bug is caused by using recursively expanded flavor for BIN and SREC.
As you can see below, they are prepended by $(obj) twice.We can reproduce this bug with a simplified version of this Makefile:
$ cat >Makefile <
09 May, 2011
1 commit
-
All architectures but MIPS are using --gc-sections on final linking.
This patch introduces that feature for MIPS to reduce the memory and
flash footprint.Signed-off-by: Daniel Schwierzeck
Cc: Wolfgang Denk
Cc: Stefan Roese
Cc: Thomas Lange
Cc: Vlad Lungu
Signed-off-by: Shinya Kuribayashi
13 Apr, 2011
2 commits
-
Signed-off-by: Graeme Russ
-
Rename STANDALONE_LOAD_ADDR into CONFIG_STANDALONE_LOAD_ADDR
and allow that the architecture-specific default value gets
overwritten by defining the value in the board header file.Signed-off-by: Wolfgang Denk
Cc: Mike Frysinger
Cc: Shinya Kuribayashi
Cc: Daniel Hellstrom
Cc: Tsi Chung Liew
Cc: Nobuhiro Iwamatsu
31 Mar, 2011
1 commit
-
Commit 44c6e65 "rename _end to __bss_end__ broke building of a large
number of systems (at least all PowerPC?):libstubs.o: In function `app_startup':
examples/standalone/stubs.c:197: undefined reference to `__bss_end__'The rename should not be done for the files in the
examples/standalone/ directory, as these are not using the code from
start.S, but do their own BSS clearing, and either use their own
linker scripts or the ones provided by the compilers.Signed-off-by: Po-Yu Chuang
Signed-off-by: Wolfgang Denk
28 Mar, 2011
1 commit
-
Currently, _end is used for end of BSS section. We want _end to mean
end of u-boot image, so we rename _end to __bss_end__ first.Signed-off-by: Po-Yu Chuang