summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2009-01-27 09:24:16 -0500
committerJustin Waters <justin.waters@timesys.com>2009-01-27 09:43:25 -0500
commit05c0535449304c64daa0c1aa4a1334f2873a0212 (patch)
tree563869fe5726fcbb72ec12977b5d2b13a031bf1e /Makefile
parent72d15e705bc3983884105cb7755c7ba80e74a0a5 (diff)
Add support for the AT91RM9200-EK board.
Since there are very few differences between the EK and DK boards, you simply select the board that you wish to use via the config line. This simplifies the forward porting effort, while still maintaining the old build steps. Signed-off-by: Justin Waters <justin.waters@timesys.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d533564d9a..44ee0afba8 100644
--- a/Makefile
+++ b/Makefile
@@ -2570,8 +2570,15 @@ shannon_config : unconfig
## Atmel AT91RM9200 Systems
#########################################################################
+at91rm9200ek_config \
at91rm9200dk_config : unconfig
- @$(MKCONFIG) $(@:_config=) arm arm920t at91rm9200dk atmel at91rm9200
+ @mkdir -p $(obj)include
+ @if [ "$(findstring ek_,$@)" ] ; then \
+ echo "#define CONFIG_AT91RM9200EK 1" >>$(obj)include/config.h ; \
+ else \
+ echo "#define CONFIG_AT91RM9200DK 1" >>$(obj)include/config.h ; \
+ fi;
+ @$(MKCONFIG) -a at91rm9200dk arm arm920t at91rm9200dk atmel at91rm9200
cmc_pu2_config : unconfig
@$(MKCONFIG) $(@:_config=) arm arm920t cmc_pu2 NULL at91rm9200