Default to not building bsps. Too many problems.

This commit is contained in:
Chris Johns
2006-09-03 10:50:36 +00:00
parent d2efdeb170
commit 4b88b73b1b
2 changed files with 15 additions and 10 deletions

View File

@@ -85,20 +85,21 @@ AC_MSG_RESULT([$targets])
AC_MSG_CHECKING([for bsps])
bsps="%{nil}"
AC_ARG_ENABLE([bsps],
[ --enable-bsps=<yes/bsps> BSP list],[
[ --enable-bsps=<yes/no/bsps> BSP list],[
case "$enable_bsps" in
yes) # ignore, use default
bsps="all"
;;
no)
bsps="RTEMS_BSP=\"\""
no | none)
bsps="%{nil}"
;;
*) # take a the list to build
bsps="RTEMS_BSP=\"$enable_bsps\""
bsps="$enable_bsps"
;;
esac
])
AS_IF([test x"$bsps" = x"%{nil}"],
[AC_MSG_RESULT([all])],
[AC_MSG_RESULT([none])],
[AC_MSG_RESULT([$bsps])])
AC_SUBST(RTEMS_API, [M4_RTEMS_API])

View File

@@ -22,7 +22,7 @@
%define rtems_version %{expand:%(echo @RTEMS_VERSION@ | sed -e 's,-.*,,')}
%define rtems_rpmvers %{expand:%(echo @RTEMS_VERSION@ | tr - _ )}
%define rtems_bsp @RTEMS_BSP@
%define rtems_bsps @RTEMS_BSP@
%define rtems_bootstrap @RTEMS_BOOTSTRAP@
@@ -57,13 +57,17 @@ RTEMS Libraries for %{rtems_target}.
%build
if [ "%{rtems_bootstrap}" = "yes" ]; then
cd rtems-%{rtems_api}
cd rtems-%{rtems_version}
./bootstrap
cd ..
fi
mkdir -p build
if [ "x%{rtems_bsps}" = "x" ]; then
optargs="$optargs --disable-rtemsbsp"
else
optargs="$optargs --enable-rtemsbsp=\"%{rtems_bsps}\""
fi
cd build
bps=""
../rtems-%{rtems_version}/configure \
--prefix=%{_prefix} \
--target=%rtems_target \
@@ -81,7 +85,7 @@ RTEMS Libraries for %{rtems_target}.
--disable-expada \
--enable-multilib \
$optargs
make all %{rtems_bsp}
make all
cd ..
%install
@@ -103,7 +107,7 @@ RTEMS operating system for %{rtems_target}
%defattr(-,root,root)
# broken on the avr
%config %{_prefix}/lib/pkgconfig
#%config %{_prefix}/lib/pkgconfig
%config %{_prefix}/make
%doc %{_prefix}/share/man