PATCH_LIST="silent-gc-sections-warning.diff add-mark-ecc-bad.diff add-badblock-argument.diff" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://git.infradead.org/mtd-utils.git/snapshot/v1.4.6.tar.gz # Use FLXHOSTOS, FLXHOSTARCH, HOSTCC, HOSTCXX for the machine used to build. # Use FLXTARGOS, FLXTARGARCH, CC, CXX, LD, for the target machine. # FLXMAKE usually is 'make', FLXPMAKE usually is 'make -j 2' # Build tools are in /$FLXTOOLDIR, toolchain root dir is /$FLXROOTDIR. # Current dir is /$CURDIR, package dir is /$PKGDIR, dest root dir is /$ROOTDIR. # Package name is $PKGRADIX-$PKGVER-$DISTVER # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' # exemple : # MAKEDEPENDS='tplparser-0local-flx0.0:albdev:i586:*.a *.h' MAKEDEPENDS=( 'zlib-*:::*.a *.h' 'lzo-*:::*.a *.h' 'e2fsprogs-*:::*.a *.h' ) function do_config { [ -d $FLXROOTDIR/usr/include/lzo/. -o -d include/lzo/. ] || ln -s $FLXROOTDIR/usr/include include/lzo [ -s $FLXROOTDIR/usr/lib/liblzo2.a -o -s lib/liblzo2.a ] || ln -s $FLXROOTDIR/usr/lib/liblzo.a lib/liblzo2.a } function do_compile_only { # parallel make $FLXPMAKE CC="$CC" AR="$AR" RANLIB="$RANLIB" WITHOUT_XATTR=1 } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR }