mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 23:40:15 +00:00
2008-01-11 Chris Johns <chisj@rtems.org>
* expat-version: New.
* build-exes.sh: Fix the size calculation.
* build-rpms.sh: Add expax support. Clean the BUILD, RPM and SRPM
directories. Delete the RPM database if cleaning.
* msys-path.nsi: Add comments.
* rtems-tools.nsi: Fix the uninstall targets check.
* target-section-text, targets: Add bfin target.
* upload.sh: Upload only the specific version of files.
* version: Build 17.
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
2007-0823 Chris Johns <chisj@rtems.org>
|
||||
2008-01-11 Chris Johns <chisj@rtems.org>
|
||||
|
||||
* expat-version: New.
|
||||
|
||||
* build-exes.sh: Fix the size calculation.
|
||||
|
||||
* build-rpms.sh: Add expax support. Clean the BUILD, RPM and SRPM
|
||||
directories. Delete the RPM database if cleaning.
|
||||
|
||||
* msys-path.nsi: Add comments.
|
||||
|
||||
* rtems-tools.nsi: Fix the uninstall targets check.
|
||||
|
||||
* target-section-text, targets: Add bfin target.
|
||||
|
||||
* upload.sh: Upload only the specific version of files.
|
||||
|
||||
* version: Build 17.
|
||||
|
||||
2007-08-23 Chris Johns <chisj@rtems.org>
|
||||
|
||||
* mingw-path.nsi: Change the forward slashes to back slashes for
|
||||
Windows.
|
||||
|
||||
@@ -198,8 +198,16 @@ get_size_in_k()
|
||||
cd $1
|
||||
check "changing directory: $1"
|
||||
|
||||
local size_in_k=$(du -c -k $(cat files.txt) | grep total | sed -e "s/\t.*//g")
|
||||
check "getting total size"
|
||||
local total=
|
||||
local f
|
||||
local size
|
||||
for f in $(cat files.txt)
|
||||
do
|
||||
size=$(ls -l "$f" | awk '{ print $5 }')
|
||||
check "getting size"
|
||||
total=$(expr $total + $size)
|
||||
done
|
||||
local size_in_k=$(expr $total / 1024)
|
||||
|
||||
cd $here
|
||||
check "changing directory: $here"
|
||||
|
||||
@@ -35,14 +35,20 @@ processor=$(uname -p)
|
||||
base_tool_list="binutils gcc"
|
||||
|
||||
target_list=$(cat $source/targets)
|
||||
host_list="cygwin freebsd5.2 freebsd6.0 freebsd6.1 mingw32"
|
||||
# host_list="cygwin freebsd5.2 freebsd6.0 freebsd6.1 mingw32"
|
||||
host_list="mingw32"
|
||||
|
||||
rtems_tool_list="autoconf automake $base_tool_list gdb"
|
||||
linux_tool_list="autoconf automake $base_tool_list"
|
||||
cygwin_tool_list="w32api libs autoconf automake $base_tool_list"
|
||||
freebsd_tool_list="libs autoconf automake $base_tool_list"
|
||||
mingw32_tool_list="w32api libs autoconf automake $base_tool_list"
|
||||
|
||||
# We may build a different set of packages for different
|
||||
# hosts depending on what builds.
|
||||
rtems_tool_list="autoconf automake $base_tool_list"
|
||||
linux_rtems_tool_list=$rtems_tool_list
|
||||
mingw32_rtems_tool_list="$rtems_tool_list gdb"
|
||||
|
||||
cygwin_cc_name="pc"
|
||||
freebsd_cc_name="pc"
|
||||
mingw32_cc_name="pc"
|
||||
@@ -52,7 +58,8 @@ cygwin_cpu_list="i686"
|
||||
freebsd_cpu_list="i586"
|
||||
mingw32_cpu_list="i686"
|
||||
|
||||
rpm_topdir=$(rpm --eval "%{_topdir}")
|
||||
expat_list="mingw32"
|
||||
. $source/expat-version
|
||||
|
||||
prefix=/opt/rtems-$version
|
||||
hosts=$host_list
|
||||
@@ -120,6 +127,8 @@ do
|
||||
shift
|
||||
done
|
||||
|
||||
rpm_topdir=$(rpm --eval "%{_topdir}")
|
||||
|
||||
for t in $targets;
|
||||
do
|
||||
if [ -z "$(echo $target_list | grep $t)" ]; then
|
||||
@@ -135,6 +144,7 @@ mkdir=${run_prefix}mkdir
|
||||
rm=${run_prefix}rm
|
||||
rpmbuild=${run_prefix}rpmbuild
|
||||
rpm=${run_prefix}rpm
|
||||
tar=${run_prefix}tar
|
||||
|
||||
if [ $local_rpm_database = yes ]; then
|
||||
rpm_database="--dbpath $prefix/var/lib/rpm"
|
||||
@@ -142,6 +152,12 @@ else
|
||||
rpm_database=
|
||||
fi
|
||||
|
||||
#
|
||||
# We always build tools for the build host. We need them to
|
||||
# build the libraries for the target processor.
|
||||
#
|
||||
hosts="linux $hosts"
|
||||
|
||||
echo " Source: $source"
|
||||
echo " Prefix: $prefix"
|
||||
echo " Hosts: $hosts"
|
||||
@@ -166,9 +182,24 @@ fi
|
||||
$cd $prefix
|
||||
check "cannot change to the prefix directory: $prefix"
|
||||
|
||||
#
|
||||
# Clean the files from the current prefix. Remove the various RPM
|
||||
# and SRPM files.
|
||||
#
|
||||
if [ $clean = yes ]; then
|
||||
echo "Cleaning: $(pwd)"
|
||||
$rm -rf *
|
||||
$rm -rf $rpm_topdir/BUILD/*
|
||||
for h in $hosts;
|
||||
do
|
||||
for d in RPMS SRPMS
|
||||
do
|
||||
rm -rf $rpm_topdir/$h/$d
|
||||
check "removing rpm/srpm directory: $rpm_topdir/$h/$d"
|
||||
mkdir -p $rpm_topdir/$h/$d
|
||||
check "creating directory: $rpm_topdir/$h/$d"
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
#
|
||||
@@ -185,6 +216,10 @@ if [ $local_rpm_database = yes ]; then
|
||||
$mkdir -p var/lib
|
||||
check "making the local RPM database directory: var/lib"
|
||||
fi
|
||||
if [ $clean = yes ]; then
|
||||
$rm -rf var/lib/rpm/*
|
||||
check "Deleting the current database."
|
||||
fi
|
||||
if [ $clean = yes -o ! -e var/lib/rpmPackages ]; then
|
||||
echo "Copying RPM database to a local RPM database"
|
||||
$cp -r /var/lib/rpm var/lib/rpm
|
||||
@@ -263,12 +298,6 @@ rpm_arch()
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# We always build tools for the build host. We need them to
|
||||
# build the libraries for the target processor.
|
||||
#
|
||||
hosts="linux $hosts"
|
||||
|
||||
echo "Configuring target: all"
|
||||
echo "configure --prefix=$prefix $rpm_prefix_arg " \
|
||||
" --target=all $infos"
|
||||
@@ -283,6 +312,10 @@ echo "make -C autotools"
|
||||
$make -C autotools
|
||||
check "building the rpm spec files failed"
|
||||
|
||||
#
|
||||
# Build for each type of host in your host list. The build host
|
||||
# will always be present.
|
||||
#
|
||||
for h in $hosts;
|
||||
do
|
||||
#
|
||||
@@ -341,11 +374,46 @@ do
|
||||
$rpmbuild_cmd
|
||||
done
|
||||
fi
|
||||
|
||||
#
|
||||
# See if the host is listed in the expat list. If it is build the
|
||||
# expat library.
|
||||
#
|
||||
for eh in $expat_list
|
||||
do
|
||||
if [ $th == $eh ]; then
|
||||
_curpath=$PATH
|
||||
PATH=$prefix/bin:$PATH
|
||||
expat_build=${rpm_prefix}${th}-expat-${expat_version}
|
||||
$rm -rf ${rpm_topdir}/BUILD/$expat_build
|
||||
check "cleaning expat directory: ${rpm_topdir}/BUILD/$expat_build"
|
||||
$mkdir ${rpm_topdir}/BUILD/$expat_build
|
||||
check "make directory: ${rpm_topdir}/BUILD/$expat_build"
|
||||
_curdir=$(pwd)
|
||||
$cd ${rpm_topdir}/BUILD/$expat_build
|
||||
check "change to directory: ${rpm_topdir}/BUILD/$expat_build"
|
||||
$tar x${expat_tar_comp}f $rpm_topdir/SOURCES/expat-${expat_version}.tar.${expat_tar_ext}
|
||||
check "extract tar file: $rpm_topdir/SOURCES/expat-${expat_version}.tar.${expat_tar_ext}"
|
||||
$mkdir build
|
||||
check "make directory: build"
|
||||
$cd build
|
||||
check "change directory: build"
|
||||
${run_prefix}../expat-${expat_version}/configure --build=$build --host=$p-pc-$th --prefix=$prefix
|
||||
check "configure failed: ../expat-${expat_version}/configure --build=$build --host=$p-pc-$th --prefix=$prefix"
|
||||
$make all install
|
||||
check "expat make all install"
|
||||
$cd $_curdir
|
||||
check "change directory: $_curdir"
|
||||
PATH=$_curpath
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
for t in $targets;
|
||||
do
|
||||
for s in ${rtems_tool_list}
|
||||
rtl=${h}_rtems_tool_list
|
||||
echo "RTEMS Tool List: ${!rtl}"
|
||||
for s in ${!rtl}
|
||||
do
|
||||
case $s in
|
||||
autoconf|automake)
|
||||
|
||||
3
contrib/mingw/expat-version
Normal file
3
contrib/mingw/expat-version
Normal file
@@ -0,0 +1,3 @@
|
||||
expat_version=2.0.1
|
||||
expat_tar_comp=z
|
||||
expat_tar_ext=gz
|
||||
@@ -120,6 +120,7 @@ FunctionEnd
|
||||
|
||||
Function MSYSFstabUpdate
|
||||
Call MSYSDetectSilent
|
||||
; Check the result.
|
||||
Pop $R0
|
||||
Push $R0
|
||||
Push $INSTDIR
|
||||
@@ -132,6 +133,7 @@ Function MSYSFstabUpdate
|
||||
StrCpy $R1 "$R1 /opt/rtems-${PRODUCT_VERSION}$\n"
|
||||
FileOpen $9 "$R0\etc\fstab" a
|
||||
ifErrors 0 +3
|
||||
; Create the file.
|
||||
MessageBox MB_OK "Cannot open $R0\etc\fstab. MSYS mount point not added."
|
||||
Goto Close
|
||||
FileSeek $9 0 SET
|
||||
|
||||
@@ -295,7 +295,7 @@ Section Uninstall
|
||||
FindFirst $0 $1 "$INSTDIR\rtems${PRODUCT_VERSION}-${RTEMS_BUILD_VERSION}-tools-*-uninst.exe"
|
||||
Uninstall_Targets:
|
||||
StrCmp $1 "" Uninstall_Targets_Done
|
||||
IntCmp $2 0 0 +3
|
||||
IntCmp $2 0 0 0 +3
|
||||
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 \
|
||||
"You have tools installed. Are you sure you want to uninstall all RTEMS Tools ?" IDYES +2
|
||||
Abort
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
auto_section_text="Autoconf and Automake"
|
||||
arm_section_text="ARM Targets"
|
||||
bfin_section_text="Blackfin Targets"
|
||||
h8300_section_text="H8300 16bit Target"
|
||||
i386_section_text="Intel i386 Targets"
|
||||
m68k_section_text="Coldfire and M68000 Targets"
|
||||
|
||||
@@ -1 +1 @@
|
||||
arm h8300 i386 m68k mips powerpc sh sparc
|
||||
arm bfin h8300 i386 m68k mips powerpc sh sparc
|
||||
|
||||
@@ -72,13 +72,13 @@ if [ $prefix = none ]; then
|
||||
terminate "no prefix set"
|
||||
fi
|
||||
|
||||
exebase=${prefix}/${version}/packages/mingw32/exe
|
||||
srcbase=${prefix}/${version}/packages/mingw32/SRPMS
|
||||
exebase=${prefix}/packages/mingw32/exe
|
||||
srcbase=${prefix}/packages/mingw32/SRPMS
|
||||
|
||||
mkdir -p ${ftpbase}/${version}/build-${tool_build}/source
|
||||
check "creating: ${ftpbase}/${version}/build-${tool_build}/source"
|
||||
|
||||
exes=$(find $exebase -name \*-${tool_build}.exe)
|
||||
exes=$(find $exebase -name rtems${version}-\*-${tool_build}.exe)
|
||||
for e in $exes
|
||||
do
|
||||
echo "cp $e ${ftpbase}/${version}/build-${tool_build}/."
|
||||
@@ -89,7 +89,7 @@ done
|
||||
cd ${ftpbase}/${version}/build-${tool_build}/source
|
||||
check "change directory: ${ftpbase}/${version}/build-${tool_build}/source"
|
||||
|
||||
for s in ${srcbase}/*.rpm
|
||||
for s in ${srcbase}/*-rtems${version}-*.rpm
|
||||
do
|
||||
echo "rpm2cpio $s | cpio --extract --quiet"
|
||||
rpm2cpio $s | cpio --extract --quiet
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version=4.8
|
||||
tool_build=15
|
||||
tool_build=17
|
||||
|
||||
Reference in New Issue
Block a user