Changeset db2c683 in rtems-release


Ignore:
Timestamp:
Oct 29, 2019, 4:27:17 AM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
8c365179ece35d4d61b151cb4b7609059840900b, f48aea09d8d82ab80568ad2edcd02b8a11bea886
Children:
9fe4518
Parents:
559b836
Message:

Update to support RTEMS 5

Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • README.txt

    r559b836 rdb2c683  
    22
    33Chris Johns <chrisj@rtems.org>
    4 Date: March 2016
     4Date: November 2019
    55
    66These scripts release the RTEMS kernel. They are tested and run on the
     
    99To run:
    1010
    11   $ ./rtems-release 4.11 0-rc1
     11  $ ./rtems-release 5 0.0-m1911
     12
     13Set Up
     14------
     15
     16Releases are made on a FreeBSD machine. These scripts should work on
     17any hosts however no testing has been done on other systems.
     18
     191. Install git.
     20
     212. Crate a python3 vritualenv set up. If python3 is the system default
     22   the --python option is not needed:
     23
     24    $ virtualenv --python=python3 release
     25
     263. Install sphinx using pip in the virtualenv:
     27
     28   $ . ./release/bin/activate
     29   (release) $ pip install sphinx
     30   (release) $ pip install sphinxcontrib-bibtex
     31
     324. Install npm and the install the HTML inliner:
     33
     34   # npm install inliner
  • README.txt.in

    r559b836 rdb2c683  
    99application programming interfaces (API) such as POSIX. It is used in
    1010space flight, medical, networking and many more embedded devices using
    11 processor architectures including ARM, PowerPC, SPARC, Intel, Blackfin,
    12 MIPS, Microblaze and more.
     11processor architectures including ARM, PowerPC, SPARC, Intel, RISCV,
     12MIPS, NIOS-II, Microblaze and more.
    1313
    1414This directory contains the source code for the RTEMS @VERSION@ operating
  • rtems-release

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3434# release.
    3535#
    36 
    37 echo "RTEMS Release, v0.1"
     36. ./rtems-release-version
     37echo "RTEMS Release, v${rtems_release_version}"
    3838
    3939#
     
    8080build rtems-source-builder ${version} ${revision} rtems-release-rsb-version
    8181if [ ${rtems_examples} = yes ]; then
    82   build examples-v2         ${version} ${revision}
     82 if [ ${verison} -lt 5 ]; then
     83  build examples-v2 ${version} ${revision}
    8384  # Hack around the repo naming.
    8485  mv ${release}/examples-v2-${release}.tar.${comp_ext} \
    8586     ${release}/rtems-examples-v2-${release}.tar.${comp_ext}
     87 else
     88  build rtems-examples ${version} ${revision}
     89 fi
    8690fi
    8791if [ ${rtems_libbsd} = yes ]; then
    88  build rtems-libbsd        ${version} ${revision}
     92 build rtems-libbsd ${version} ${revision}
    8993fi
    9094
  • rtems-release-docs

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3333# This worker script to build the doco.
    3434#
    35 echo "RTEMS Documentation Release builder, v0.1"
     35. ${release_top}/rtems-release-version
     36echo "RTEMS Documentation Release builder, v${rtems_release_version}"
    3637
    3738#
     
    6768 echo "git fetch origin"
    6869 git fetch origin
    69  echo "git archive --format=tar --prefix=${prefix}/ origin/${version}"
    70  git archive --format=tar --prefix=${prefix}/ origin/${version} | \
     70 # Get the remote branch. If the release branch is not found use master.
     71 remote_branch=$(git branch --remote | grep ${version} | tr -d "[:space:]")
     72 if [ -z "${remote_branch}" ]; then
     73  remote_branch="master"
     74 fi
     75 echo "git archive --format=tar --prefix=${prefix}/ ${remote_branch}"
     76 git archive --format=tar --prefix=${prefix}/ ${remote_branch} | \
    7177     ${comp} > ../${prefix}-unstamped.tar.${comp_ext}
    7278 cd ..
     
    8288 # This is a hack until I add support for the VERSION file created below.
    8389 #
    84  cat wscript | sed -e "s/^version[[:space:]].*=.*$/version = '${release}'/g" > wscript.tmp
    85  rm -f wscript
    86  mv wscript.tmp wscript
    8790 echo "Creating VERSION: ${release}"
    88  echo "[version]" > VERSION
    89  echo "release = ${release}" >> VERSION
     91 if [ ${version} -le 5 ]; then
     92   cat wscript | sed -e "s/^version[[:space:]].*=.*$/version = '${release}'/g" > wscript.tmp
     93   rm -f wscript
     94   mv wscript.tmp wscript
     95 else
     96  echo "[version]" > VERSION
     97  echo "revision = ${release}" >> VERSION
     98  d=$(date +%e)
     99  case $d in
     100   1?) d=${d}th ;;
     101   *1) d=${d}st ;;
     102   *2) d=${d}nd ;;
     103   *3) d=${d}rd ;;
     104   *)  d=${d}th ;;
     105  esac
     106  now=$(date +"%d${d} %B %Y")
     107  echo "date = %{now}" >> VERSION
     108 fi
    90109 cd ..
    91110
  • rtems-release-kernel

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3333# This worker script bootstraps the RTEMS kernel.
    3434#
    35 echo "RTEMS Release RTEMS Kernel, v0.1"
     35. ${release_top}/rtems-release-version
     36echo "RTEMS Release RTEMS Kernel, v${rtems_release_version}"
    3637
    3738#
     
    9798 done
    9899 echo "Bootstrapping RTEMS"
    99  ./bootstrap -c
    100  ./bootstrap -p
    101  ${top}/${rsb}/source-builder/sb-bootstrap
     100  ./bootstrap -c
     101 if [ ${version} -lt 5 ]; then
     102  ./bootstrap -p
     103  ${top}/${rsb}/source-builder/sb-bootstrap
     104 else
     105  ./rtems-bootstrap
     106 fi
    102107 echo "Cleaning autom4te.cache"
    103108 rm -rf $(find . -name autom4te.cache)
     
    138143
    139144echo "Creating: rtems-doxygen-${release}.tar.${comp_ext}"
    140 mv cpukit_doxy/html rtems-doxygen-${release}
     145if [ ${version} -lt 5 ]; then
     146 mv cpukit_doxy/html rtems-doxygen-${release}
     147else
     148 mv html rtems-doxygen-${release}
     149fi
    141150tar cf - rtems-doxygen-${release} | \
    142151    ${comp} > ../rtems-doxygen-${release}.tar.${comp_ext}
  • rtems-release-notes

    r559b836 rdb2c683  
    3333# This worker script to build the doco.
    3434#
    35 echo "RTEMS Release Notes builder, v0.1"
     35. ${release_top}/rtems-release-version
     36echo "RTEMS Release Notes builder, v${rtems_release_version}"
    3637
    3738#
  • rtems-release-package

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3333# This script packages a package in a tar file.
    3434#
    35 echo "RTEMS Release Package, v0.1"
     35. ${release_top}/rtems-release-version
     36echo "RTEMS Release Package, v${rtems_release_version}"
    3637
    3738#
     
    6667 echo "git fetch origin"
    6768 git fetch origin
     69 # Get the remote branch. If the release branch is not found use master.
     70 remote_branch=$(git branch --remote | grep ${version} | tr -d "[:space:]")
     71 if [ -z "${remote_branch}" ]; then
     72  remote_branch="master"
     73 fi
    6874 git_submodules=$(git submodule | cut -w -f 2)
    6975 if [ -n "${git_submodules}" ]; then
     
    7682    echo "git submodule update ${s}"
    7783    git submodule update ${s}
    78     treeish=$(git ls-tree origin/${version} ${s} | cut -w -f 3)
     84    treeish=$(git ls-tree ${remote_branch} ${s} | cut -w -f 3)
    7985    cd ${s}
    8086     echo "git archive --format=tar --prefix=${prefix}/${s}/ ${treeish}"
     
    8793  done
    8894 fi
    89  echo "git archive --format=tar --prefix=${prefix}/ origin/${version}"
    90  git archive --format=tar --prefix=${prefix}/ origin/${version} > \
     95 echo "git archive --format=tar --prefix=${prefix}/ ${remote_branch}"
     96 git archive --format=tar --prefix=${prefix}/ ${remote_branch} > \
    9197                                          ../${stamped_tar}.tar
    9298 cd ..   # ${git_local}
  • rtems-release-package-end

    r559b836 rdb2c683  
    11# RTEMS Tools Project (http://www.rtems.org/)
    2 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     2# Copyright 2015,2016 Chris Johns (chrisj@rtems.org)
    33# All rights reserved.
    44#
  • rtems-release-package-start

    r559b836 rdb2c683  
    11# RTEMS Tools Project (http://www.rtems.org/)
    2 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     2# Copyright 2015,2016 Chris Johns (chrisj@rtems.org)
    33# All rights reserved.
    44#
  • rtems-release-rsb-version

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3333# This script adds the hashes to the release packages to the RSB.
    3434#
    35 
    36 echo "RTEMS Release RSB Versioning, v0.1"
     35. ${release_top}/rtems-release-version
     36echo "RTEMS Release RSB Versioning, v${rtems_release_version}"
    3737
    3838#
  • rtems-release-sources

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3333# The script collects the sources for all the tools.
    3434#
    35 
    36 echo "RTEMS Release Sources, v0.1"
     35. ${release_top}/rtems-release-version
     36echo "RTEMS Release Sources, v${rtems_release_version}"
    3737
    3838#
     
    107107    # Fetch the source for RTEMS tools.
    108108    #
    109     echo "../source-builder/sb-set-builder --dry-run --with-download " \
    110          "--without-error-report --without-release-url " \
    111          "${rtems_pkgs}"
    112     ../source-builder/sb-set-builder --dry-run --with-download \
    113                                      --without-error-report \
    114                                      --without-release-url \
    115                                      ${rtems_pkgs}
     109    if [ ${version} -lt 5 ]; then
     110     echo "../source-builder/sb-set-builder --dry-run --with-download " \
     111          "--without-error-report --without-release-url " \
     112          "${rtems_pkgs}"
     113     ../source-builder/sb-set-builder --dry-run --with-download \
     114                                      --without-error-report \
     115                                      --without-release-url \
     116                                      ${rtems_pkgs}
     117    else
     118     echo "../source-builder/sb-get-sources ${rtems_pkgs}"
     119     ../source-builder/sb-get-sources ${rtems_pkgs}
     120    fi
    116121    #
    117122    # Remove the top level packages because they do not have a VERSION file.
     
    149154     export_source="${export_source} bare"
    150155     mkdir sources patches
    151      echo "../source-builder/sb-set-builder --dry-run --with-download " \
    152           "--without-error-report --without-release-url " \
    153           "${bare_pkgs}"
    154      ../source-builder/sb-set-builder --dry-run --with-download \
    155                                       --without-error-report \
    156                                       --without-release-url \
    157                                       ${bare_pkgs}
     156     if [ ${version} -lt 5 ]; then
     157      echo "../source-builder/sb-set-builder --dry-run --with-download " \
     158           "--without-error-report --without-release-url " \
     159           "${bare_pkgs}"
     160      ../source-builder/sb-set-builder --dry-run --with-download \
     161                                       --without-error-report \
     162                                       --without-release-url \
     163                                       ${bare_pkgs}
     164     else
     165      echo "../source-builder/sb-get-sources ${bare_pkgs}"
     166      ../source-builder/sb-get-sources ${bare_pkgs}
     167     fi
    158168     #
    159169     # Remove the git, svn or cvs directory if empty.
  • rtems-release-tag

    r559b836 rdb2c683  
    3434# release.
    3535#
    36 
    37 echo "RTEMS Release, v0.1"
     36. ./rtems-release-version
     37echo "RTEMS Release, v${rtems_release_version}"
    3838
    3939#
  • rtems-source-packages

    r559b836 rdb2c683  
    22#
    33# RTEMS Tools Project (http://www.rtems.org/)
    4 # Copyright 2015-2016 Chris Johns (chrisj@rtems.org)
     4# Copyright 2015,2016,2019 Chris Johns (chrisj@rtems.org)
    55# All rights reserved.
    66#
     
    3939
    4040if [ ${version} == 4.11 ]; then
     41 # RTEMS packages
    4142 rtems_pkgs="${rtems_pkgs} ${version}/graphics/libjpeg"
    4243 rtems_pkgs="${rtems_pkgs} ${version}/databases/sqlite"
     
    4445 rtems_pkgs="${rtems_pkgs} ${version}/net/ntp"
    4546 rtems_pkgs="${rtems_pkgs} ${version}/net/protobuf"
    46 
     47 # Bare packages
    4748 bare_pkgs="devel/dtc"
    4849 bare_pkgs="${bare_pkgs} devel/qemu"
     50elif [ ${version} -ge 5 ]; then
     51 # RTEMS packages
     52 rtems_pkgs="${rtems_pkgs} ${version}/rtems-packages"
     53 # Bare packages
     54 bare_pkgs="devel/qemu"
     55 bare_pkgs="${bare_pkgs} devel/qemu-couverture"
     56 bare_pkgs="${bare_pkgs} devel/sis"
     57 bare_pkgs="${bare_pkgs} devel/spike"
    4958fi
Note: See TracChangeset for help on using the changeset viewer.