diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-14 19:52:12 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-29 10:22:46 +0100 |
commit | fb56fffbcbea96135fe3aa889b338aa7dd1c4dcb (patch) | |
tree | a772596f7d4be6882f0b756c4639a5a385db4693 /include | |
parent | b7e74539f84cc4be50286fd8bc67aeea0edd18c5 (diff) | |
download | barebox-fb56fffbcbea96135fe3aa889b338aa7dd1c4dcb.tar.gz barebox-fb56fffbcbea96135fe3aa889b338aa7dd1c4dcb.tar.xz |
[sandbox] add propper sandbox detection
This patch adds a __SANDBOX__ define to identify compiling for the
sandbox.
When building for sandbox, don't use sync() workaround.
Fixes this error for sandbox on PPC:
CC common/memsize.o
common/memsize.c:30:38: error: asm/io.h: No such file or directory
common/memsize.c: In function 'get_ram_size':
common/memsize.c:51: warning: implicit declaration of function 'sync'
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/sandbox.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 25bb18f787..c96d762f2d 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -1,5 +1,6 @@ - #ifndef __CONFIG_H #define __CONFIG_H +#define __SANDBOX__ + #endif /* __CONFIG_H */ |