summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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