source: rtems/make/custom/efi332.cfg @ 588b689

4.104.114.84.95
Last change on this file since 588b689 was 588b689, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 19, 1998 at 9:57:39 PM

Bug report from Peter Mueller <pmueller@…>:

I use the m68k/efi332 BSP together with a home made board. After some
time of debugging I found that the m68020 CPU is used to build rtems.
This is not correct, because the 68332 does not have some of the 68020
features (no separate int stack ...). It is necessary to change this to
mcpu32. After a clean/make everything works fine.

  • Property mode set to 100644
File size: 2.3 KB
Line 
1#
2#  Config file for the efi332 BSP
3#
4#  $Id$
5#
6
7include $(RTEMS_ROOT)/make/custom/default.cfg
8
9RTEMS_CPU=m68k
10RTEMS_CPU_MODEL=mcpu32
11
12# This is the actual bsp directory used during the build process.
13RTEMS_BSP_FAMILY=efi332
14
15#  This contains the compiler options necessary to select the CPU model
16#  and (hopefully) optimize for it.
17#
18# XXX JRS - my gas does not grok -m68332
19#CPU_CFLAGS = -m68332
20CPU_CFLAGS = -m68020
21
22# optimize flag: typically -0, could use -O4 or -fast, -O4 is ok for RTEMS
23CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
24
25# This target does NOT support the TCP/IP stack so ignore requests
26# to enable it.
27HAS_NETWORKING=no
28
29# Override default start file
30START_BASE=start332
31
32#  This section makes the target dependent options file.
33#  NDEBUG (C library)
34#     if defined asserts do not generate code.  This is commonly used
35#     as a command line option.
36#
37#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
38#     do not pause between screens of output in the rtems tests
39#
40#  RTEMS_DEBUG (RTEMS)
41#     If defined, debug checks in RTEMS and support library code are enabled.
42
43define make-target-options
44        @echo "/* #define NDEBUG 1 */ "                     >>$@
45        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
46        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
47endef
48
49# The following are definitions of make-exe which will work using ld as
50# is currently required.  It is expected that as of gcc 2.8, the end user
51# will be able to override parts of the compilers specs and link using gcc.
52
53ifeq ($(RTEMS_USE_GCC272),yes)
54define make-exe
55        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).nxe \
56            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
57        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
58        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
59            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
60        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
61        $(SIZE) $(basename $@).nxe
62endef
63else
64define make-exe
65        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@).nxe \
66            $(LINK_OBJS) $(LINK_LIBS)
67        $(OBJCOPY) -O srec $(basename $@).nxe $(basename $@).i
68        $(SED) -e 's/.$$//' -e '/^S0/d' $(basename $@).i | \
69            $(PROJECT_TOOLS)/packhex > $(basename $@).exe
70        $(NM) -g -n $(basename $@).nxe > $(basename $@).num
71        $(SIZE) $(basename $@).nxe
72endef
73endif
74
75
76# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.