Changeset 0d744ab in rtems


Ignore:
Timestamp:
Apr 3, 2000, 2:03:11 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
effc2c4
Parents:
52448f35
Message:

Patch from Jay Kulpinski <jskulpin@…> that makes
sure the mvme2307 BSP uses new exception processing. Jay included
modifications to the make-exe rule to build bootable binary images
but I (being Joel) am unsure if the way they jump around the tree is
OK for both automake/autoconf and post-install usage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • make/custom/mvme2307.cfg

    r52448f35 r0d744ab  
    99RTEMS_CPU=powerpc
    1010RTEMS_CPU_MODEL=mpc604
     11RTEMS_PPC_EXCEPTION_PROCESSING_MODEL=new
    1112
    1213# This is the actual bsp directory used during the build process.
     
    5152
    5253define make-target-options
    53         @echo "/* #define NDEBUG 1 */ "                            >>$@
    54         @echo "#define RTEMS_TEST_NO_PAUSE 1"                      >>$@
    55         @echo "/* #define RTEMS_DEBUG  1 */"                       >>$@
    56         @echo "#define CONSOLE_USE_INTERRUPTS 0"                   >>$@
    57         @echo "#define CONSOLE_USE_POLLED !CONSOLE_USE_INTERRUPTS" >>$@
    58         @echo "#define PPC_VECTOR_FILE_BASE 0x00000100"            >>$@
    59         @echo "#define PPC_ABI PPC_ABI_EABI"                       >>$@
    60         @echo "#define PPC_ASM PPC_ASM_ELF"                        >>$@
    61         @echo "#define PPC_USE_SPRG 0"                             >>$@
     54        @echo "/* #define NDEBUG 1 */ "                        >>$@
     55        @echo "#define RTEMS_TEST_NO_PAUSE 1"                  >>$@
     56        @echo "/* #define RTEMS_DEBUG  1 */"                   >>$@
     57        @echo "#define PPCN_60X_USE_DINK 0"                   >>$@
     58        @echo "#define PPCN_60X_USE_NONE 1"                   >>$@
     59        @echo "#define PPC_USE_DATA_CACHE 1"                   >>$@
     60        @echo "#define PPC_VECTOR_FILE_BASE 0x0100"            >>$@
     61        @echo "#define PPC_ABI PPC_ABI_EABI"                   >>$@
     62        @echo "#define PPC_ASM PPC_ASM_ELF"                    >>$@
     63        @echo "#define PPC_USE_SPRG  1"
    6264endef
    6365
     
    7072# -O4 is ok for RTEMS
    7173# NOTE: some level of -O may be actually required by inline assembler
    72 CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
     74#CFLAGS_OPTIMIZE_V=-O4 -fno-keep-inline-functions
     75CFLAGS_OPTIMIZE_V=-O4 -mmultiple -mstring -mstrict-align -mcpu=604
    7376
    7477# The following is a linkcmds file which will work without using the
     
    8487#            $(LD_LIBS) \
    8588#           -Wl,-\( -Wl,-lc -Wl,-lrtemsall -Wl,-lgcc -Wl,-\)
    86 ifeq ($(RTEMS_USE_GCC272),yes)
    8789define make-exe
    88         $(CC) $(CFLAGS) -o $(basename $@).exe $(LINK_OBJS) $(LINK_LIBS)
     90        $(LINK.c) $(LDLIBS) -o $@ $(LINK_OBJS) $(LINK_LIBS)
    8991        $(NM) -g -n $@ > $(basename $@).num
    9092        $(SIZE) $@
     93#
     94#   The following builds bootable images for the board.  But the way
     95#   the build procedure jumps around the tree is not cool.
     96#       test -d ${PROJECT_RELEASE}/bin || mkdir ${PROJECT_RELEASE}/bin
     97#       $(CP) $@ $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/$(ARCH); \
     98#       ( cd $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader; \
     99#       $(MAKE) bootloader BINARY_LOADED=$@; )
     100#       f=`basename $@ .exe`; \
     101#        cp $(PROJECT_ROOT)/powerpc-rtems/c/mvme2307/lib/libbsp/powerpc/$(RTEMS_BSP_FAMILY)/bootloader/bootloader \
     102#           ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe \
     103#       && chmod 755 \
     104#         ${PROJECT_RELEASE}/bin/$${f}$(LIB_VARIANT).exe
    91105endef
    92 else
    93 define make-exe
    94         $(CC) $(CFLAGS) -o $(basename $@).exe \
    95             $(LINK_OBJS) $(LINK_LIBS)
    96         $(NM) -g -n $@ > $(basename $@).num
    97         $(SIZE) $@
    98 endef
    99 endif
     106
    100107
    101108# Miscellaneous additions go here
Note: See TracChangeset for help on using the changeset viewer.