PATCH_LIST="silent-gc-sections-warning.diff add-mark-ecc-bad.diff add-badblock-argument.diff 137-no_extern_inline.patch 0001-Allow-compilation-with-modern-toolchains.patch" FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=http://repository.timesys.com/buildsources/m/mtd-utils/mtd-utils-${PKGVER}/mtd-utils-${PKGVER}.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-*:::*.so* *.h' 'lzo-*:::*.a *.h' 'util-linux-*:::*.so* *.h' ) function do_config { pwd echo aaa $FLXROOTDIR [ -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 }