source: rtems/make/custom/gen68340.cfg @ 28cc172

4.104.114.84.95
Last change on this file since 28cc172 was 28cc172, checked in by Joel Sherrill <joel.sherrill@…>, on 11/22/99 at 14:28:36

Removed need for START_BASE.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1#
2#  Config file for a "generic 68340" BSP
3#
4#  $Id$
5#
6
7RTEMS_CPU=m68k
8
9RTEMS_CPU_MODEL=mcpu32
10
11include $(RTEMS_ROOT)/make/custom/default.cfg
12
13# This is the actual bsp directory used during the build process.
14RTEMS_BSP_FAMILY=gen68340
15
16CPU_CFLAGS = -mcpu32
17
18# optimize flag: typically -0, could use -O4 or -fast
19# -O4 is ok for RTEMS
20CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
21
22#  This section makes the target dependent options file.
23#  NDEBUG (C library)
24#     if defined asserts do not generate code.  This is commonly used
25#     as a command line option.
26#
27#  RTEMS_TEST_NO_PAUSE (RTEMS tests)
28#     do not pause between screens of output in the rtems tests
29#
30#  RTEMS_DEBUG (RTEMS)
31#     If defined, debug checks in RTEMS and support library code are enabled.
32#
33
34define make-target-options
35        @echo "/* #define NDEBUG 1 */ "                     >>$@
36        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
37        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
38endef
39
40# The following are definitions of make-exe which will work using ld as
41# is currently required.  It is expected that as of gcc 2.8, the end user
42# will be able to override parts of the compilers specs and link using gcc.
43
44ifeq ($(RTEMS_USE_GCC272),yes)
45
46# override default location of Standard C Library
47LIBC_LIBC=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libc.a
48LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/m68000/msoft-float/libm.a
49
50define make-exe
51        @ echo
52        @ echo "WARNING: newlib may use bit test instructions!!"
53        @ echo
54        $(LD) $(LDFLAGS) -N -T $(LINKCMDS) -o $(basename $@).exe \
55            $(START_FILE) $(LINK_OBJS) --start-group $(LINK_LIBS) --end-group
56        $(NM) -g -n $(basename $@).exe > $(basename $@).num
57        $(SIZE) $(basename $@).exe
58endef
59else
60
61define make-exe
62        $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_LD) \
63            -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
64        $(NM) -g -n $(basename $@).exe > $(basename $@).num
65        $(SIZE) $(basename $@).exe
66        # if you want to make a prom image
67        # m68k-rtems-objcopy --adjust-section-vma \
68        #  .data=`m68k-rtems-objdump --section-headers $(basename $@).exe | \
69        #  awk 'function h2d(x) { x=toupper(x); digits=length(x); s=0 ; \
70        #       for (p=digits; p>0; p--) \
71        #       s += (16^(p-1)) * ( index("0123456789ABCDEF",\
72        #        substr(x,1+digits-p,1)) -1 );\
73        #        return s } ;\
74        #        /\.text/ { base = $$4 ; size = $$3 };\
75        #        END { printf("0x%x", h2d(base) + h2d(size)) }'\
76        #       ` $(basename $@).exe
77        # if you want to convert it to ieee
78        # m68k-rtems-objcopy --output-target=ieee --debugging \
79        #       $(basename $@).exe $(basename $@).ieee
80endef
81endif
82
83
84# Miscellaneous additions go here
Note: See TracBrowser for help on using the repository browser.