summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2020-06-04 15:08:07 +0300
committerSlava Barinov <v.barinov@samsung.com>2020-06-08 12:17:05 +0300
commitc9feee5c76863c128e42a97a7fda148b54fdb043 (patch)
tree05e90b3bc517e6beb6aca427b5bb52bfc75da2ec
parent4b6e10509846f8d3e4e900edccd438f3efb10959 (diff)
downloadbinutils-c9feee5c76863c128e42a97a7fda148b54fdb043.tar.gz
binutils-c9feee5c76863c128e42a97a7fda148b54fdb043.tar.bz2
binutils-c9feee5c76863c128e42a97a7fda148b54fdb043.zip
Change-Id: Icb766cf48e675d30a5843355679be786b6e531b7 Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r--packaging/binutils-aarch64.spec33
-rw-r--r--packaging/binutils-armv7hl.spec33
-rw-r--r--packaging/binutils-armv7l.spec33
-rw-r--r--packaging/binutils.spec33
4 files changed, 132 insertions, 0 deletions
diff --git a/packaging/binutils-aarch64.spec b/packaging/binutils-aarch64.spec
index 4987cb3109e..cd05bcc0a41 100644
--- a/packaging/binutils-aarch64.spec
+++ b/packaging/binutils-aarch64.spec
@@ -30,6 +30,10 @@
%define binutils_run_tests 1
%endif
+%if 0%{?dump_configure}
+%define binutils_dump_configure 1
+%endif
+
# Enable this when testing on device to:
# 1. Enable macro to turn on testsuite building ('binutils_run_tests 1')
# 2. Keep 'build-dir/' folder in build stage as we do not want to rebuild all
@@ -58,6 +62,9 @@ BuildRequires: gcc-c++
BuildRequires: dejagnu
BuildRequires: glibc-devel-static
%endif
+%if 0%{?binutils_dump_configure}
+BuildRequires: configure-dumper
+%endif
Version: 2.33.1
Release: 0
Url: http://www.gnu.org/software/binutils/
@@ -105,6 +112,15 @@ Group: Development/Building
Results from running the binutils tests.
}
+%{?binutils_dump_configure:
+%package configure-dump
+Summary: GNU Binutils configure dump
+License: GPL-3.0+
+Group: Development/Languages
+%description configure-dump
+This package contains dump of configure variables of Binutils
+}
+
%prep
%setup -q -n binutils-%{version}
cp %{SOURCE1001} .
@@ -125,6 +141,7 @@ mkdir -p build-dir
cd build-dir
%{!?binutils_skip_configure:
+%{?binutils_dump_configure:patch_configure.pl ..} # Add debug prints into configure
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
@@ -153,6 +170,12 @@ cd build-dir
%{!?binutils_skip_make:
make %{?_smp_mflags}
+%{?binutils_dump_configure:
+ dump_configure.pl .. . \
+ --project binutils \
+ --project-version %{version} \
+ --out_db binutils-%{version}-%{release}-%_project-%_repository.db
+ }
}
%{?binutils_exit_on_make_finish:
@@ -207,6 +230,10 @@ rm -rf %{buildroot}%{_prefix}/lib*
rm -rf %{buildroot}%{_datadir}
}
+%{?binutils_dump_configure:
+ install -D -m 0644 binutils-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%files
%manifest binutils.manifest
%defattr(-,root,root)
@@ -238,4 +265,10 @@ rm -rf %{buildroot}%{_datadir}
%doc testresults/*
}
+%{?binutils_dump_configure:
+%files configure-dump
+%manifest binutils.manifest
+%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%changelog
diff --git a/packaging/binutils-armv7hl.spec b/packaging/binutils-armv7hl.spec
index bfbceaa1cf0..c4522724f5a 100644
--- a/packaging/binutils-armv7hl.spec
+++ b/packaging/binutils-armv7hl.spec
@@ -30,6 +30,10 @@
%define binutils_run_tests 1
%endif
+%if 0%{?dump_configure}
+%define binutils_dump_configure 1
+%endif
+
# Enable this when testing on device to:
# 1. Enable macro to turn on testsuite building ('binutils_run_tests 1')
# 2. Keep 'build-dir/' folder in build stage as we do not want to rebuild all
@@ -58,6 +62,9 @@ BuildRequires: gcc-c++
BuildRequires: dejagnu
BuildRequires: glibc-devel-static
%endif
+%if 0%{?binutils_dump_configure}
+BuildRequires: configure-dumper
+%endif
Version: 2.33.1
Release: 0
Url: http://www.gnu.org/software/binutils/
@@ -105,6 +112,15 @@ Group: Development/Building
Results from running the binutils tests.
}
+%{?binutils_dump_configure:
+%package configure-dump
+Summary: GNU Binutils configure dump
+License: GPL-3.0+
+Group: Development/Languages
+%description configure-dump
+This package contains dump of configure variables of Binutils
+}
+
%prep
%setup -q -n binutils-%{version}
cp %{SOURCE1001} .
@@ -125,6 +141,7 @@ mkdir -p build-dir
cd build-dir
%{!?binutils_skip_configure:
+%{?binutils_dump_configure:patch_configure.pl ..} # Add debug prints into configure
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
@@ -153,6 +170,12 @@ cd build-dir
%{!?binutils_skip_make:
make %{?_smp_mflags}
+%{?binutils_dump_configure:
+ dump_configure.pl .. . \
+ --project binutils \
+ --project-version %{version} \
+ --out_db binutils-%{version}-%{release}-%_project-%_repository.db
+ }
}
%{?binutils_exit_on_make_finish:
@@ -207,6 +230,10 @@ rm -rf %{buildroot}%{_prefix}/lib*
rm -rf %{buildroot}%{_datadir}
}
+%{?binutils_dump_configure:
+ install -D -m 0644 binutils-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%files
%manifest binutils.manifest
%defattr(-,root,root)
@@ -238,4 +265,10 @@ rm -rf %{buildroot}%{_datadir}
%doc testresults/*
}
+%{?binutils_dump_configure:
+%files configure-dump
+%manifest binutils.manifest
+%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%changelog
diff --git a/packaging/binutils-armv7l.spec b/packaging/binutils-armv7l.spec
index a3c6bad56ee..225f7a3e6ae 100644
--- a/packaging/binutils-armv7l.spec
+++ b/packaging/binutils-armv7l.spec
@@ -30,6 +30,10 @@
%define binutils_run_tests 1
%endif
+%if 0%{?dump_configure}
+%define binutils_dump_configure 1
+%endif
+
# Enable this when testing on device to:
# 1. Enable macro to turn on testsuite building ('binutils_run_tests 1')
# 2. Keep 'build-dir/' folder in build stage as we do not want to rebuild all
@@ -58,6 +62,9 @@ BuildRequires: gcc-c++
BuildRequires: dejagnu
BuildRequires: glibc-devel-static
%endif
+%if 0%{?binutils_dump_configure}
+BuildRequires: configure-dumper
+%endif
Version: 2.33.1
Release: 0
Url: http://www.gnu.org/software/binutils/
@@ -105,6 +112,15 @@ Group: Development/Building
Results from running the binutils tests.
}
+%{?binutils_dump_configure:
+%package configure-dump
+Summary: GNU Binutils configure dump
+License: GPL-3.0+
+Group: Development/Languages
+%description configure-dump
+This package contains dump of configure variables of Binutils
+}
+
%prep
%setup -q -n binutils-%{version}
cp %{SOURCE1001} .
@@ -125,6 +141,7 @@ mkdir -p build-dir
cd build-dir
%{!?binutils_skip_configure:
+%{?binutils_dump_configure:patch_configure.pl ..} # Add debug prints into configure
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
@@ -153,6 +170,12 @@ cd build-dir
%{!?binutils_skip_make:
make %{?_smp_mflags}
+%{?binutils_dump_configure:
+ dump_configure.pl .. . \
+ --project binutils \
+ --project-version %{version} \
+ --out_db binutils-%{version}-%{release}-%_project-%_repository.db
+ }
}
%{?binutils_exit_on_make_finish:
@@ -207,6 +230,10 @@ rm -rf %{buildroot}%{_prefix}/lib*
rm -rf %{buildroot}%{_datadir}
}
+%{?binutils_dump_configure:
+ install -D -m 0644 binutils-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%files
%manifest binutils.manifest
%defattr(-,root,root)
@@ -238,4 +265,10 @@ rm -rf %{buildroot}%{_datadir}
%doc testresults/*
}
+%{?binutils_dump_configure:
+%files configure-dump
+%manifest binutils.manifest
+%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%changelog
diff --git a/packaging/binutils.spec b/packaging/binutils.spec
index 27d93c4d4f7..4deda5b0eba 100644
--- a/packaging/binutils.spec
+++ b/packaging/binutils.spec
@@ -27,6 +27,10 @@
%define binutils_run_tests 1
%endif
+%if 0%{?dump_configure}
+%define binutils_dump_configure 1
+%endif
+
# Enable this when testing on device to:
# 1. Enable macro to turn on testsuite building ('binutils_run_tests 1')
# 2. Keep 'build-dir/' folder in build stage as we do not want to rebuild all
@@ -55,6 +59,9 @@ BuildRequires: gcc-c++
BuildRequires: dejagnu
BuildRequires: glibc-devel-static
%endif
+%if 0%{?binutils_dump_configure}
+BuildRequires: configure-dumper
+%endif
Version: 2.33.1
Release: 0
Url: http://www.gnu.org/software/binutils/
@@ -102,6 +109,15 @@ Group: Development/Building
Results from running the binutils tests.
}
+%{?binutils_dump_configure:
+%package configure-dump
+Summary: GNU Binutils configure dump
+License: GPL-3.0+
+Group: Development/Languages
+%description configure-dump
+This package contains dump of configure variables of Binutils
+}
+
%prep
%setup -q -n binutils-%{version}
cp %{SOURCE1001} .
@@ -122,6 +138,7 @@ mkdir -p build-dir
cd build-dir
%{!?binutils_skip_configure:
+%{?binutils_dump_configure:patch_configure.pl ..} # Add debug prints into configure
../configure \
--prefix=%{_prefix} --libdir=%{_libdir} \
--infodir=%{_infodir} --mandir=%{_mandir} \
@@ -150,6 +167,12 @@ cd build-dir
%{!?binutils_skip_make:
make %{?_smp_mflags}
+%{?binutils_dump_configure:
+ dump_configure.pl .. . \
+ --project binutils \
+ --project-version %{version} \
+ --out_db binutils-%{version}-%{release}-%_project-%_repository.db
+ }
}
%{?binutils_exit_on_make_finish:
@@ -204,6 +227,10 @@ rm -rf %{buildroot}%{_prefix}/lib*
rm -rf %{buildroot}%{_datadir}
}
+%{?binutils_dump_configure:
+ install -D -m 0644 binutils-%{version}-%{release}-%_project-%_repository.db %{buildroot}%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%files
%manifest binutils.manifest
%defattr(-,root,root)
@@ -235,4 +262,10 @@ rm -rf %{buildroot}%{_datadir}
%doc testresults/*
}
+%{?binutils_dump_configure:
+%files configure-dump
+%manifest binutils.manifest
+%{_datadir}/binutils-%{version}-%{release}-%_project-%_repository.db
+}
+
%changelog