[PATCH 5/7] add nanoX bset
YANG QIAO
yangqiao0505 at me.com
Mon Aug 10 12:48:25 UTC 2015
From: YANG Qiao <yangqiao0505 at me.com>
---
rtems/config/4.11/graphics/microwindows.bset | 20 +++++++
rtems/config/graphics/microwindows-0.93-dev-1.cfg | 19 ++++++
source-builder/config/microwindows-1.cfg | 71 +++++++++++++++++++++++
3 files changed, 110 insertions(+)
create mode 100644 rtems/config/4.11/graphics/microwindows.bset
create mode 100644 rtems/config/graphics/microwindows-0.93-dev-1.cfg
create mode 100644 source-builder/config/microwindows-1.cfg
diff --git a/rtems/config/4.11/graphics/microwindows.bset b/rtems/config/4.11/graphics/microwindows.bset
new file mode 100644
index 0000000..edae6d7
--- /dev/null
+++ b/rtems/config/4.11/graphics/microwindows.bset
@@ -0,0 +1,20 @@
+#
+# Build set for Nano-X Window System
+#
+
+%define release 1
+
+#
+# RTEMS Version
+#
+%define rtems_version 4.11
+
+#
+# The RTEMS URL paths.
+#
+%include rtems-urls.bset
+
+#
+# Build microwindows.
+#
+graphics/microwindows-0.93-dev-1.cfg
diff --git a/rtems/config/graphics/microwindows-0.93-dev-1.cfg b/rtems/config/graphics/microwindows-0.93-dev-1.cfg
new file mode 100644
index 0000000..c0cdc86
--- /dev/null
+++ b/rtems/config/graphics/microwindows-0.93-dev-1.cfg
@@ -0,0 +1,19 @@
+#
+# microwindows 0.92
+#
+
+%if %{release} == %{nil}
+ %define release 1
+%endif
+
+%include %{_configdir}/rtems-bsp.cfg
+
+#
+# microwindows Version
+#
+%define microwindows_version 0.93-dev
+
+#
+# microwindows Build configuration
+#
+%include %{_configdir}/microwindows-1.cfg
diff --git a/source-builder/config/microwindows-1.cfg b/source-builder/config/microwindows-1.cfg
new file mode 100644
index 0000000..5057d71
--- /dev/null
+++ b/source-builder/config/microwindows-1.cfg
@@ -0,0 +1,71 @@
+#
+# microwindows
+#
+# This configuration file configure's, make's and install's microwindows.
+#
+
+%if %{release} == %{nil}
+%define release 1
+%endif
+
+Name: microwindows-v%{microwindows_version}-%{_host}-%{release}
+Summary: microwindows is an Open Source Window System
+Version: %{microwindows_version}
+Release: %{release}
+URL: http://www.microwindows.org/
+BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
+
+#
+# microwindows Source
+#
+%source set microwindows git://github.com/alex-sever-h/microwin.git
+%patch add microwindows https://raw.githubusercontent.com/yangqiao/rtems-tools/graphics/tools/4.11/microwindows/microwindows-0.93-dev.diff
+%hash md5 microwindows-0.93-dev.diff aea54ac45389ca06c956215bad32c24c
+%patch add microwindows https://raw.githubusercontent.com/yangqiao/rtems-tools/graphics/tools/4.11/microwindows/microwindows-0.93-dev-without-keyboard.diff
+%hash md5 microwindows-0.93-dev-without-keyboard.diff c78aacc33e9b346d5ac78b2b35f17809
+
+#
+# Prepare the source code.
+#
+%prep
+ build_top=$(pwd)
+
+ source_dir_microwindows="microwin"
+ %source setup microwindows -q -n microwin
+ %patch setup microwindows -p1
+
+ cd ${build_top}
+
+#
+# Build the source code.
+# The configure should be run in the source dir
+#
+%build
+ build_top=$(pwd)
+
+ %{build_directory}
+
+ mkdir -p ${build_dir}/src
+ cd ${build_dir}/src
+ cp -r ${build_top}/${source_dir_microwindows}/src/* .
+
+ #%{host_build_flags}
+
+ export RTEMS_MAKEFILE_PATH=%{rtems_bsp_prefix}
+
+ make -f Makefile.rtems CONFIG=`pwd`/Configs/config.rtems -k all
+
+ cd ${build_top}
+
+%install
+ build_top=$(pwd)
+
+ %{__rmdir} $SB_BUILD_ROOT
+
+ cd ${build_dir}/src
+ mkdir -p $SB_BUILD_ROOT/%{_includedir}
+ mkdir -p $SB_BUILD_ROOT/%{_libdir}
+ mkdir -p $SB_BUILD_ROOT/%{_bindir}
+ cp -r include/* $SB_BUILD_ROOT/%{_includedir}
+ cp -r lib/*.a $SB_BUILD_ROOT/%{_libdir}
+ cp -r bin/* $SB_BUILD_ROOT/%{_bindir}
--
2.1.0
More information about the devel
mailing list