source: rtems/make/custom/efi68k.cfg @ 97ad1a5

Last change on this file since 97ad1a5 was 97ad1a5, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 16, 2000 at 5:14:36 PM

After investigating a problem reported by Franck Julien <FranckJ@…>,
I discovered that when specifying -m68000 and -msoft-float to gcc 2.95.2,
it decides that the proper multilib variant is the default one which is
compiled for the m68020 and hardware floating point. This appears to be
because there is no 68000/soft-float library variant. This problem
applies to all m68000 class CPUs options including -m68302.

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