summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:02:07 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:02:07 +0200
commit85a8fd38d00c1d96617aaf1b14a109936860ff32 (patch)
tree1eac38d1e6b675309290b7c357ec83e262dc306a /include/image.h
parent1b61a170f110a8e679604242f777c8a178265e7d (diff)
downloadbarebox-85a8fd38d00c1d96617aaf1b14a109936860ff32.tar.gz
barebox-85a8fd38d00c1d96617aaf1b14a109936860ff32.tar.xz
svn_rev_586
add IH_CPU for cpu checking
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 98f154c981..0c72eabd10 100644
--- a/include/image.h
+++ b/include/image.h
@@ -78,6 +78,30 @@
#define IH_CPU_BLACKFIN 16 /* Blackfin */
#define IH_CPU_AVR32 17 /* AVR32 */
+#if defined(__PPC__)
+#define IH_CPU IH_CPU_PPC
+#elif defined(__ARM__)
+#define IH_CPU IH_CPU_ARM
+#elif defined(__I386__)
+#define IH_CPU IH_CPU_I386
+#elif defined(__mips__)
+#define IH_CPU IH_CPU_MIPS
+#elif defined(__nios__)
+#define IH_CPU IH_CPU_NIOS
+#elif defined(__M68K__)
+#define IH_CPU IH_CPU_M68K
+#elif defined(__microblaze__)
+#define IH_CPU IH_CPU_MICROBLAZE
+#elif defined(__nios2__)
+#define IH_CPU IH_CPU_NIOS2
+#elif defined(__blackfin__)
+#define IH_CPU IH_CPU_BLACKFIN
+#elif defined(__avr32__)
+#define IH_CPU IH_CPU_AVR32
+#else
+# error Unknown CPU type
+#endif
+
/*
* Image Types
*