9
0
Fork 0
Commit Graph

33 Commits

Author SHA1 Message Date
Sascha Hauer b733572fa4 sandbox: only test for sdl libs when sdl is enabled
Otherwise we get the following warning when sdl is not installed
on the compile host:

Package sdl was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl' found

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-10-17 22:17:48 +02:00
Jean-Christophe PLAGNIOL-VILLARD 9d73b518fc sandbox: add sdl video support
This will allow speed up the dev on framebuffer.

By default the resolution is VGA but this can be changed via cmdline.

We use a pthread to Flip the screen every 100ms as we can not detect when
barebox update it as barebox simpliy write in a buffer.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-09-25 10:15:29 +02:00
Jean-Christophe PLAGNIOL-VILLARD a59471d133 sandbox: move ELFCLASS detection to asm/elf.h
now we can detect the host build from gcc macro
and cross compile the sandbox

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Loïc Minier <loic.minier@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-11-22 21:09:26 +01:00
Sascha Hauer 6b8503baab Merge branch 'master' into next 2011-10-23 13:38:39 +02:00
Jean-Christophe PLAGNIOL-VILLARD 9a5898e524 sandbox: simplify linker script
let the linker to provide the basic linker script

just insert the commands and initcalls before the .rodata section

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-23 13:36:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD e3e71f5e66 sandbox: move __SANDBOX__ to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2011-10-23 13:36:22 +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
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 b4521685bf [SANDBOX] Move include/asm-sandbox/arch-* to arch/sandbox/*/include/mach
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:29 +02:00
Sascha Hauer c1cf740bec sandbox: use libc ioctl for os part
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-12 14:14:53 +02:00
Sascha Hauer e7de22476e sandbox: Fix generation of linker script
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-01-21 23:25:35 +01:00
Sascha Hauer 5e112453b2 Sandbox: Fix make system
Sandbox compilation failed with:

gcc -Wp,-MD,arch/sandbox/lib/.tap.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/4.3.1/include -I/usr/include -Iinclude -P -Wall    -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(tap)"  -D"KBUILD_MODNAME=KBUILD_STR(tap)" -c -o arch/sandbox/lib/tap.o arch/sandbox/lib/tap.c
In file included from /usr/include/bits/socket.h:32,
                 from /usr/include/sys/socket.h:36,
                 from arch/sandbox/lib/tap.c:29:
/usr/include/limits.h:125:26: error: limits.h: No such file or directory

/usr/include/limits.h uses the next_include directive
This was because of the -nostdinc

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-09-30 10:45:39 +02:00
Sascha Hauer 0fe550662d Fix typo introduced with commit 9e6ee5e795 2008-06-24 11:17:29 +02:00
Sascha Hauer 9e6ee5e795 [sandbox] export ELF_CLASS for sandbox 2008-06-03 13:35: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
Sascha Hauer 9c7d282579 [general] Move include/configs/* to board/*/config.h 2008-04-07 12:18:05 +02:00
Sascha Hauer 187847b2b4 add globbing support 2008-03-09 22:35:38 +01: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 ebe11c4f22 [sandbox] add ELF_{ARCH,FORMAT} for powerpc
This patch adds the needed ELF_{ARCH,FORMAT} for the sandbox on powerpc

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:46 +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
Marc Kleine-Budde ff0b721962 Revert "add linker script for sandbox"
This reverts commit 175e8438df.
2007-11-09 13:02:31 +01:00
Robert Schwebel 0e58480478 Merge branch 'master' of ssh://rsc@octopus/home/git/projects/u-boot-v2 2007-11-08 17:22:51 +01:00
Marc Kleine-Budde 246db4fe93 added lds-y for sandbox
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-10-31 16:43:17 +00:00
Robert Schwebel (Laptop) 175e8438df add linker script for sandbox 2007-10-31 17:21:29 +01:00
Sascha Hauer 9994dfb818 rename linux target to sandbox 2007-07-12 12:19:39 +02:00
Sascha Hauer d757720766 arch/linux -> arch/sandbox 2007-07-12 12:12:34 +02:00