[RSB PATCH 1/2] Add bare target to build standalone sis (devel/sis)
Jiri Gaisler
jiri at gaisler.se
Fri Jun 14 22:00:56 UTC 2019
---
bare/config/devel/sis-2-1.cfg | 18 +++++++++
bare/config/devel/sis.bset | 8 ++++
source-builder/config/sis-2-1.cfg | 66 +++++++++++++++++++++++++++++++
3 files changed, 92 insertions(+)
create mode 100644 bare/config/devel/sis-2-1.cfg
create mode 100644 bare/config/devel/sis.bset
create mode 100644 source-builder/config/sis-2-1.cfg
diff --git a/bare/config/devel/sis-2-1.cfg b/bare/config/devel/sis-2-1.cfg
new file mode 100644
index 0000000..ad6e527
--- /dev/null
+++ b/bare/config/devel/sis-2-1.cfg
@@ -0,0 +1,18 @@
+#
+# Sis emulator 2.16
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+%include %{_configdir}/base.cfg
+
+%define sis_version 2.16
+%hash sha256 sis-%{sis_version}.tar.bz2 37cdb8f5cc1255e273423f580f5c76755e5851dabb677f6bc1100f27557b8dce
+
+#
+# The sis build instructions. We use 2.15
+#
+%include %{_configdir}/sis-2-1.cfg
+
diff --git a/bare/config/devel/sis.bset b/bare/config/devel/sis.bset
new file mode 100644
index 0000000..50ffbae
--- /dev/null
+++ b/bare/config/devel/sis.bset
@@ -0,0 +1,8 @@
+#
+# Build set for sis emulator
+#
+
+%define release 1
+
+devel/sis-2-1
+
diff --git a/source-builder/config/sis-2-1.cfg b/source-builder/config/sis-2-1.cfg
new file mode 100644
index 0000000..a07b2db
--- /dev/null
+++ b/source-builder/config/sis-2-1.cfg
@@ -0,0 +1,66 @@
+#
+# Sis 2.xx Version 1.
+#
+# This configuration file configure's, make's and install's sis
+#
+
+Name: sis-%{sis_version}-%{_host}-%{release}
+Summary: Sis v%{sis_version} for host %{_host}
+Version: %{sis_version}
+Release: %{release}
+#URL: http://www.gnu.org/software/sis/
+
+#
+# Source
+#
+%define sis_source sis-%{sis_version}
+%source set sis https://git.rtems.org/sis/snapshot/%{sis_source}.tar.bz2
+
+#
+# Prepare the source code.
+#
+%prep
+ build_top=$(pwd)
+
+ %source setup sis -q -n sis-%{sis_version}
+
+ cd ${build_top}
+
+%build
+ build_top=$(pwd)
+
+ cd sis-%{sis_version}
+
+ ac_prefix=%{_prefix}
+
+ if test "%{_build}" != "%{_host}" ; then
+ CFLAGS_FOR_BUILD="-g -O2 -Wall"
+ fi
+ export CFLAGS CFLAGS_FOR_BUILD CC
+
+ if test "%{_target}" != "" ; then
+ SIS_PREFIX="%{_target}-"
+ fi
+ CFLAGS="$SB_CFLAGS" \
+ ./configure \
+ --build=%{_build} --host=%{_host} \
+ --program-prefix="$SIS_PREFIX" \
+ --prefix=${ac_prefix}
+
+ %{__make} %{?_smp_mflags} all
+
+ unset CFLAGS_FOR_BUILD
+
+ cd ${build_top}
+
+%install
+ build_top=$(pwd)
+
+ export PATH="%{_bindir}:${PATH}"
+ %{__rmdir} $SB_BUILD_ROOT
+
+ cd sis-%{sis_version}
+
+ %{__make} DESTDIR=$SB_BUILD_ROOT install
+
+ cd ${build_top}
--
2.17.1
More information about the devel
mailing list