summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-04-04 10:51:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-05-06 08:53:26 +0200
commit64476d2177a53228319c4ab5b99cfb66ec8cc365 (patch)
treee61e6b30d8df45c2972f1a2abcdb5b879155ca44 /include/asm-generic
parentc1bcb052ddf55c9181e0ce65962a793584d9154e (diff)
downloadbarebox-64476d2177a53228319c4ab5b99cfb66ec8cc365.tar.gz
barebox-64476d2177a53228319c4ab5b99cfb66ec8cc365.tar.xz
ARM: compile in image size and magic into barebox image
This is useful to detect a barebox image and to be able to copy only the image size if barebox is stored on raw partitions which are bigger than the image. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/sections.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h
index c5d60a9d75..1f48fb8c6b 100644
--- a/include/asm-generic/sections.h
+++ b/include/asm-generic/sections.h
@@ -4,5 +4,8 @@
extern char _text[], _stext[], _etext[];
extern char __bss_start[], __bss_stop[];
extern char _end[];
+extern void *_barebox_image_size;
+
+#define barebox_image_size (unsigned int)&_barebox_image_size
#endif /* _ASM_GENERIC_SECTIONS_H_ */