From 5a30a36f0e385eec2ce871bfd5deacd5c4647b1f4341c56b97fb3944849fe27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Mon, 22 Aug 2022 08:06:20 +0000 Subject: [PATCH] Accepting request 998449 from home:matwey:pru This is additional package for cross-pru-gcc containing device-specs and includes for real existing device with PRU architecture. The package is quite useful since cross-pru-gcc provides device-spec only for simulator. OBS-URL: https://build.opensuse.org/request/show/998449 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gnuprumcu?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ gnuprumcu-0.8.0.tar.gz | 3 +++ gnuprumcu.changes | 4 +++ gnuprumcu.spec | 60 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 .gitattributes create mode 100644 gnuprumcu-0.8.0.tar.gz create mode 100644 gnuprumcu.changes create mode 100644 gnuprumcu.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/gnuprumcu-0.8.0.tar.gz b/gnuprumcu-0.8.0.tar.gz new file mode 100644 index 0000000..faf2176 --- /dev/null +++ b/gnuprumcu-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95363eb4cfd78797431e8de3858a087c9d6f0204239b159c27675b38e008d143 +size 121616 diff --git a/gnuprumcu.changes b/gnuprumcu.changes new file mode 100644 index 0000000..19d90c8 --- /dev/null +++ b/gnuprumcu.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Aug 21 07:45:44 UTC 2022 - Matwey Kornilov + +- Initial version diff --git a/gnuprumcu.spec b/gnuprumcu.spec new file mode 100644 index 0000000..7037c6e --- /dev/null +++ b/gnuprumcu.spec @@ -0,0 +1,60 @@ +# +# spec file for package gnuprumcu-devel +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: gnuprumcu-devel +Version: 0.8.0 +Release: 0 +Summary: Linker scripts and device specs for PRU MCU variants +License: BSD-2-Clause +URL: https://github.com/dinuxbg/gnuprumcu +Source: https://github.com/dinuxbg/gnuprumcu/releases/download/v%{version}/gnuprumcu-%{version}.tar.gz +BuildRequires: cross-pru-binutils >= 2.37 +BuildRequires: cross-pru-gcc%{gcc_version} +BuildRequires: cross-pru-newlib-devel +BuildRequires: fdupes +BuildArch: noarch + +%description +This package contains the linker scripts, device specs and I/O headers for the +different PRU variants in different TI SoCs. Install this package to allow the +"-mmcu=" GCC compiler option to pick the correct settings for your board. + +%prep +%setup -q -n gnuprumcu-%{version} + +%build +./configure --prefix=%{_prefix} --host=pru +%make_build + +%install +%make_install + +%fdupes %{buildroot} + +%files +%license COPYING +%doc README.md AUTHORS +%dir %{_prefix}/pru +%dir %{_prefix}/pru/include +%dir %{_prefix}/pru/include/pru +%{_prefix}/pru/include/pru/* +%dir %{_prefix}/pru/lib +%dir %{_prefix}/pru/lib/device-specs +%{_prefix}/pru/lib/device-specs/* + +%changelog