forked from Imagelibrary/rtems
Made the RTEMS version get substituted properly even though it is
not right yet. Now can specify rpm_build_root via setup.
This commit is contained in:
@@ -65,6 +65,7 @@ GDBVERS = @GDBVERS@
|
|||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
RPM_SPECSdir = @RPM_SPECSdir@
|
RPM_SPECSdir = @RPM_SPECSdir@
|
||||||
|
RTEMS_VERSION = @RTEMS_VERSION@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ GDBVERS = @GDBVERS@
|
|||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
RPM_SPECSdir = @RPM_SPECSdir@
|
RPM_SPECSdir = @RPM_SPECSdir@
|
||||||
|
RTEMS_VERSION = @RTEMS_VERSION@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Provides: @target_alias@-binutils
|
|||||||
|
|
||||||
Autoreqprov: on
|
Autoreqprov: on
|
||||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||||
Buildroot: /opt/tmp
|
Buildroot: @rpm_build_root@
|
||||||
Prefix: /opt
|
Prefix: /opt
|
||||||
|
|
||||||
Version: @binutils_version@
|
Version: @binutils_version@
|
||||||
|
|||||||
5
scripts/configure
vendored
5
scripts/configure
vendored
@@ -769,6 +769,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# RTEMS_CHECK_VERSION(..)
|
# RTEMS_CHECK_VERSION(..)
|
||||||
|
RTEMS_VERSION=GET_RTEMS_VERSION_XXX
|
||||||
|
|
||||||
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
||||||
. ./setup.cache
|
. ./setup.cache
|
||||||
@@ -777,7 +778,7 @@ test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
|||||||
# redhat uses /usr/src/redhat
|
# redhat uses /usr/src/redhat
|
||||||
# others might use /usr/src
|
# others might use /usr/src
|
||||||
echo $ac_n "checking for rpm SPECS directory""... $ac_c" 1>&6
|
echo $ac_n "checking for rpm SPECS directory""... $ac_c" 1>&6
|
||||||
echo "configure:781: checking for rpm SPECS directory" >&5
|
echo "configure:782: checking for rpm SPECS directory" >&5
|
||||||
if test -d /usr/src/packages/SPECS;
|
if test -d /usr/src/packages/SPECS;
|
||||||
then
|
then
|
||||||
RPM_SPECSdir=/usr/src/packages/SPECS;
|
RPM_SPECSdir=/usr/src/packages/SPECS;
|
||||||
@@ -803,6 +804,7 @@ GDBVERS="gdb-${gdb_version}"
|
|||||||
BSPVERS="${RTEMS_VERSION}"
|
BSPVERS="${RTEMS_VERSION}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
trap '' 1 2 15
|
trap '' 1 2 15
|
||||||
cat > confcache <<\EOF
|
cat > confcache <<\EOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
@@ -973,6 +975,7 @@ s%@RPM_SPECSdir@%$RPM_SPECSdir%g
|
|||||||
s%@GCCNEWLIBVERS@%$GCCNEWLIBVERS%g
|
s%@GCCNEWLIBVERS@%$GCCNEWLIBVERS%g
|
||||||
s%@BINUTILSVERS@%$BINUTILSVERS%g
|
s%@BINUTILSVERS@%$BINUTILSVERS%g
|
||||||
s%@GDBVERS@%$GDBVERS%g
|
s%@GDBVERS@%$GDBVERS%g
|
||||||
|
s%@RTEMS_VERSION@%$RTEMS_VERSION%g
|
||||||
s%@BSPVERS@%$BSPVERS%g
|
s%@BSPVERS@%$BSPVERS%g
|
||||||
|
|
||||||
CEOF
|
CEOF
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ AC_INIT(binutils)
|
|||||||
AM_INIT_AUTOMAKE(scripts,19991021-0,no)
|
AM_INIT_AUTOMAKE(scripts,19991021-0,no)
|
||||||
|
|
||||||
# RTEMS_CHECK_VERSION(..)
|
# RTEMS_CHECK_VERSION(..)
|
||||||
|
RTEMS_VERSION=GET_RTEMS_VERSION_XXX
|
||||||
|
|
||||||
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
test -f ./setup.cache || cp ${srcdir}/setup.def ./setup.cache
|
||||||
. ./setup.cache
|
. ./setup.cache
|
||||||
@@ -35,6 +36,7 @@ AC_SUBST(BINUTILSVERS)
|
|||||||
GDBVERS="gdb-${gdb_version}"
|
GDBVERS="gdb-${gdb_version}"
|
||||||
AC_SUBST(GDBVERS)
|
AC_SUBST(GDBVERS)
|
||||||
BSPVERS="${RTEMS_VERSION}"
|
BSPVERS="${RTEMS_VERSION}"
|
||||||
|
AC_SUBST(RTEMS_VERSION)
|
||||||
AC_SUBST(BSPVERS)
|
AC_SUBST(BSPVERS)
|
||||||
|
|
||||||
AC_OUTPUT(
|
AC_OUTPUT(
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ GDBVERS = @GDBVERS@
|
|||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
RPM_SPECSdir = @RPM_SPECSdir@
|
RPM_SPECSdir = @RPM_SPECSdir@
|
||||||
|
RTEMS_VERSION = @RTEMS_VERSION@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ GDBVERS = @GDBVERS@
|
|||||||
MAKEINFO = @MAKEINFO@
|
MAKEINFO = @MAKEINFO@
|
||||||
PACKAGE = @PACKAGE@
|
PACKAGE = @PACKAGE@
|
||||||
RPM_SPECSdir = @RPM_SPECSdir@
|
RPM_SPECSdir = @RPM_SPECSdir@
|
||||||
|
RTEMS_VERSION = @RTEMS_VERSION@
|
||||||
VERSION = @VERSION@
|
VERSION = @VERSION@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = foreign
|
AUTOMAKE_OPTIONS = foreign
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ Summary: gdb for target @target_alias@
|
|||||||
Source0: gdb-@gdb_version@.tar.gz
|
Source0: gdb-@gdb_version@.tar.gz
|
||||||
Patch0: gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
|
Patch0: gdb-@gdb_version@-rtems-@gdb_patch_version@.diff
|
||||||
|
|
||||||
Buildroot: /tmp
|
Buildroot: @rpm_build_root@
|
||||||
|
|
||||||
# Patch:
|
# Patch:
|
||||||
%description
|
%description
|
||||||
RTEMS is an open source operating system for embedded systems.
|
RTEMS is an open source operating system for embedded systems.
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ target_alias=$1
|
|||||||
specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
|
specfile=${dst}/$target_alias-binutils-${binutils_version}.spec
|
||||||
|
|
||||||
sed -e "s%@Release@%${binutils_rpm_release}%g" \
|
sed -e "s%@Release@%${binutils_rpm_release}%g" \
|
||||||
|
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
|
||||||
-e "s%@target_alias@%${target_alias}%g" \
|
-e "s%@target_alias@%${target_alias}%g" \
|
||||||
-e "s%@binutils_version@%${binutils_version}%g" \
|
-e "s%@binutils_version@%${binutils_version}%g" \
|
||||||
-e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
|
-e "s%@binutils_patch_version@%${binutils_patch_version}%g" \
|
||||||
|
|||||||
@@ -50,9 +50,10 @@ bsp=$2
|
|||||||
specfile=${dst}/$target_alias-$bsp-$RTEMS_VERSION.spec
|
specfile=${dst}/$target_alias-$bsp-$RTEMS_VERSION.spec
|
||||||
|
|
||||||
sed -e "s%@Version@%${RTEMS_VERSION}%g" \
|
sed -e "s%@Version@%${RTEMS_VERSION}%g" \
|
||||||
-e "s%@bsp@%${bsp}%g" \
|
-e "s%@bsp@%${bsp}%g" \
|
||||||
-e "s%@Release@%${rtems_release}%g" \
|
-e "s%@Release@%${rtems_release}%g" \
|
||||||
-e "s%@target_alias@%${target_alias}%g" \
|
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
|
||||||
|
-e "s%@target_alias@%${target_alias}%g" \
|
||||||
< ${RTEMS_DIR}/rtems/rtems.spec.in \
|
< ${RTEMS_DIR}/rtems/rtems.spec.in \
|
||||||
> ${specfile}
|
> ${specfile}
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ specfile=${dst}/$target_alias-gcc-${gcc_version}-newlib-${newlib_version}.spec
|
|||||||
|
|
||||||
sed -e "s%@Release@%${gccnewlib_rpm_release}%g" \
|
sed -e "s%@Release@%${gccnewlib_rpm_release}%g" \
|
||||||
-e "s%@target_alias@%${target_alias}%g" \
|
-e "s%@target_alias@%${target_alias}%g" \
|
||||||
|
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
|
||||||
-e "s%@gcc_version@%${gcc_version}%g" \
|
-e "s%@gcc_version@%${gcc_version}%g" \
|
||||||
-e "s%@gcc_patch_version@%${gcc_patch_version}%g" \
|
-e "s%@gcc_patch_version@%${gcc_patch_version}%g" \
|
||||||
-e "s%@newlib_version@%${newlib_version}%g" \
|
-e "s%@newlib_version@%${newlib_version}%g" \
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ target_alias=$1
|
|||||||
specfile=${dst}/$target_alias-gdb-${gdb_version}.spec
|
specfile=${dst}/$target_alias-gdb-${gdb_version}.spec
|
||||||
|
|
||||||
sed -e "s%@Release@%${gdb_rpm_release}%g" \
|
sed -e "s%@Release@%${gdb_rpm_release}%g" \
|
||||||
|
-e "s%@rpm_build_root@%${rpm_build_root}%g" \
|
||||||
-e "s%@target_alias@%${target_alias}%g" \
|
-e "s%@target_alias@%${target_alias}%g" \
|
||||||
-e "s%@gdb_version@%${gdb_version}%g" \
|
-e "s%@gdb_version@%${gdb_version}%g" \
|
||||||
-e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
|
-e "s%@gdb_patch_version@%${gdb_patch_version}%g" \
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Summary: A free operating system for embedded systems
|
|||||||
Source: rtems-@Version@.tar.gz
|
Source: rtems-@Version@.tar.gz
|
||||||
# We claim to be relocatible, but in fact we are not
|
# We claim to be relocatible, but in fact we are not
|
||||||
Prefix: /opt
|
Prefix: /opt
|
||||||
Buildroot: /opt/tmp
|
Buildroot: @rpm_build_root@
|
||||||
# Patch:
|
# Patch:
|
||||||
%description
|
%description
|
||||||
RTEMS is a free operating system for embedded systems.
|
RTEMS is a free operating system for embedded systems.
|
||||||
|
|||||||
@@ -34,9 +34,10 @@ do
|
|||||||
echo "8 gdb version : $gdb_version"
|
echo "8 gdb version : $gdb_version"
|
||||||
echo "9 gdb patch version : $gdb_patch_version"
|
echo "9 gdb patch version : $gdb_patch_version"
|
||||||
echo "a gdb rpm release : $gdb_rpm_release"
|
echo "a gdb rpm release : $gdb_rpm_release"
|
||||||
|
echo "b rpm build root : $rpm_build_root"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo -n "[0-9a] or any other key to quit >"
|
echo -n "[0-9ab] or any other key to quit >"
|
||||||
read sel
|
read sel
|
||||||
case $sel in
|
case $sel in
|
||||||
0) echo -n "BINUTILS source >"
|
0) echo -n "BINUTILS source >"
|
||||||
@@ -61,6 +62,8 @@ do
|
|||||||
read gdb_patch_version ;;
|
read gdb_patch_version ;;
|
||||||
a) echo -n "GDB RPM release >"
|
a) echo -n "GDB RPM release >"
|
||||||
read gdb_rpm_release ;;
|
read gdb_rpm_release ;;
|
||||||
|
b) echo -n "RPM build root >"
|
||||||
|
read rpm_build_root ;;
|
||||||
*)
|
*)
|
||||||
return 0 ;;
|
return 0 ;;
|
||||||
esac
|
esac
|
||||||
@@ -83,7 +86,8 @@ echo "gcc_patch_version=$gcc_patch_version" >> $CFG
|
|||||||
echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
|
echo "gccnewlib_rpm_release=$gccnewlib_rpm_release" >> $CFG
|
||||||
echo "gdb_version=$gdb_version" >> $CFG
|
echo "gdb_version=$gdb_version" >> $CFG
|
||||||
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
|
echo "gdb_patch_version=$gdb_patch_version" >> $CFG
|
||||||
echo "gdbrpm_release=$gdbrpm_release" >> $CFG
|
echo "gdb_rpm_release=$gdb_rpm_release" >> $CFG
|
||||||
|
echo "rpm_build_root=$rpm_build_root" >> $CFG
|
||||||
|
|
||||||
echo " done"
|
echo " done"
|
||||||
test -f Makefile || ./configure
|
test -f Makefile || ./configure
|
||||||
|
|||||||
Reference in New Issue
Block a user