9
0
Fork 0
Commit Graph

34 Commits

Author SHA1 Message Date
Renaud Barbier 18156665c0 ppc: P1022DS: update Kconfig and Makefile
Kconfig and make files are updated to build the Freescale P1022DS
image.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-03-19 07:43:02 +01:00
Renaud Barbier fd0314b47e ppc: mpc85xx: use common linker script
Updates to use a common linker script for all mpc85xx boards,
avoiding duplication.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-01-16 14:00:30 +01:00
Renaud Barbier 9e1528ce7c ppc: mpc85xx: build directives
Add the Kconfig and Makefile directives to build barebox
for the GEIP DA923RC board.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-11-06 11:04:38 +01:00
Renaud Barbier fdf4816908 Minimal P2020RDB platform support and configuration file
This is limited board support for the Freescale P2020RDB in single CPU
mode. The DDR is configured for a memory bus running at 667Mhz.
The system boots from NOR flash and provides the console at 115200
bauds, no other drivers are included.

Finally, the PPC Kconfig and make file make the building of
the P2020RDB platform firmware possible.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-05-17 20:33:39 +02:00
Renaud Barbier 99dc5d2c9a 85xx core support build files
Kconfig and Makefile allow to include the 85xx cpu support in the
compilation process.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-05-17 20:33:39 +02:00
Renaud Barbier bd20ba6798 Preparation stage to support multiple PPC architectures
arch/ppc/Kconfig is reworked to make the configuration environment
architecture neutral. All MPC5200 configuration is moved to the
MPC5200 architecture specific configuration file. These modifications
are reflected in the PCM030 board support.

arch/ppc/Makefile compilation directives are updated in preparation
for the introduction of future cpus/machines.

lib/time.c is moved to the architecture specific directory and the
building instructions updated in the Make files. The file is
cleaned up of unused code.

The definition of L1_CACHE_... is updated and CACHELINE_SIZE is
defined in ppc/include/asm/cache.h for future use by the mpc85xx.
The file mach-mpc5xxx/pci_mpc5200.c and mach-mpc5xxx/start.S are
updated accordingly.

The declaration of search_exception_table is moved in
include/asm/common.h because it is used across architectures.
mach-mpc5xxx/traps.c is also updated to reflect this change.

The definition of exception in asm/ppc_asm.tmpl is updated for future
use by the mpc85xx. The file starts.S in mach-mpc5xxx is updated
accordingly.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-05-02 10:16:30 +02:00
Loïc Minier 4e26fba680 Only pass -P to cpp when generating ld scripts
When building sandbox with ccache, one would hit warnings such as:
    warning: 'struct mmsghdr' declared inside parameter list
on random files; a way to reproduce this issue is to build a simple
file doing just:
    #include <sys/socket.h>

    int main(void) {
        return 0;
    }

    gcc -Wall -P -c -o foo foo.c

But actually the -P flag is only useful when generating non-C files,
such as linker scripts in the case of barebox.  Removing the -P flag
from all the gcc invocations, except when generating .lds files makes
the warning go away.  It turns out that this is what
linux/scripts/Makefile.build also does nowadays.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-18 09:18:41 +02:00
Jean-Christophe PLAGNIOL-VILLARD d8c86961b3 move boards to arch/<architecure>/boards
this will allow each arch to handle the boards more simply and depending on
there need

the env var BOARD will refer to the current board dirent

for sandbox as we have only one board the board dirent is arch/sandbox/board

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-07-23 08:35:25 +02:00
Robert P. J. Day 06c5d3d9fa Remove/adjust erroneous references to CONFIG_MODULE.
The correct config variable is CONFIG_MODULES, so tweak any references
to the incorrect CONFIG_MODULE.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-21 14:21:45 +01:00
Sascha Hauer a3ffa97f40 rename U-Boot-v2 project to barebox
This has been done with the following script:

find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
	-e 's/u2boot/barebox/g' \
	-e 's/U2Boot/barebox/g' \
	-e 's/U-boot V2/barebox/g' \
	-e 's/u-boot v2/barebox/g' \
	-e 's/U-Boot V2/barebox/g' \
	-e 's/U-Boot-v2/barebox/g' \
	-e 's/U_BOOT/BAREBOX/g' \
	-e 's/UBOOT/BAREBOX/g' \
	-e 's/uboot/barebox/g' \
	-e 's/u-boot/barebox/g' \
	-e 's/u_boot/barebox/g' \
	-e 's/U-Boot/barebox/g' \
	-e 's/U-boot/barebox/g' \
	-e 's/U-BOOT/barebox/g'

