Merge "Avoid running strip on modules if there is no modules directory." into gingerbread

This commit is contained in:
Steve Kondik 2011-08-04 01:04:53 +04:00 committed by Gerrit Code Review
commit ff800827fe

View File

@ -134,7 +134,8 @@ $SED -i \
rm -rf $REPACK/ota/recovery
# Strip modules
find $REPACK/ota/system/lib/modules -name "*.ko" -print0 | xargs -0 arm-eabi-strip --strip-unneeded
[ -d $REPACK/ota/system/lib/modules ] && \
find $REPACK/ota/system/lib/modules -name "*.ko" -print0 | xargs -0 arm-eabi-strip --strip-unneeded
# Determine what to name the new signed package
if [ -z "$CYANOGEN_NIGHTLY" ]; then