blob: abb0d4b8467f0bd301e6ca3c0ce23c984648db02 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "UBI utils statically compiled against klibc"
2DESCRIPTION = "Small sized tools from mtd-utils for use with initramfs."
3SECTION = "base"
4DEPENDS = "zlib lzo e2fsprogs util-linux"
5HOMEPAGE = "http://www.linux-mtd.infradead.org/"
6LICENSE = "GPLv2+"
7LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
8 file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c"
9
10inherit klibc
11
12SRCREV = "aea36417067dade75192bafa03af70b6eb2677b1"
13SRC_URI = "git://git.infradead.org/mtd-utils.git \
Brad Bishop316dfdd2018-06-25 12:45:53 -040014 file://0001-Makefile-build-ubi-utils-only.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015 file://0002-common.mk-for-klibc-CC-is-klcc.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040016 file://0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch \
17 file://0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch \
18 file://0005-common.h-more-workarounds-for-klibc-compatibility.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019 file://0006-libiniparser-remove-unused-function-needing-float.patch \
Brad Bishop316dfdd2018-06-25 12:45:53 -040020 file://0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch \
21 file://0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch \
22 file://0009-Eliminate-warnings-about-implicit-non-const-casting-.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023 "
24
25S = "${WORKDIR}/git/"
26
27EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'"
28
29do_install () {
30 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
31}
32
33PACKAGES = "ubi-utils-klibc-dbg"
34
35PACKAGES =+ "mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
36 ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
37 ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc"
38
39FILES_mtdinfo-klibc = "${sbindir}/mtdinfo"
40FILES_ubiattach-klibc = "${sbindir}/ubiattach"
41FILES_ubiblock-klibc = "${sbindir}/ubiblock"
42FILES_ubicrc32-klibc = "${sbindir}/ubicrc32"
43FILES_ubidetach-klibc = "${sbindir}/ubidetach"
44FILES_ubiformat-klibc = "${sbindir}/ubiformat"
45FILES_ubimkvol-klibc = "${sbindir}/ubimkvol"
46FILES_ubinfo-klibc = "${sbindir}/ubinfo"
47FILES_ubinize-klibc = "${sbindir}/ubinize"
48FILES_ubirename-klibc = "${sbindir}/ubirename"
49FILES_ubirmvol-klibc = "${sbindir}/ubirmvol"
50FILES_ubirsvol-klibc = "${sbindir}/ubirsvol"
51FILES_ubiupdatevol-klibc = "${sbindir}/ubiupdatevol"