Changeset cf72971 in rtems-libbsd


Ignore:
Timestamp:
05/06/16 11:28:25 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, 5-freebsd-12, 6-freebsd-12, freebsd-9.3, master
Children:
469db42
Parents:
b39854a
git-author:
Sebastian Huber <sebastian.huber@…> (05/06/16 11:28:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/06/16 11:44:39)
Message:

README.waf: Make set-up steps self contained

File:
1 edited

Legend:

Unmodified
Added
Removed
  • README.waf

    rb39854a rcf72971  
    4848-----
    4949
    50 1. Clone the RTEMS Source Build (RSB):
    51 
     50-------------------------------------------------------------------------------
     51sandbox="$PWD/sandbox"
     52mkdir sandbox
     53cd "$sandbox"
     54git clone git://git.rtems.org/rtems-source-builder.git
     55git clone git://git.rtems.org/rtems.git
     56git clone git://git.rtems.org/rtems-libbsd.git
     57cd "$sandbox"
     58cd rtems-source-builder/rtems
     59../source-builder/sb-set-builder --prefix="$sandbox/rtems-4.12" 4.12/rtems-arm
     60cd "$sandbox"
     61cd rtems
     62PATH="$sandbox/rtems-4.12/bin:$PATH" ./bootstrap
     63cd "$sandbox"
     64mkdir b-realview_pbx_a9_qemu
     65cd b-realview_pbx_a9_qemu
     66PATH="$sandbox/rtems-4.12/bin:$PATH" "$sandbox/rtems/configure" \
     67  --target=arm-rtems4.12 --prefix="$sandbox/rtems-4.12" \
     68  --disable-networking --enable-rtemsbsp=realview_pbx_a9_qemu
     69PATH="$sandbox/rtems-4.12/bin:$PATH" make
     70PATH="$sandbox/rtems-4.12/bin:$PATH" make install
     71cd "$sandbox"
     72cd rtems-libbsd
     73git submodule init
     74git submodule update rtems_waf
     75waf configure --prefix="$sandbox/rtems-4.12" \
     76  --rtems-bsps=arm/realview_pbx_a9_qemu
     77waf
     78waf install
     79-------------------------------------------------------------------------------
     80
     811. Create a sandbox directory:
     82
     83    $ sandbox="$PWD/sandbox"
     84    $ mkdir sandbox
     85
     861. Clone the repositories:
     87
     88    $ cd "$sandbox"
    5289    $ git clone git://git.rtems.org/rtems-source-builder.git
     90    $ git clone git://git.rtems.org/rtems.git
     91    $ git clone git://git.rtems.org/rtems-libbsd.git
    5392
    54932. Build and install the tools. In this example the path is
    55    /opt/rtems/4.12/tools:
    56 
     94   $sandbox/rtems-4.12:
     95
     96    $ cd "$sandbox"
    5797    $ cd rtems-source-builder/rtems
    58     $ ../source-builder/sb-set-builder \
    59             --prefix=/opt/rtems/4.12/tools 4.12/rtems-arm
    60 
    61 3. Clone RTEMS:
    62 
    63     $ git clone git://git.rtems.org/rtems.git rtems-4.12
    64 
    65 4. Bootstrap the RTEMS sources:
    66 
    67     $ cd rtems-4.12
    68     $ ./bootstrap
     98    $ ../source-builder/sb-set-builder --prefix="$sandbox/rtems-4.12" 4.12/rtems-arm
     99
     1003. Bootstrap the RTEMS sources:
     101
     102    $ cd "$sandbox"
     103    $ cd rtems
     104    $ PATH="$sandbox/rtems-4.12/bin:$PATH" ./bootstrap
    69105
    701065. Build and install the RTEMS Board Support Packages (BSP) you want to use. In
    71107   this example the path is /opt/rtems/4.12/bsps:
    72108
     109    $ cd "$sandbox"
    73110    $ mkdir b-realview_pbx_a9_qemu
    74111    $ cd b-realview_pbx_a9_qemu
    75     $ ../rtems-4.12/configure \
    76             --target=arm-rtems4.12 --prefix=/opt/rtems/4.12/bsps \
    77             --disable-networking --enable-rtemsbsp=realview_pbx_a9_qemu
    78     $ make
    79     $ make install
    80 
    81 6. Populate the rtems_waf git submodule:
    82 
    83     $ cd rtems-libbsd
    84     $ git submodule init
    85     $ git submodule update rtems_waf
    86 
    87    Note, make sure you specify 'rtems_waf' or the FreeBSD kernel source will be
    88    cloned.
     112    $ PATH="$sandbox/rtems-4.12/bin:$PATH" "$sandbox/rtems/configure" \
     113        --target=arm-rtems4.12 --prefix="$sandbox/rtems-4.12" \
     114        --disable-networking --enable-rtemsbsp=realview_pbx_a9_qemu
     115    $ PATH="$sandbox/rtems-4.12/bin:$PATH" make
     116    $ PATH="$sandbox/rtems-4.12/bin:$PATH" make install
     117
     1186. Populate the rtems_waf git submodule.  Note, make sure you specify
     119   'rtems_waf' or the FreeBSD kernel source will be cloned:
     120
     121   $ cd "$sandbox"
     122   $ cd rtems-libbsd
     123   $ git submodule init
     124   $ git submodule update rtems_waf
    89125
    901267. Run Waf's configure with your specific settings. In this case the path to
    91127   the tools and RTEMS are provided on the command line and so do not need to
    92    be in your path or environment [1]:
    93 
    94     $ waf configure --prefix=/opt/rtems/4.12/bsps \
    95                     --rtems=/opt/rtems/4.12/bsps \
    96                     --rtems-tools=/opt/rtems/4.12/tools \
    97                     --rtems-bsps=arm/realview_pbx_a9_qemu
    98 
    99    You can use '--rtems-archs=arm,sparc,i386' or
     128   be in your path or environment [1].  You can use
     129   '--rtems-archs=arm,sparc,i386' or
    100130   '--rtems-bsps=arm/realview_pbx_a9_qemu,sparc/sis,i386/pc586' to build for
    101    more than BSP at a time.
    102 
    103    Note, you must provide the architecture and BSP as a pair. Providing just the
    104    BSP name will fail.
    105 
    106 8. Build and install:
    107 
    108    The LibBSD package will be installed into the prefix provided to configure.
    109 
     131   more than BSP at a time.  Note, you must provide the architecture and BSP as
     132   a pair. Providing just the BSP name will fail:
     133
     134   $ cd "$sandbox"
     135   $ cd rtems-libbsd
     136   $ waf configure --prefix="$sandbox/rtems-4.12" \
     137       --rtems-bsps=arm/realview_pbx_a9_qemu
     138
     1398. Build and install.  The LibBSD package will be installed into the prefix
     140   provided to configure:
     141
     142   $ cd "$sandbox"
     143   $ cd rtems-libbsd
    110144   $ waf
    111145   $ waf install
Note: See TracChangeset for help on using the changeset viewer.