1SUMMARY = "UBI utils statically compiled against klibc" 2DESCRIPTION = "Small sized tools from mtd-utils for use with initramfs." 3SECTION = "base" 4DEPENDS = "zlib e2fsprogs util-linux" 5HOMEPAGE = "http://www.linux-mtd.infradead.org/" 6LICENSE = "GPL-2.0-or-later" 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;branch=master \ 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 file://0001-make-Add-compiler-includes-in-cflags.patch \ 20 " 21 22S = "${WORKDIR}/git" 23 24EXTRA_OECONF += "--disable-tests --without-jffs --without-ubifs" 25 26PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}" 27PACKAGECONFIG[xattr] = ",,acl," 28PACKAGECONFIG[lzo] = "--with-lzo,--without-lzo,lzo" 29 30EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'" 31 32do_install () { 33 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} 34} 35 36PACKAGES = "ubi-utils-klibc-dbg ubi-utils-klibc-doc" 37 38PACKAGES =+ "mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \ 39 ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \ 40 ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc" 41 42FILES:mtdinfo-klibc = "${sbindir}/mtdinfo" 43FILES:ubiattach-klibc = "${sbindir}/ubiattach" 44FILES:ubiblock-klibc = "${sbindir}/ubiblock" 45FILES:ubicrc32-klibc = "${sbindir}/ubicrc32" 46FILES:ubidetach-klibc = "${sbindir}/ubidetach" 47FILES:ubiformat-klibc = "${sbindir}/ubiformat" 48FILES:ubimkvol-klibc = "${sbindir}/ubimkvol" 49FILES:ubinfo-klibc = "${sbindir}/ubinfo" 50FILES:ubinize-klibc = "${sbindir}/ubinize" 51FILES:ubirename-klibc = "${sbindir}/ubirename" 52FILES:ubirmvol-klibc = "${sbindir}/ubirmvol" 53FILES:ubirsvol-klibc = "${sbindir}/ubirsvol" 54FILES:ubiupdatevol-klibc = "${sbindir}/ubiupdatevol" 55