Patches by Stephan Linz, 11 Dec 2003:
- more documentation for NIOS port
- new struct nios_pio_t, struct nios_spi_t
- Reconfiguration for NIOS Development Kit DK1C20:
o move board related code from board/dk1c20
to board/altera/dk1c20
o create a new common source path board/altera/common
and move generic flash access stuff into it
o change/expand configuration file DK1C20.h
- Add support for NIOS Development Kit DK1S10
- Add status LED support for NIOS systems
- Add dual 7-segment LED support for Altera NIOS DevKits
diff --git a/Makefile b/Makefile
index 04b94fd..b2ae282 100644
--- a/Makefile
+++ b/Makefile
@@ -1046,8 +1046,41 @@
## Nios32
#########################################################################
+DK1C20_safe_32_config \
+DK1C20_standard_32_config \
DK1C20_config: unconfig
- @./mkconfig $(@:_config=) nios nios dk1c20
+ @ >include/config.h
+ @[ -z "$(findstring _safe_32,$@)" ] || \
+ { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
+ echo "... NIOS 'safe_32' configuration" ; \
+ }
+ @[ -z "$(findstring _standard_32,$@)" ] || \
+ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
+ echo "... NIOS 'standard_32' configuration" ; \
+ }
+ @[ -z "$(findstring DK1C20_config,$@)" ] || \
+ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
+ echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
+ }
+ @./mkconfig -a DK1C20 nios nios dk1c20 altera
+
+DK1S10_safe_32_config \
+DK1S10_standard_32_config \
+DK1S10_config: unconfig
+ @ >include/config.h
+ @[ -z "$(findstring _safe_32,$@)" ] || \
+ { echo "#define CONFIG_NIOS_SAFE_32 1" >>include/config.h ; \
+ echo "... NIOS 'safe_32' configuration" ; \
+ }
+ @[ -z "$(findstring _standard_32,$@)" ] || \
+ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
+ echo "... NIOS 'standard_32' configuration" ; \
+ }
+ @[ -z "$(findstring DK1S10_config,$@)" ] || \
+ { echo "#define CONFIG_NIOS_STANDARD_32 1" >>include/config.h ; \
+ echo "... NIOS 'standard_32' configuration (DEFAULT)" ; \
+ }
+ @./mkconfig -a DK1S10 nios nios dk1s10 altera
#########################################################################