RTEMS-BBB(二):工具链安装

采用RSB方法:

$ mkdir -p development/rtems/sources
$ cd development/rtems/sources
建立目录

$ git clone git://git.rtems.org/rtems-source-builder.git

源地址也可选择

$ git clone -b beagle https://github.com/bengras/rtems-source-builder.git
bengras的大神之作

$ cd rtems-source-builder

$ source-builder/sb-check

检查环境

$ cd rtems

$ ../source-builder/sb-set-builder --list-bsets

列出一系列可用的bset

$ ../source-builder/sb-set-builder --log=`pwd`/../build-arm.log --prefix=`pwd`/../rtems_build_arm4.11 4.11/rtems-arm.bset

配置项--log --prefix不多解释 选择bset推荐devel下

$../source-builder/sb-set-builder --log=beagle.txt --prefix=$HOME/development/rtems/4.11 devel/beagle.bset
选择devel的好处如下:
rtems-arm.bset内容是
#
# Tools Set for RTEMS ARM 4.11 Stable
#
%define release 1
%define rtems_arch arm
#
# The RTEMS 4.11 base defines.
#
%include rtems-4.11-base.bset
#
# Need to add this option to build.
#
%define enable_obsolete 1
#
# Tools configuration.
#
4.11/rtems-autotools
devel/expat-2.1.0-1
tools/rtems-binutils-2.24-1
tools/rtems-gcc-4.9.2-newlib-2.2.0-20150423-1
tools/rtems-gdb-7.9-1
tools/rtems-tools-4.11-1
tools/rtems-kernel-4.11
而beagle.bset有:
#
# Build set for QEMU
#
%define rtems_bsps      bbxm
%include 4.11/rtems-arm.bset
# We install the qemu linaro in a modified prefix so it doesn't
# trample the upstream qemu.
%define qemu_override_prefix %{_prefix}/qemu-linaro/
#
# A magic internal path that would break if changes in the defaults.mc
# macro file are made.
#
%define _internal_autotools_path %{_tmppath}/sb-%{_uid}/${SB_PREFIX_CLEAN}
devel/autotools-internal
devel/libiconv-1.14-1
devel/gettext-0.18.3.1-1
devel/libffi-3.0.13-1
devel/pixman-0.32.4-1
devel/glib-2.39.3-1
devel/qemu-linaro-git-1
devel/uboot-2014.04-bbxm-1
devel/uboot-2014.04-bone-1
devel/partition-1
devel/newfs_msdos-1
devel/mtools-1
除了4.11的工具外还包含了其他一些实用工具,例如uboot,partition,mtools后面制作SD卡都会用到,其他项目不需要的可以注释掉,减少build时间。
工具链安装到此,可能出现failed的原因见上一篇博客。

你可能感兴趣的:(RTEMS-BBB(二):工具链安装)