Changeset a9d74246 in rtems


Ignore:
Timestamp:
Oct 15, 1998, 9:21:53 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
81423a1
Parents:
fcbc051
Message:

Changed reference to KA9Q driver.

Cleaned up description of the make/custom file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/bsp_howto/makefiles.t

    rfcbc051 ra9d74246  
    2121included. For instance,
    2222
    23 @item We only build the ka9q device driver if HAS_KA9Q was defined
     23@item We only build the networking device driver if HAS_NETWORKING was defined
    2424
    2525@example
    26 KA9Q_DRIVER_yes_V = network
    27 KA9Q_DRIVER = $(KA9Q_DRIVER_$(HAS_KA9Q)_V)
     26NETWORKING_DRIVER_yes_V = network
     27NETWORKING_DRIVER = $(NETWORKING_DRIVER_$(HAS_NETWORKING)_V)
    2828
    2929[...]
    3030
    31 SUB_DIRS=include start340 startup clock console timer $(KA9Q_DRIVER) wrapup
     31SUB_DIRS=include start340 startup clock console timer \
     32    $(NETWORKING_DRIVER) wrapup
    3233@end example
    3334
     
    6162the current one, building a library or an executable.
    6263
    63 Let's see what it looks like :
     64The following is a hevaily commented version of the make customization
     65file for the gen68340 BSP.  It can be found in the $RTEMS_ROOT/make/custom
     66directory.
    6467
    6568@example
     69
     70# The RTEMS CPU Family and Model
    6671RTEMS_CPU=m68k
    67 
    68 TARGET_ARCH=o-gen68340
    6972RTEMS_CPU_MODEL=mcpu32
    7073
    7174include $(RTEMS_ROOT)/make/custom/default.cfg
    7275
     76# The name of the BSP directory used for the actual source code.
     77# This allows for build variants of the same BSP source.
    7378RTEMS_BSP_FAMILY=gen68340
    7479
    75 ## Target compiler config file, if any
    76 CONFIG.$(TARGET_ARCH).CC = $(RTEMS_ROOT)/make/compilers/gcc-target-default.cfg
    77 
    78 RTEMS_BSP=gen68340
    79 
     80# CPU flag to pass to GCC
    8081CPU_CFLAGS = -mcpu32
    8182
    82 # optimize flag:
     83# optimisation flag to pass to GCC
    8384CFLAGS_OPTIMIZE_V=-O4 -fomit-frame-pointer
    8485
    85 # Override default start file
     86# The name of the start file to be linked with.  This file is the first
     87# part of the BSP which executes.
    8688START_BASE=start340
    8789
    8890[...]
    8991
     92# This make-exe macro is used in template makefiles to build the
     93# final executable. Any other commands to follow, just as using
     94# objcopy to build a PROM image or converting the executable to binary.
     95
    9096ifeq ($(RTEMS_USE_GCC272),yes)
     97# This has rules to link an application if an older version of GCC is
     98# to be used with this BSP.  It is not required for a BSP to support
     99# older versions of GCC.  This option is supported in some of the
     100# BSPs which already had this support.
    91101[...]
    92102else
    93 
     103# This has rules to link an application using gcc 2.8 or newer or any
     104# egcs version.  All BSPs should support this.  This version is required
     105# to support GNAT/RTEMS.
    94106define make-exe
    95107        $(CC) $(CFLAGS) $(CFLAGS_LD) -o $(basename $@@).exe $(LINK_OBJS)
     
    98110endif
    99111@end example
    100 
    101 the main board CPU family
    102 
    103 directory where you want the objects to go
    104 
    105 the main board CPU name for GCC
    106 
    107 include standard definitions
    108 
    109 bsp directory used during the build process
    110 
    111 cross-compiler options
    112 
    113 
    114 
    115 
    116 the name of your bsp directory
    117 
    118 CPU flag to pass to GCC
    119 
    120 optimisation flag to pass to GCC
    121 
    122 
    123 name of your BSP function to be called immediately after reboot
    124 
    125 
    126 
    127 if an older version of GCC is used...
    128 
    129 
    130 
    131 this macro is used in template makefiles to build the final executable.
    132 Any other commands to follow, just as using objcopy to build a PROM image
    133 or converting the executable to binary.
    134 
    135 Figure 1 : custom file for gen68340 BSP ($RTEMS_ROOT/make/custom/gen68340.cfg)
    136112
    137113
Note: See TracChangeset for help on using the changeset viewer.