9
0
Fork 0
Commit Graph

60 Commits

Author SHA1 Message Date
Sascha Hauer 51d4b74789 remove strange flush_cache functions
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-10-21 22:21:25 +02:00
Sascha Hauer 9b7aede404 Merge branch 'for-mainline' of git://git.pengutronix.de/git/rsc/barebox into next 2010-09-22 16:01:07 +02:00
Robert Schwebel 038163e9df sandbox: add longopts and fix segfault
Until now, the main function of the sandbox port wants to use the libc
getopt(), but as we have a getopt() implementation in barebox as well,
it is silently used instead. This works in the usual case, but if an
error occurs (i.e. by using an unknown argument) in getopt(), the
implementation tries to write to the console, which is not initialized
and thus breaks with a null pointer exception.

This patch changes the main function to use getopt_long() instead of
getopt(). This makes us use the implementation in glibc and while being
there, we get long options, which makes us look more professional...

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
2010-09-21 06:37:23 +02:00
Jean-Christophe PLAGNIOL-VILLARD e85c6bb0a7 driver: use id as -1 for auto assigned id
before if you specify id = 0 the next available id will be taken
otherwise fail if already registered now as in linux we use -1

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 08:58:52 +02:00
Jean-Christophe PLAGNIOL-VILLARD 55819d58d4 types.h: move __kernel_dev_t to include/linux/types.h
no need to have a arch specific type

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-17 10:56:24 +08:00
Jean-Christophe PLAGNIOL-VILLARD 499aa0b4f5 configs: use new savedefconfig format as in linux
this will reduce and simplify defconfigs maintainance
it will also save some disk space

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-17 10:46:59 +08: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 e11c07c339 make reset_cpu a __noreturn function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-03-30 14:15:03 +02:00
Sascha Hauer 8ca42160c8 sandbox: update defconfig
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Peter Korsgaard cfbcdac01f sandbox: common: fix device names for environment files (-e)
The env%d string got created, but the the hardcoded "env" string was
always used instead, causing errors with loading the env.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-16 08:37:28 +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 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
Jean-Christophe PLAGNIOL-VILLARD e2a7b79cfc [SANDBOX] move include/asm-sandbox to arch/arm/include/sandbox
Move platform independent header files to arch/sandbox/include/asm, leaving
those in asm/arch*.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:28 +02:00
Sascha Hauer 2dbb2d1f09 sandbox: update defconfig
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-12 14:17:15 +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 02ba8a0542 get rid of device ids
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:47 +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
Nishanth Menon cb3f2e34c4 Bitops:Remove generic_funcs
Use asm-generic/bitops/xyz.h instead of using
generic_xyz functions.

Signed-off-by: Nishanth Menon <x0nishan@ti.com>
2008-08-15 08:47:50 +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 9c9f3ffd16 Doxygen cleanups
- Remove trailing whitespaces from doxygen files
- escape '<' '>' with backslashes. Otherwise Doxygen interpretes them as
  html tags

Signed-off-by: Carsten Schlote <schlote@vahanus.net>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-04-04 14:45:04 +02:00
Sascha Hauer d9016f7cce do not sleep if read gets EAGAIN. Must be some testing leftover 2008-03-11 21:48:38 +01:00
Sascha Hauer 8759e68de2 Add the possibility to have an architecture specific ctrlc() function.
This allows us to return immediately in ctrlc() on sandbox and thus
not slow down network througput.
2008-03-11 00:00:37 +01:00
Sascha Hauer 187847b2b4 add globbing support 2008-03-09 22:35:38 +01:00
Marc Kleine-Budde 5c2afd89e1 [sandbox] fix read for buffers of zero length
This patch fixes the read function for the linux sandbox if a buffer
of zero length should be read. The error handling introduced in
6574529bb5 detects a false positive if the
length is zero.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-01-02 21:48:31 +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 f6f9065213 [sandbox] new defconfig
regenerated sandbox' defconfig

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:46:55 +01:00
Marc Kleine-Budde 6574529bb5 [sandbox] add error handling to read
This patch adds propper error handling to the linux' read functions.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:50 +01:00
Marc Kleine-Budde aff35bbe09 improved codingstyle
this patch improves the codingstyle

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde 66bdf91279 [sparse] define functions static, use NULL as NULL pointer
fixes:
arch/sandbox/board/hostfile.c:32:9: warning: symbol 'hf_read' was not declared. Should it be static?
arch/sandbox/board/hostfile.c:43:9: warning: symbol 'hf_write' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:49 +01:00
Marc Kleine-Budde c27f282cc3 [sparse] declare functions static
this fixes:
arch/sandbox/board/clock.c:28:10: warning: symbol 'linux_clocksource_read' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:48 +01:00
Marc Kleine-Budde a69f6b6836 [sparse] declare functions static
this fixes:
arch/sandbox/board/hostfile.c:32:9: warning: symbol 'hf_read' was not declared. Should it be static?
arch/sandbox/board/hostfile.c:43:9: warning: symbol 'hf_write' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:48 +01:00
Marc Kleine-Budde 039248654a [sandbox] fix stdin and stdout fd for sandbox console
u_boot_register_console uses the wrong filedescriptors for in and out
the are swapped. This patch fixes this problem and uses fileno instead.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +01:00
Marc Kleine-Budde dbfef6fb63 [sandbox] HACK: add variable _SDA_BASE_ to main, to please linker
This patch is a _CRUDE_HACK_ the linker complains about the missing
symbol _SDA_BASE_ on powerpc, so git it to him to please him and
finally link the sandbx.

LD      uboot
/usr/lib/gcc/powerpc-linux-gnu/4.2.3/../../../../lib/crt1.o:(.rodata+0x0): undefined reference to `_SDA_BASE_'

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-29 10:22:47 +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 be57231bc8 [sandbox] use C99 initializers
This patch uses C99 initializers to initialize the timeout in linux_tstc()

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2007-11-28 10:05:47 +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 9b77ffedf7 Merge branch 'master' of jbe@octopus:/home/git/projects/u-boot-v2 2007-11-09 14:09:54 +01:00
Juergen Beisert 9b07bdbbdc Merge branch 'docu' 2007-11-09 14:06:57 +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