summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoonKyu Park <sk7.park@samsung.com>2016-05-01 17:18:29 +0900
committerSoonKyu Park <sk7.park@samsung.com>2016-05-01 18:04:40 +0900
commit763ef3871038772e57a8878893bddfd6a41268a2 (patch)
tree333f83c6feeeb26e791ea4d8147a9925a1c6eb74
parentd8e90b0d6637858ff28642025dc4fac4cd5cc444 (diff)
downloadrpm-763ef3871038772e57a8878893bddfd6a41268a2.tar.gz
rpm-763ef3871038772e57a8878893bddfd6a41268a2.tar.bz2
rpm-763ef3871038772e57a8878893bddfd6a41268a2.zip
Add '_rpm_ko_strip_option' which is used in strip of ko filessubmit/tizen_base/20160502.042457accepted/tizen/base/20160504.195829
Change-Id: I24e489e0a965a85310d045435100f5ad2e95a592
-rw-r--r--macros.in3
-rw-r--r--scripts/find-debuginfo.sh8
2 files changed, 9 insertions, 2 deletions
diff --git a/macros.in b/macros.in
index a7cab871d..c52ca2ae7 100644
--- a/macros.in
+++ b/macros.in
@@ -182,9 +182,10 @@
%_find_debuginfo_opts %{?_rpm_strip_disable:--strip-disable}
%_find_debuginfo_strip_opts %{?_rpm_strip_option:\'--strip-option=%{_rpm_strip_option}\'}
+%_find_debuginfo_ko_strip_opts %{?_rpm_ko_strip_option:\'--strip-ko-option=%{_rpm_ko_strip_option}\'}
%__debug_install_post \
- %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_find_debuginfo_opts} %{?_find_debuginfo_strip_opts} "%{_builddir}/%{?buildsubdir}"\
+ %{_rpmconfigdir}/find-debuginfo.sh %{?_missing_build_ids_terminate_build:--strict-build-id} %{?_find_debuginfo_opts} %{?_find_debuginfo_strip_opts} %{?_find_debuginfo_ko_strip_opts} "%{_builddir}/%{?buildsubdir}"\
%{nil}
# Template for debug information sub-package.
diff --git a/scripts/find-debuginfo.sh b/scripts/find-debuginfo.sh
index 885b9b18a..b595c906e 100644
--- a/scripts/find-debuginfo.sh
+++ b/scripts/find-debuginfo.sh
@@ -38,6 +38,9 @@ strip_disable=false
# With --strip-option arg, this will be used as arg. of eu-strip
strip_option=
+# With --strip-option arg for ko file, this will be used as arg. of eu-strip
+strip_ko_option=
+
BUILDDIR=.
out=debugfiles.list
nout=0
@@ -52,6 +55,9 @@ while [ $# -gt 0 ]; do
*--strip-option*)
strip_option=$(echo $1 | sed 's/--strip-option=//')
;;
+ *--strip-ko-option*)
+ strip_ko_option=$(echo $1 | sed 's/--strip-ko-option=//')
+ ;;
-g)
strip_g=true
;;
@@ -124,7 +130,7 @@ strip_to_debug()
# don't attempt to create a minimal backtrace binary for
# kernel modules as this just causes the stripping process
# to be skipped entirely
- eu-strip --remove-comment $r $strip_option -f "$1" "$2" || exit
+ eu-strip --remove-comment $r $strip_ko_option -f "$1" "$2" || exit
;;
*)
eu-strip --remove-comment $g $strip_option -f "$1" "$2" || exit