mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Moxie GDB DTC support added
The Moxie GDB simulator uses the DTC (device tree compiler) to build a device tree. This is added and built before the gdb.
This commit is contained in:
parent
a25a19d730
commit
b1202fcbc4
@ -15,6 +15,7 @@
|
||||
# Tools configuration.
|
||||
#
|
||||
expat-2.1.0-1
|
||||
dtc-1.2.0
|
||||
tools/rtems-binutils-2.22-1
|
||||
tools/rtems-gcc-4.7.2-newlib-1.20.0-1
|
||||
tools/rtems-gdb-7.5.1-1
|
||||
|
54
source-builder/config/dtc-1-1.cfg
Normal file
54
source-builder/config/dtc-1-1.cfg
Normal file
@ -0,0 +1,54 @@
|
||||
#
|
||||
# DTC 1.x.x Version 1.
|
||||
#
|
||||
# This configuration file configure's, make's and install's DTC.
|
||||
#
|
||||
|
||||
%if %{release} == %{nil}
|
||||
%define release 1
|
||||
%endif
|
||||
|
||||
Name: dtc-%{dtc_version}-%{_host}-%{release}
|
||||
Summary: Device Tree Compiler v%{dtc_version} for target %{_target} on host %{_host}
|
||||
Version: %{dtc_version}
|
||||
Release: %{release}
|
||||
URL: http://www.jdl.com/software/
|
||||
BuildRoot: %{_tmppath}/%{name}-root-%(%{__id_u} -n)
|
||||
|
||||
#
|
||||
# Source
|
||||
#
|
||||
Source0: http://www.jdl.com/software/dtc-v%{dtc_version}.tgz
|
||||
|
||||
#
|
||||
# Prepare the source code.
|
||||
#
|
||||
%prep
|
||||
%setup -q -c -T -n %{name}-%{version}
|
||||
cd dtc-v%{dtc_version}
|
||||
%{?patch0:%patch0 -p1}
|
||||
%{?patch1:%patch1 -p1}
|
||||
%{?patch2:%patch2 -p1}
|
||||
%{?patch3:%patch3 -p1}
|
||||
%{?patch4:%patch4 -p1}
|
||||
%{?patch5:%patch5 -p1}
|
||||
%{?patch6:%patch6 -p1}
|
||||
%{?patch7:%patch7 -p1}
|
||||
cd ..
|
||||
|
||||
%build
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
cd dtc-v%{dtc_version}
|
||||
|
||||
%{__make} PREFIX=%{_prefix}
|
||||
|
||||
cd ..
|
||||
|
||||
%install
|
||||
export PATH="%{_bindir}:${PATH}"
|
||||
rm -rf $SB_BUILD_ROOT
|
||||
|
||||
cd dtc-v%{dtc_version}
|
||||
%{__make} DESTDIR=$SB_BUILD_ROOT PREFIX=%{_prefix} install
|
||||
|
||||
cd ..
|
16
source-builder/config/dtc-1.2.0.cfg
Normal file
16
source-builder/config/dtc-1.2.0.cfg
Normal file
@ -0,0 +1,16 @@
|
||||
#
|
||||
# DTC (Device Tree Compiler) 1.3.0
|
||||
#
|
||||
|
||||
%if %{release} == %{nil}
|
||||
%define release 1
|
||||
%endif
|
||||
|
||||
%include %{_configdir}/base.cfg
|
||||
|
||||
%define dtc_version 1.2.0
|
||||
|
||||
#
|
||||
# The DTC build instructions. We use 1.x.x Release 1.
|
||||
#
|
||||
%include %{_configdir}/dtc-1-1.cfg
|
Loading…
x
Reference in New Issue
Block a user