find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
	xargs -0 -r rename 's/u[-_]?boot/barebox/'

It needs some manual fixup following in the next patch

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Jean-Christophe PLAGNIOL-VILLARD e988d5d990 [PPC] Move include/asm-ppc/arch-* to arch/ppc/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:30 +02:00
Sascha Hauer e25cc045ac PPC: Add cleanup flags
Add cleanup flags to Makefile to let the linker throw away unneeded
objects.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:29:31 +02:00
Sascha Hauer cd75dd3647 [kbuild] remove -Wstritct-prototypes from arch/ppc/Makefile. It's
already in toplevel Makefile
2008-06-03 12:56:35 +02:00
Sascha Hauer 36ffd6f18a [kbuild] move -pipe from architecture Makefiles to toplevel
Makefile
2008-06-03 12:54:37 +02:00
Sascha Hauer 39a78d9951 [kbuild] remove -Wall from architecture Makefiles. It's already
in toplevel CFLAGS
2008-06-03 12:51:05 +02:00
Sascha Hauer 847934bc96 [kbuild] move -nostdinc from architecture Makefiles to toplevel
Makefile
2008-06-03 12:39:45 +02:00
Sascha Hauer b8725ffe1d [kbuild] move -ffreestanding from architecture Makefiles to toplevel
Makefile
2008-06-03 12:37:52 +02:00
Sascha Hauer bca64df501 [kbuild] move -fno-builtin from architecture Makefiles to toplevel
Makefile
2008-06-03 12:36:35 +02:00
Sascha Hauer 7681d868ba [kbuild] move -Os flag from architecture Makefiles to toplevel
Makefile
2008-06-03 12:29:57 +02:00
Sascha Hauer 878f38de8f [kbuild] change architecture Makefiles not to overwrite
CFLAGS, instead append them to the existing CFLAGS.
	 Also, remove all double CFLAGS
2008-06-03 12:24:50 +02:00
Marc Kleine-Budde 049063e2ad remove -isystem with empty argument
This patch removes the "-isystem $(gccincdir)" from the
arch/*/Makefile because gccindir is empty.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 20:03:37 +01:00
Marc Kleine-Budde 57bb3cd90d don't against link libgcc
We don't want to link against libgcc.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 08:21:02 +01:00
Juergen Beisert a7d96488e5 Using correct board names all over the place
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
2007-11-08 18:23:44 +01:00
sascha d59ca7feb3 Linking: Remove linker scripts from (arm based-) boards and add
a generic linker script to arch/arm/lib/u-boot.lds.S.
	 If a board wants to overwrite a linker script it can do
	 so using CONFIG_BOARD_LINKER_SCRIPT.
	 There is no generic linker script for ppc and blackfin
	 yet, so still use the board specific one.
2007-10-17 12:21:53 +02:00
Sascha Hauer 59e6de7032 add powerpc specific bits for modules 2007-10-01 09:49:22 +02:00
Sascha Hauer 3b90ee9a3d add CONFIG_RELOCATABLE 2007-07-12 09:27:06 +02:00
Sascha Hauer 98432d3925 svn_rev_683
more cleanups, fix compiler warnings
2007-07-05 18:02:16 +02:00
Sascha Hauer 19ea863d0f svn_rev_672 2007-07-05 18:02:15 +02:00
Sascha Hauer 66dd92dd7d svn_rev_619
no need for relocatable code anymore. saves ~10k space
2007-07-05 18:02:10 +02:00
Sascha Hauer 09d1896bd0 svn_rev_550
linux->uboot
2007-07-05 18:02:04 +02:00
Sascha Hauer 79bd10153a svn_rev_233 2007-07-05 18:01:35 +02:00
Sascha Hauer 0c48f25ade svn_rev_173
WIP
2007-07-05 18:01:29 +02:00
Sascha Hauer 0d3d354cf6 svn_rev_155
on the way to compile powerpc
2007-07-05 18:01:28 +02:00
Sascha Hauer ceddda143b svn_rev_154
move lib_ppc to arch/ppc
2007-07-05 18:01:28 +02:00