summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-11 14:43:08 -0700
committerAnas Nashif <anas.nashif@intel.com>2013-02-02 16:44:15 -0800
commite84db2e0548ad843a7645d436694c49b4bf6c6f9 (patch)
treeaa2ff93340dea37da9ce6ffc0a2f5d305caaa10f /scripts
parent3e50764d5c6d0e05c89857f71d4016f835a93217 (diff)
downloadlibrpm-tizen-e84db2e0548ad843a7645d436694c49b4bf6c6f9.tar.gz
librpm-tizen-e84db2e0548ad843a7645d436694c49b4bf6c6f9.tar.bz2
librpm-tizen-e84db2e0548ad843a7645d436694c49b4bf6c6f9.zip
brp for tizen
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.am1
-rwxr-xr-xscripts/brp-strip1
-rwxr-xr-xscripts/brp-strip-comment-note2
-rw-r--r--scripts/brp-tizen13
4 files changed, 17 insertions, 0 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 10b1de748..39bdb37a6 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -25,6 +25,7 @@ EXTRA_DIST = \
rpmconfig_SCRIPTS = \
brp-compress brp-python-bytecompile brp-java-gcjcompile \
brp-strip brp-strip-comment-note brp-python-hardlink \
+ brp-tizen \
brp-strip-shared brp-strip-static-archive \
check-files check-prereqs \
check-buildroot check-rpaths check-rpaths-worker \
diff --git a/scripts/brp-strip b/scripts/brp-strip
index 2e99d1e6d..20e7c508f 100755
--- a/scripts/brp-strip
+++ b/scripts/brp-strip
@@ -15,6 +15,7 @@ esac
for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
grep -v ' shared object,' | \
+ grep -v '/lib/modules/' | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do
$STRIP -g "$f" || :
done
diff --git a/scripts/brp-strip-comment-note b/scripts/brp-strip-comment-note
index 323c0410a..71164252e 100755
--- a/scripts/brp-strip-comment-note
+++ b/scripts/brp-strip-comment-note
@@ -16,6 +16,8 @@ esac
# for already stripped elf files in the build root
for f in `find "$RPM_BUILD_ROOT" -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug" | \
+ grep -v ' shared object,' | \
+ grep -v '/lib/modules/' | \
sed -n -e 's/^\(.*\):[ ]*ELF.*, stripped/\1/p'`; do
note="-R .note"
if $OBJDUMP -h $f | grep '^[ ]*[0-9]*[ ]*.note[ ]' -A 1 | \
diff --git a/scripts/brp-tizen b/scripts/brp-tizen
new file mode 100644
index 000000000..bf298d449
--- /dev/null
+++ b/scripts/brp-tizen
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+# If using normal root, avoid changing anything:
+if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
+ exit 0
+fi
+
+for script in /usr/lib/rpm/brp-tizen.d/brp*; do
+ if test -x "$script"; then
+ echo "calling $script"
+ $script || exit 1
+ fi
+done