mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
add nanoX bset
This commit is contained in:
parent
457c7ec9fd
commit
a7d2db0241
20
rtems/config/4.11/graphics/microwindows.bset
Normal file
20
rtems/config/4.11/graphics/microwindows.bset
Normal file
@ -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
|
19
rtems/config/graphics/microwindows-0.93-dev-1.cfg
Normal file
19
rtems/config/graphics/microwindows-0.93-dev-1.cfg
Normal file
@ -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
|
71
source-builder/config/microwindows-1.cfg
Normal file
71
source-builder/config/microwindows-1.cfg
Normal file
@ -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}
|
Loading…
x
Reference in New Issue
Block a user