我正在尝试通过以下位置列出的说明来编译RTEMS:
https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start
我已经使用"RTEMS Source Builder“为SPARC架构生成了一个交叉编译器套件:
我的目录结构如下:
|RTEMS_OS
|
|build
|
|dist
|
|Source我通过git获得了RTEMS v4.12:
git clone git://git.rtems.org/rtems.git ./Source我正在使用以下脚本构建RTEMS:
export RTEMS_CROSS_TOOLS_PREFIX=/home/xubuntu/Development/RTEMS/RTEMS_Cross_Tools/dist/SPARC
export RTEMS_INSTALL_PREFIX=/home/xubuntu/Development/RTEMS/RTEMS_OS/dist/SPARC
export RTEMS_TARGET_ARCH=sparc-rtems4.12
export RTEMS_BOARD_SUPPORT_PACKAGE=sis
##################################################
PROJECT_DIR=${PWD}
export PATH=${RTEMS_CROSS_TOOLS_PREFIX}/bin:${PATH}
if [! -f ../Source/configure]; then
pushd Source
echo "Running bootstrap to generate configure files..."
echo
./bootstrap 2>&1 | tee ${PROJECT_DIR}/bootstrap.log
echo "Bootstrap operation complete..."
echo
popd
read -n 1 -p "Any key to continue, ^c to Terminate..." userinput
fi
pushd build
echo "Configuring RTEMS OS..."
echo
../Source/configure \
--target=${RTEMS_TARGET_ARCH} \
--enable-rtemsbsp=${RTEMS_BOARD_SUPPORT_PACKAGE} \
--prefix=${RTEMS_INSTALL_PREFIX} \
--enable-tests=samples \
2>&1 | tee ${PROJECT_DIR}/configure.log
echo "Configure opteration complete."
echo
popd
read -n 1 -p "Any key to continue, ^c to Terminate..." userinput
pushd build
echo "Building RTEMS OS..."
echo
make 2>&1 | tee ${PROJECT_DIR}/build.log
echo "Build opteration complete."
echo
popd
read -n 1 -p "Any key to continue, ^c to Terminate..." userinput
pushd build
echo "Installing RTEMS OS..."
echo
make install 2>&1 | tee ${PROJECT_DIR}/install.log
echo "Install opteration complete."
echo
popd下面是我的make文件输出:
build.log
Making all in tools/build
make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
make all-am
make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/build'
Making all in tools/cpu
make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
Making all in generic
make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu/generic'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu/generic'
make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/tools/cpu'
Making all in testsuites/tools
make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
Making all in generic
make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools/generic'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools/generic'
make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/testsuites/tools'
Making all in sparc-rtems4.12/c
make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
Making all in .
make[2]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
make[2]: Nothing to be done for 'all-am'.
make[2]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build/sparc-rtems4.12/c'
make[1]: Entering directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/xubuntu/Development/RTEMS/RTEMS_OS/build'make和make install的步骤完成得非常快(不到一秒),在此之后,我可以断定没有构建的测试示例或RTEMS文件。
理想情况下,我希望为我真正的目标架构这样做,但我只是想尝试让样本工作并对其进行调整,但经过几次尝试后,我完全卡住了。你知道我做错了什么吗?
发布于 2017-01-20 01:10:34
愚蠢的错误和教训。请仔细阅读说明和警告。
“警告:用正确的版本替换4.11。另外,对于4.11和更早的版本,请使用sis BSP。对于4.12和更高版本,请使用erc32 BSP。”
https://stackoverflow.com/questions/41727810
复制相似问题