Changeset cf72971 in rtems-libbsd
- Timestamp:
- 05/06/16 11:28:25 (7 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
README.waf
rb39854a rcf72971 48 48 ----- 49 49 50 1. Clone the RTEMS Source Build (RSB): 51 50 ------------------------------------------------------------------------------- 51 sandbox="$PWD/sandbox" 52 mkdir sandbox 53 cd "$sandbox" 54 git clone git://git.rtems.org/rtems-source-builder.git 55 git clone git://git.rtems.org/rtems.git 56 git clone git://git.rtems.org/rtems-libbsd.git 57 cd "$sandbox" 58 cd rtems-source-builder/rtems 59 ../source-builder/sb-set-builder --prefix="$sandbox/rtems-4.12" 4.12/rtems-arm 60 cd "$sandbox" 61 cd rtems 62 PATH="$sandbox/rtems-4.12/bin:$PATH" ./bootstrap 63 cd "$sandbox" 64 mkdir b-realview_pbx_a9_qemu 65 cd b-realview_pbx_a9_qemu 66 PATH="$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 69 PATH="$sandbox/rtems-4.12/bin:$PATH" make 70 PATH="$sandbox/rtems-4.12/bin:$PATH" make install 71 cd "$sandbox" 72 cd rtems-libbsd 73 git submodule init 74 git submodule update rtems_waf 75 waf configure --prefix="$sandbox/rtems-4.12" \ 76 --rtems-bsps=arm/realview_pbx_a9_qemu 77 waf 78 waf install 79 ------------------------------------------------------------------------------- 80 81 1. Create a sandbox directory: 82 83 $ sandbox="$PWD/sandbox" 84 $ mkdir sandbox 85 86 1. Clone the repositories: 87 88 $ cd "$sandbox" 52 89 $ 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 53 92 54 93 2. 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" 57 97 $ 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 100 3. Bootstrap the RTEMS sources: 101 102 $ cd "$sandbox" 103 $ cd rtems 104 $ PATH="$sandbox/rtems-4.12/bin:$PATH" ./bootstrap 69 105 70 106 5. Build and install the RTEMS Board Support Packages (BSP) you want to use. In 71 107 this example the path is /opt/rtems/4.12/bsps: 72 108 109 $ cd "$sandbox" 73 110 $ mkdir b-realview_pbx_a9_qemu 74 111 $ 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 118 6. 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 89 125 90 126 7. Run Waf's configure with your specific settings. In this case the path to 91 127 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 100 130 '--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 139 8. Build and install. The LibBSD package will be installed into the prefix 140 provided to configure: 141 142 $ cd "$sandbox" 143 $ cd rtems-libbsd 110 144 $ waf 111 145 $ waf install
Note: See TracChangeset
for help on using the changeset viewer.