blob: 0475cbeaeefeca6debbadb18174b015352e52cb4 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001SUMMARY = "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 autotools pkgconfig klibc
11
12SRCREV = "64f61a9dc71b158c7084006cbce4ea23886f0b47"
13SRC_URI = "git://git.infradead.org/mtd-utils.git \
14 file://0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch \
15 file://0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch \
16 file://0003-Makefile.am-only-build-ubi-utils.patch \
17 file://0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch \
18 file://0005-common.h-replace-getline-with-fgets.patch \
19 "
20
21S = "${WORKDIR}/git/"
22
23EXTRA_OECONF += "--disable-tests --without-jffs --without-ubifs"
24
25PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}"
26PACKAGECONFIG[xattr] = ",,acl,"
27
28EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'"
29
30do_install () {
31 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
32}
33
34PACKAGES = "ubi-utils-klibc-dbg ubi-utils-klibc-doc"
35
36PACKAGES =+ "mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
37 ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
38 ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc"
39
40FILES_mtdinfo-klibc = "${sbindir}/mtdinfo"
41FILES_ubiattach-klibc = "${sbindir}/ubiattach"
42FILES_ubiblock-klibc = "${sbindir}/ubiblock"
43FILES_ubicrc32-klibc = "${sbindir}/ubicrc32"
44FILES_ubidetach-klibc = "${sbindir}/ubidetach"
45FILES_ubiformat-klibc = "${sbindir}/ubiformat"
46FILES_ubimkvol-klibc = "${sbindir}/ubimkvol"
47FILES_ubinfo-klibc = "${sbindir}/ubinfo"
48FILES_ubinize-klibc = "${sbindir}/ubinize"
49FILES_ubirename-klibc = "${sbindir}/ubirename"
50FILES_ubirmvol-klibc = "${sbindir}/ubirmvol"
51FILES_ubirsvol-klibc = "${sbindir}/ubirsvol"
52FILES_ubiupdatevol-klibc = "${sbindir}/ubiupdatevol"