brp for tizen
authorAnas Nashif <anas.nashif@intel.com>
Thu, 11 Oct 2012 21:43:08 +0000 (14:43 -0700)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 3 Feb 2013 00:44:15 +0000 (16:44 -0800)
scripts/Makefile.am
scripts/brp-strip
scripts/brp-strip-comment-note
scripts/brp-tizen [new file with mode: 0644]

index 10b1de7..39bdb37 100644 (file)
@@ -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 \
index 2e99d1e..20e7c50 100755 (executable)
@@ -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
index 323c041..7116425 100755 (executable)
@@ -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 (file)
index 0000000..bf298d4
--- /dev/null
@@ -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