mtd-utils: cross build support.
This commit is contained in:
parent
4c4c74c6cf
commit
66975f6b10
|
@ -1,13 +1,32 @@
|
||||||
# Template build file for 'mtd-utils'.
|
# Template build file for 'mtd-utils'.
|
||||||
pkgname=mtd-utils
|
pkgname=mtd-utils
|
||||||
version=1.5.0
|
version=1.5.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
makedepends="zlib-devel lzo-devel acl-devel libuuid-devel"
|
||||||
makedepends="lzo-devel acl-devel libuuid-devel"
|
|
||||||
crossmakedepends="${makedepends}"
|
crossmakedepends="${makedepends}"
|
||||||
short_desc="utilities to handle MTD devices, and for dealing with FTL, NFTL JFFS2 etc."
|
short_desc="Memory Technology Device Utilities"
|
||||||
maintainer="pancake <pancake@nopcode.org>"
|
maintainer="pancake <pancake@nopcode.org>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://www.linux-mtd.infradead.org/"
|
homepage="http://www.linux-mtd.infradead.org/"
|
||||||
distfiles="ftp://ftp.infradead.org/pub/mtd-utils/$pkgname-$version.tar.bz2"
|
distfiles="ftp://ftp.infradead.org/pub/mtd-utils/$pkgname-$version.tar.bz2"
|
||||||
checksum=381be8e4aeccf99f8212a8f19f9fae9e017196ef2d467aa420f2a7815ecec3e6
|
checksum=381be8e4aeccf99f8212a8f19f9fae9e017196ef2d467aa420f2a7815ecec3e6
|
||||||
|
long_desc="
|
||||||
|
Utilities for manipulating memory technology devices, such as flash memory,
|
||||||
|
Disk-On-Chip, or ROM. Includes mkfs.jffs2, a tool to create JFFS2
|
||||||
|
(journaling flash file system) filesystems."
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
|
make CROSS=${XBPS_CROSS_TRIPLET}- ${makejobs}
|
||||||
|
else
|
||||||
|
make ${makejobs}
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
|
make CROSS=${XBPS_CROSS_TRIPLET}- DESTDIR=${DESTDIR} install
|
||||||
|
else
|
||||||
|
make DESTDIR=${DESTDIR} install
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue