diff options
author | Slava Barinov <v.barinov@samsung.com> | 2023-06-20 14:03:32 +0300 |
---|---|---|
committer | Slava Barinov <v.barinov@samsung.com> | 2023-06-20 14:03:32 +0300 |
commit | e00fda4782ed9e92a30692279ff16d22e590d258 (patch) | |
tree | 3e1665eb93c611bbe90c394986045c72834dee4b | |
parent | 063e39c20d47be626fe2f0d2bb374c4314ea276c (diff) | |
download | rpm-e00fda4782ed9e92a30692279ff16d22e590d258.tar.gz rpm-e00fda4782ed9e92a30692279ff16d22e590d258.tar.bz2 rpm-e00fda4782ed9e92a30692279ff16d22e590d258.zip |
Add config.sub update to %configure macrosandbox/vbarinov/riscbuild
Change-Id: Iae6213d5dc5d4e3b21c88c142a73b29a59c3122c
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r-- | packaging/rpm-tizen_macros | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros index a82f27b8f..425d71038 100644 --- a/packaging/rpm-tizen_macros +++ b/packaging/rpm-tizen_macros @@ -16,6 +16,13 @@ %rb_arch %(echo %{_host_cpu}-linux | sed -e "s/i686/i586/" -e "s/armv5tel/armv4l/" -e "s/hppa2.0/hppa/") %rb_ver %(/usr/bin/ruby -e 'puts VERSION.sub(/\\\.\\\d$/, "")') +# Update config.sub file for packages not supporting current platform +%maybe_update_configsub \ +%ifarch riscv64 \ +[[ -e config.sub ]] && install -m 0755 $(automake --print-libdir)/config.sub config.sub \ +%endif \ +%{nil} + # external kernel module helper macro(s) %kernel_devel_uname_r %(/bin/rpm -q --provides $(/bin/rpm -q --whatprovides kernel-devel-uname-r) | sed -ne 's,kernel-devel-uname-r = ,, p') %kernel_release %(/bin/rpm -q --queryformat '%{RPMTAG_VERSION}-%{RPMTAG_RELEASE}' $(/bin/rpm -q --whatprovides kernel)) @@ -89,6 +96,7 @@ # Tizen # %configure \ + %maybe_update_configsub ; \ AR="%__ar"; export AR ; \ NM="%__nm"; export NM ; \ LIBRARY_PATH="%{_libdir}" \ |