zoukankan      html  css  js  c++  java
  • rtems 4.11 ubuntu 12.04

    #!/bin/bash


    ARCH=$(uname -i)
    BRANCH=4.11

    sudo -s
    cat  >/etc/apt/sources.list.d/rtems-ftp.list  <<EOF
    deb http://www.rtems.org/ftp/pub/rtems/linux/$BRANCH/ubuntu/ natty rtems$BRANCH
    deb-src http://www.rtems.org/ftp/pub/rtems/linux/$BRANCH/ubuntu/ natty rtems$BRANCH
    EOF

    apt-get -d update
    apt-get install -y libc-dev
    apt-get install -y rtems-$BRANCH-automake rtems-$BRANCH-autoconf
    apt-get install -y rtems-$BRANCH-$ARCH-rtems$BRANCH-binutils rtems-$BRANCH-$ARCH-rtems$BRANCH-gdb rtems-$BRANCH-$ARCH-rtems$BRANCH-gcc rtems-$BRANCH-$ARCH-rtems$BRANCH-gcc-c++


    apt-get install -y git
    git clone git://git.rtems.org/examples-v2.git examples-v2
    git clone git://git.rtems.org/rtems.git rtems
    git clone git://git.rtems.org/rtems-schedsim.git rtems-schedsim
    git clone git://git.rtems.org/rtems-testing.git rtems-testing
    git clone git://git.rtems.org/rtems-addon-packages.git rtems-addon-packages
    wget -c http://www.rtems.com/ftp/pub/rtems/SOURCES/4.11/autoconf-2.69.tar.xz
    wget -c http://www.rtems.com/ftp/pub/rtems/SOURCES/4.11/automake-1.12.2.tar.xz
    tar xf autoconf-2.69.tar.xz
    tar xf automake-1.12.2.tar.xz
    cd autoconf-2.69
    ./configure --prefix=/opt/autoconf2.69 && make && sudo make install
    cd ..
    cd automake-1.12.2
    PATH=/opt/autoconf2.69/bin:$PATH
    ./configure --prefix=/opt/automake1.12.2 && make && sudo make install
    cd ..


    cd rtems
    PATH=/opt/automake1.12.2:$PATH
    ./bootstrap
    cd ..

    mkdir pc386
    cd pc386
    ../rtems/configure --target=i386-rtems4.11 --enable-rtemsbsp=pc386 --enable-tests=samples --disable-posix --prefix=/opt | tee ../pc386.build.log
    make


  • 相关阅读:
    日期时间基本知识
    VScode 常用操作
    js实现图片的Blob base64 ArrayBuffer 的各种转换
    window.postMessage()实现(iframe嵌套页面)跨域消息传递
    软件工程概论个人总结
    软件工程学习进度表(第十六周)
    《构建之法》阅读笔记
    软件工程学习进度表(第十五周)
    《人月神话》阅读笔记06
    《人月神话》阅读笔记05
  • 原文地址:https://www.cnblogs.com/wangfengju/p/6172300.html
Copyright © 2011-2022 走看看