summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-06 20:36:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-07-06 20:36:48 +0000
commit168ba07c847c15c6911483a965da0942a5a01fcf (patch)
tree640f85d1081d88b8fdfe641e10266769486a1850 /make
parent55e4dcf30e4fc690ca97949e13ccf904a9324dfc (diff)
downloadrtems-168ba07c847c15c6911483a965da0942a5a01fcf.tar.bz2
Patch from Eric Valette <valette@crf.canon.fr> and Yacine El Kolli
<elkolli@crf.canon.fr> to add support for the mbx860_005b.
Diffstat (limited to 'make')
-rw-r--r--make/custom/mbx860_005b.cfg38
-rw-r--r--make/custom/mbx8xx.cfg4
2 files changed, 40 insertions, 2 deletions
diff --git a/make/custom/mbx860_005b.cfg b/make/custom/mbx860_005b.cfg
new file mode 100644
index 0000000000..f6243c8fe9
--- /dev/null
+++ b/make/custom/mbx860_005b.cfg
@@ -0,0 +1,38 @@
+#
+# Config file for a PowerPC MPC860-based MBX860-005b card.
+#
+
+#
+# All MBX8xx configurations share the same base file, only a few
+# parameters differ.
+#
+
+RTEMS_MBX_MODEL=mbx860_005b
+
+# The 860_005b has 16M ram : org = 0x0, l = 16M
+MBX8xx_LDFLAGS=-Wl,--defsym -Wl,HeapSize=0x100000
+
+include $(RTEMS_ROOT)/make/custom/mbx8xx.cfg
+define make-target-options
+ @echo "#ifdef mpc$(CPU_TYPE)" >>$@
+ @echo "#undef mpc$(CPU_TYPE)" >>$@
+ @echo "#endif" >>$@
+ @echo "#define mpc$(CPU_TYPE) 1" >>$@
+ @echo >>$@
+ @echo "#define CONSOLE_MINOR SMC1_MINOR" >>$@
+ @echo "#define UARTS_USE_INTERRUPTS 0" >>$@
+ @echo "#define EPPCBUG_SMC1 1" >>$@
+ @echo "#define EPPCBUG_VECTORS 1" >>$@
+ @echo "#define INSTRUCTION_CACHE_ENABLE 1" >>$@
+ @echo "#define DATA_CACHE_ENABLE 1" >>$@
+ @echo >>$@
+ @echo "#define PPC_VECTOR_FILE_BASE 0x0000" >>$@
+ @echo "#define PPC_USE_SPRG 0" >>$@
+ @echo "/* #define PPC_USE_DATA_CACHE 1" */ >>$@
+ @echo >>$@
+ @echo "/* #define NDEBUG 1 */ " >>$@
+ @echo "#define RTEMS_TEST_NO_PAUSE 1" >>$@
+ @echo "/* #define STACK_CHECKER_ON 1 */" >>$@
+ @echo "/* #define STACK_CHECKER_REPORT_USAGE 1 */" >>$@
+ @echo "/* #define RTEMS_DEBUG 1 */" >>$@
+endef
diff --git a/make/custom/mbx8xx.cfg b/make/custom/mbx8xx.cfg
index 490a7d6faa..7a2bbb72ed 100644
--- a/make/custom/mbx8xx.cfg
+++ b/make/custom/mbx8xx.cfg
@@ -181,8 +181,8 @@ define make-exe
endef
else
define make-exe
- $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) -o $(basename $@).exe \
- $(LINK_OBJS) $(LINK_LIBS)
+ $(LINK.c) $(AM_CFLAGS) $(AM_LDFLAGS) $(MBX8xx_LDFLAGS) \
+ -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
$(NM) -g -n $@ > $(basename $@).nm
$(STRIP) -o $(basename $@) $@
$(SIZE) $@