build-mtd-utils.sh

build-mtd-utils.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
if [ ! -e mtd-utils.tgz ]; then
        git clone git://git.infradead.org/mtd-utils.git
        tar -czf mtd-utils.tgz mtd-utils
fi
 
cd $BUILD
 
rm -rf mtd-utils
tar -xf $SOURCES/mtd-utils.tgz 
cd mtd-utils
 
patch -p1 <  $SOURCES/mtd-utils-minilzo.patch
 
make \
        CC=$CROSS_COMPILE-gcc \
        ZLIBCPPFLAGS="-I$STAGING/usr/include -DWITHOUT_XATTR $CF" \
        ZLIBLDFLAGS="-L$STAGING/usr/lib $LF"
 
make DESTDIR=$STAGING install
ostatnio zmienione: 2011/08/19 13:50