Changeset 5e5d0b1 in rtems


Ignore:
Timestamp:
May 15, 2008, 3:53:19 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, 5, master
Children:
8f78ced7
Parents:
92c9baf
Message:

2008-05-15 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac: Add capability for bootcard.c BSP Initialization Framework to ask the BSP where it has memory for the RTEMS Workspace and C Program Heap. These collectively are referred to as work area. If the BSP supports this, then it does not have to include code to split the available memory between the two areas. This reduces the amount of code in the BSP specific bspstart.c file. Additionally, the shared framework can initialize the C Library, call rtems_debug_enable(), and dirty the work area memory. Until most/all BSPs support this new capability, if the BSP supports this, it should call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac. When the transition is complete, this autoconf macro can be removed.
Location:
c/src/lib/libbsp/sparc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/ChangeLog

    r92c9baf r5e5d0b1  
     12008-05-15      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, configure.ac: Add capability for bootcard.c BSP
     4        Initialization Framework to ask the BSP where it has memory for the
     5        RTEMS Workspace and C Program Heap. These collectively are referred
     6        to as work area. If the BSP supports this, then it does not have to
     7        include code to split the available memory between the two areas.
     8        This reduces the amount of code in the BSP specific bspstart.c file.
     9        Additionally, the shared framework can initialize the C Library, call
     10        rtems_debug_enable(), and dirty the work area memory. Until most/all
     11        BSPs support this new capability, if the BSP supports this, it should
     12        call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
     13        When the transition is complete, this autoconf macro can be removed.
     14
    1152008-05-07      Joel Sherrill <joel.sherrill@OARcorp.com>
    216
  • c/src/lib/libbsp/sparc/erc32/Makefile.am

    r92c9baf r5e5d0b1  
    3030dist_project_lib_DATA += startup/linkcmds
    3131
    32 noinst_PROGRAMS += startup.rel
    33 startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
     32startup_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
    3433    ../../shared/bsppredriverhook.c \
    3534    ../../shared/bsppost.c ../../sparc/shared/bspstart.c \
    3635    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
    3736    startup/spurious.c startup/erc32mec.c startup/boardinit.S
    38 startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
    39 startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    40 
    41 noinst_PROGRAMS += gnatsupp.rel
    42 gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
    43 gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
    44 gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    45 
    46 noinst_PROGRAMS += console.rel
    47 console_rel_SOURCES = console/console.c
    48 console_rel_CPPFLAGS = $(AM_CPPFLAGS)
    49 console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    50 
    51 noinst_PROGRAMS += debugio.rel
    52 debugio_rel_SOURCES = console/debugputs.c
    53 debugio_rel_CPPFLAGS = $(AM_CPPFLAGS)
    54 debugio_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    55 
    56 noinst_PROGRAMS += clock.rel
    57 clock_rel_SOURCES = clock/ckinit.c
    58 clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
    59 clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    60 
    61 noinst_PROGRAMS += timer.rel
    62 timer_rel_SOURCES = timer/timer.c
    63 timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
    64 timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     37gnatsupp_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
     38console_SOURCES = console/console.c
     39debugio_SOURCES = console/debugputs.c
     40clock_SOURCES = clock/ckinit.c
     41timer_SOURCES = timer/timer.c
    6542
    6643if HAS_NETWORKING
     
    7350
    7451noinst_LIBRARIES = libbsp.a
    75 libbsp_a_SOURCES =
    76 libbsp_a_LIBADD = console.rel clock.rel timer.rel gnatsupp.rel \
    77   debugio.rel
     52libbsp_a_SOURCES = $(startup_SOURCES) $(gnatsupp_SOURCES) $(console_SOURCES) \
     53    $(debugio_SOURCES) $(clock_SOURCES) $(timer_SOURCES)
     54
     55libbsp_a_LIBADD  = ../../../libcpu/@RTEMS_CPU@/cache.rel \
     56    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
     57    ../../../libcpu/@RTEMS_CPU@/syscall.rel
    7858if HAS_NETWORKING
    7959libbsp_a_LIBADD += erc32sonic.rel
    8060endif
    81 
    82 libbsp_a_LIBADD +=  \
    83 startup_rel-boardinit.o \
    84 startup_rel-bootcard.o \
    85 startup_rel-bspclean.o \
    86 startup_rel-bsplibc.o \
    87 startup_rel-bsppost.o \
    88 startup_rel-bsppredriverhook.o \
    89 startup_rel-bspstart.o \
    90 startup_rel-erc32mec.o \
    91 startup_rel-sbrk.o \
    92 startup_rel-setvec.o \
    93 startup_rel-spurious.o
    94 
    95 libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
    96     ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
    97     ../../../libcpu/@RTEMS_CPU@/syscall.rel
    9861
    9962EXTRA_DIST += times
  • c/src/lib/libbsp/sparc/erc32/configure.ac

    r92c9baf r5e5d0b1  
    4545 initialization not used on real ERC32 hardware.])
    4646
     47RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     48
    4749# Explicitly list all Makefiles here
    4850AC_CONFIG_FILES([Makefile])
  • c/src/lib/libbsp/sparc/leon2/ChangeLog

    r92c9baf r5e5d0b1  
     12008-05-15      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, configure.ac: Add capability for bootcard.c BSP
     4        Initialization Framework to ask the BSP where it has memory for the
     5        RTEMS Workspace and C Program Heap. These collectively are referred
     6        to as work area. If the BSP supports this, then it does not have to
     7        include code to split the available memory between the two areas.
     8        This reduces the amount of code in the BSP specific bspstart.c file.
     9        Additionally, the shared framework can initialize the C Library, call
     10        rtems_debug_enable(), and dirty the work area memory. Until most/all
     11        BSPs support this new capability, if the BSP supports this, it should
     12        call RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION from its configure.ac.
     13        When the transition is complete, this autoconf macro can be removed.
     14
    1152008-05-07      Joel Sherrill <joel.sherrill@OARcorp.com>
    216
  • c/src/lib/libbsp/sparc/leon2/Makefile.am

    r92c9baf r5e5d0b1  
    5151dist_project_lib_DATA += startup/linkcmds
    5252
    53 noinst_PROGRAMS += startup.rel
    54 startup_rel_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
     53startup_SOURCES = ../../sparc/shared/bspclean.c ../../shared/bsplibc.c \
    5554    ../../shared/bsppost.c ../../shared/bsppredriverhook.c \
    5655    ../../sparc/shared/bspstart.c ../../shared/bootcard.c \
    5756    ../../shared/sbrk.c startup/setvec.c startup/spurious.c
    58 startup_rel_CPPFLAGS = $(AM_CPPFLAGS)
    59 startup_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    60 
    61 noinst_PROGRAMS += gnatsupp.rel
    62 gnatsupp_rel_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
    63 gnatsupp_rel_CPPFLAGS = $(AM_CPPFLAGS)
    64 gnatsupp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    65 
    66 noinst_PROGRAMS += console.rel
    67 console_rel_SOURCES = console/console.c console/debugputs.c
    68 console_rel_CPPFLAGS = $(AM_CPPFLAGS)
    69 console_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    70 
    71 noinst_PROGRAMS += clock.rel
    72 clock_rel_SOURCES = clock/ckinit.c
    73 clock_rel_CPPFLAGS = $(AM_CPPFLAGS)
    74 clock_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    75 
     57gnatsupp_SOURCES = gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
     58console_SOURCES = console/console.c console/debugputs.c
     59clock_SOURCES = clock/ckinit.c
    7660# AMBA PnP Scanning
    77 noinst_PROGRAMS += amba.rel
    78 amba_rel_SOURCES = ../../sparc/shared/amba/ambapp.c
    79 amba_rel_CPPFLAGS = $(AM_CPPFLAGS)
    80 amba_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    81 
     61amba_SOURCES = ../../sparc/shared/amba/ambapp.c
    8262# PCI
    83 noinst_PROGRAMS += pci.rel
    84 pci_rel_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
    85 pci_rel_CPPFLAGS = $(AM_CPPFLAGS)
    86 pci_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    87 
     63pci_SOURCES = pci/pci.c ../../sparc/shared/pci/pcifinddevice.c
    8864# RASTA Kit
    89 noinst_PROGRAMS += rasta.rel
    90 rasta_rel_SOURCES = rasta/rasta.c
    91 rasta_rel_CPPFLAGS = $(AM_CPPFLAGS)
    92 rasta_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    93 
     65rasta_SOURCES = rasta/rasta.c
    9466# Companion Chip Kit
    95 noinst_PROGRAMS += cchip.rel
    96 cchip_rel_SOURCES = cchip/cchip.c
    97 cchip_rel_CPPFLAGS = $(AM_CPPFLAGS)
    98 cchip_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    99 
     67cchip_SOURCES = cchip/cchip.c
    10068# B1553BRM
    101 noinst_PROGRAMS += brm.rel
    102 brm_rel_SOURCES = ../../sparc/shared/1553/b1553brm.c ../../sparc/shared/1553/b1553brm_pci.c ../../sparc/shared/1553/b1553brm_rasta.c
    103 brm_rel_CPPFLAGS = $(AM_CPPFLAGS)
    104 brm_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    105 
     69brm_SOURCES = ../../sparc/shared/1553/b1553brm.c \
     70    ../../sparc/shared/1553/b1553brm_pci.c \
     71    ../../sparc/shared/1553/b1553brm_rasta.c
    10672# CAN
    107 noinst_PROGRAMS += can.rel
    108 can_rel_SOURCES = ../../sparc/shared/can/occan.c ../../sparc/shared/can/occan_pci.c ../../sparc/shared/can/grcan.c ../../sparc/shared/can/grcan_rasta.c
    109 can_rel_CPPFLAGS = $(AM_CPPFLAGS)
    110 can_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    111 
     73can_SOURCES = ../../sparc/shared/can/occan.c \
     74    ../../sparc/shared/can/occan_pci.c \
     75    ../../sparc/shared/can/grcan.c \
     76    ../../sparc/shared/can/grcan_rasta.c
    11277# SpaceWire
    113 noinst_PROGRAMS += spw.rel
    114 spw_rel_SOURCES = ../../sparc/shared/spw/grspw.c ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
    115 spw_rel_CPPFLAGS = $(AM_CPPFLAGS)
    116 spw_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    117 
     78spw_SOURCES = ../../sparc/shared/spw/grspw.c \
     79    ../../sparc/shared/spw/grspw_pci.c ../../sparc/shared/spw/grspw_rasta.c
    11880# UART (RAW)
    119 noinst_PROGRAMS += uart.rel
    120 uart_rel_SOURCES = ../../sparc/shared/uart/apbuart.c ../../sparc/shared/uart/apbuart_pci.c ../../sparc/shared/uart/apbuart_rasta.c
    121 uart_rel_CPPFLAGS = $(AM_CPPFLAGS)
    122 uart_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    123 
     81uart_SOURCES = ../../sparc/shared/uart/apbuart.c \
     82    ../../sparc/shared/uart/apbuart_pci.c \
     83    ../../sparc/shared/uart/apbuart_rasta.c
    12484# I2CMST
    12585include_HEADERS += ../../sparc/shared/include/i2cmst.h
    126 noinst_PROGRAMS += i2cmst.rel
    127 i2cmst_rel_SOURCES = ../../sparc/shared/i2c/i2cmst.c
    128 i2cmst_rel_CPPFLAGS = $(AM_CPPFLAGS)
    129 i2cmst_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
     86i2cmst_SOURCES = ../../sparc/shared/i2c/i2cmst.c
     87
     88timer_SOURCES = timer/timer.c
    13089
    13190if HAS_NETWORKING
     
    13695leon_smc91111_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    13796endif
    138 
    139 noinst_PROGRAMS += timer.rel
    140 timer_rel_SOURCES = timer/timer.c
    141 timer_rel_CPPFLAGS = $(AM_CPPFLAGS)
    142 timer_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
    14397
    14498if HAS_NETWORKING
     
    151105
    152106noinst_LIBRARIES = libbsp.a
    153 libbsp_a_SOURCES =
    154 libbsp_a_LIBADD = startup.rel console.rel clock.rel timer.rel gnatsupp.rel \
    155                   amba.rel rasta.rel uart.rel spw.rel can.rel brm.rel pci.rel \
    156                   cchip.rel
     107libbsp_a_SOURCES = $(startup_SOURCES) $(gnatsupp_SOURCES) $(console_SOURCES) \
     108    $(clock_SOURCES) $(amba_SOURCES) $(pci_SOURCES) $(rasta_SOURCES) \
     109    $(cchip_SOURCES) $(brm_SOURCES) $(can_SOURCES) $(spw_SOURCES) \
     110    $(uart_SOURCES) $(i2cmst_SOURCES) $(timer_SOURCES)
     111
     112libbsp_a_LIBADD = \
     113    ../../../libcpu/@RTEMS_CPU@/cache.rel \
     114    ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
     115    ../../../libcpu/@RTEMS_CPU@/syscall.rel
    157116
    158117if HAS_NETWORKING
     
    161120endif
    162121
    163 libbsp_a_LIBADD += ../../../libcpu/@RTEMS_CPU@/cache.rel \
    164     ../../../libcpu/@RTEMS_CPU@/reg_win.rel \
    165     ../../../libcpu/@RTEMS_CPU@/syscall.rel
    166 
    167122EXTRA_DIST += times
    168123
  • c/src/lib/libbsp/sparc/leon2/configure.ac

    r92c9baf r5e5d0b1  
    3838 the wall time required to execute the RTEMS test suites.])
    3939
     40RTEMS_BSP_BOOTCARD_HANDLES_RAM_ALLOCATION
     41
    4042# Explicitly list all Makefiles here
    4143AC_CONFIG_FILES([Makefile])
Note: See TracChangeset for help on using the changeset viewer.