OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [make/] [custom/] [efi68k.cfg] - Blame information for rev 799

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
#
2
#  Config file for the efi68k BSP
3
#
4
#  $Id: efi68k.cfg,v 1.2 2001-09-27 12:02:52 chris Exp $
5
#
6
 
7
include $(RTEMS_ROOT)/make/custom/default.cfg
8
 
9
RTEMS_CPU=m68k
10
RTEMS_CPU_MODEL=m68000
11
 
12
# This is the actual bsp directory used during the build process.
13
RTEMS_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
20
CPU_CFLAGS = -m68000
21
 
22
# optimize flag: typically -0, could use -O4 or -fast
23
# -O4 is ok for RTEMS
24
CFLAGS_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
 
38
define make-target-options
39
        @echo "/* #define NDEBUG 1 */ "                     >>$@
40
        @echo "#define RTEMS_TEST_NO_PAUSE 1"               >>$@
41
        @echo "/* #define RTEMS_DEBUG  1 */"                >>$@
42
endef
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
 
48
ifeq ($(RTEMS_USE_GCC272),yes)
49
define 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
57
endef
58
else
59
define 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
67
endef
68
endif
69
 
70
# Miscellaneous additions go here

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.