Ignore:
Timestamp:
Jul 31, 2008, 6:34:31 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
c560ef1
Parents:
694c85ee
Message:

2008-07-31 Joel Sherrill <joel.sherrill@…>

  • Makefile.am: Do not build .rel files. Reduces code bloat.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am

    r694c85ee re483dc3  
    1111
    1212DISTCLEANFILES = include/bspopts.h
     13
     14noinst_PROGRAMS =
    1315
    1416# Compiler specs
     
    3537include_bspdir = $(includedir)/bsp
    3638include_bsp_HEADERS = include/mpc55xxevb.h \
    37         include/irq-config.h \
    38         ../../shared/include/irq-generic.h \
    39         ../shared/include/tictac.h
     39    include/irq-config.h \
     40    ../../shared/include/irq-generic.h \
     41    ../shared/include/tictac.h
    4042
    41 # BSP library
    42 noinst_LIBRARIES = libbsp.a
    43 libbsp_a_SOURCES =
    44 libbsp_a_LIBADD = $(libcpudir)/shared/cpuIdent.rel \
    45         $(libcpudir)/shared/cache.rel \
    46         $(libcpudir)/shared/stack.rel \
    47         $(libcpudir)/@RTEMS_CPU_MODEL@/misc.rel \
    48         $(libcpudir)/@RTEMS_CPU_MODEL@/irq.rel \
    49         $(libcpudir)/@RTEMS_CPU_MODEL@/edma.rel \
    50         $(libcpudir)/@RTEMS_CPU_MODEL@/dspi.rel \
    51         $(libcpudir)/@RTEMS_CPU_MODEL@/esci.rel \
    52         $(libcpudir)/@exceptions@/rtems-cpu.rel \
    53         $(libcpudir)/@exceptions@/raw_exception.rel \
    54         $(libcpudir)/@exceptions@/exc_bspsupport.rel
     43startup_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
     44    ../../shared/bootcard.c ../shared/src/tictac.c startup/bspclean.c \
     45    startup/bspstart.c
    5546
    56 # Startup
    57 noinst_PROGRAMS = startup.rel
    58 startup_rel_SOURCES = ../../shared/bsplibc.c \
    59         ../../shared/bsppost.c \
    60         ../../shared/bootcard.c \
    61         ../shared/src/tictac.c \
    62         startup/bspclean.c \
    63         startup/bspstart.c
    64 startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    65 libbsp_a_LIBADD += startup.rel
     47clock_SOURCES = ../shared/clock/clock.c
    6648
    67 # Clock
    68 noinst_PROGRAMS += clock.rel
    69 clock_rel_SOURCES = ../shared/clock/clock.c
    70 clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    71 libbsp_a_LIBADD += clock.rel
     49irq_generic_SOURCES = ../../shared/src/irq-generic.c \
     50    ../../shared/src/irq-legacy.c
    7251
    73 # IRQ
    74 noinst_PROGRAMS += irq-generic.rel
    75 irq_generic_rel_SOURCES = ../../shared/src/irq-generic.c \
    76         ../../shared/src/irq-legacy.c
    77 irq_generic_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    78 libbsp_a_LIBADD += irq-generic.rel
    79 
    80 # Tests
    81 noinst_PROGRAMS += tests.rel
    82 tests_rel_SOURCES = tests/tests.c \
    83         startup/sd-card-init.c
    84 tests_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    85 libbsp_a_LIBADD += tests.rel
     52tests_SOURCES = tests/tests.c startup/sd-card-init.c
    8653
    8754# Network
     
    9158network_rel_CPPFLAGS = $(AM_CPPFLAGS) -D__INSIDE_RTEMS_BSD_TCPIP_STACK__ -D__BSD_VISIBLE
    9259network_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     60endif
     61
     62# BSP library
     63noinst_LIBRARIES = libbsp.a
     64libbsp_a_SOURCES = $(startup_SOURCES) $(clock_SOURCES) $(irq_generic_SOURCES) \
     65    $(tests_SOURCES)
     66
     67libbsp_a_LIBADD = $(libcpudir)/shared/cpuIdent.rel \
     68    $(libcpudir)/shared/cache.rel \
     69    $(libcpudir)/shared/stack.rel \
     70    $(libcpudir)/@RTEMS_CPU_MODEL@/misc.rel \
     71    $(libcpudir)/@RTEMS_CPU_MODEL@/irq.rel \
     72    $(libcpudir)/@RTEMS_CPU_MODEL@/edma.rel \
     73    $(libcpudir)/@RTEMS_CPU_MODEL@/dspi.rel \
     74    $(libcpudir)/@RTEMS_CPU_MODEL@/esci.rel \
     75    $(libcpudir)/@exceptions@/rtems-cpu.rel \
     76    $(libcpudir)/@exceptions@/raw_exception.rel \
     77    $(libcpudir)/@exceptions@/exc_bspsupport.rel
     78
     79if HAS_NETWORKING
    9380libbsp_a_LIBADD += network.rel
    9481endif
Note: See TracChangeset for help on using the changeset viewer.