blob: 4d944a1528dbf79d5c5a5f574030e6c58d338a0d [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 \
Andrew Geisslerac970dd2021-02-12 15:32:45 -060019 file://0001-make-Add-compiler-includes-in-cflags.patch \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080020 "
21
Andrew Geisslera2681d92020-10-16 10:17:07 -050022S = "${WORKDIR}/git"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080023
24EXTRA_OECONF += "--disable-tests --without-jffs --without-ubifs"
25
26PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}"
27PACKAGECONFIG[xattr] = ",,acl,"
28
29EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'"
30
31do_install () {
32 oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir}
33}
34
35PACKAGES = "ubi-utils-klibc-dbg ubi-utils-klibc-doc"
36
37PACKAGES =+ "mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc ubidetach-klibc \
38 ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
39 ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc"
40
Patrick Williams213cb262021-08-07 19:21:33 -050041FILES:mtdinfo-klibc = "${sbindir}/mtdinfo"
42FILES:ubiattach-klibc = "${sbindir}/ubiattach"
43FILES:ubiblock-klibc = "${sbindir}/ubiblock"
44FILES:ubicrc32-klibc = "${sbindir}/ubicrc32"
45FILES:ubidetach-klibc = "${sbindir}/ubidetach"
46FILES:ubiformat-klibc = "${sbindir}/ubiformat"
47FILES:ubimkvol-klibc = "${sbindir}/ubimkvol"
48FILES:ubinfo-klibc = "${sbindir}/ubinfo"
49FILES:ubinize-klibc = "${sbindir}/ubinize"
50FILES:ubirename-klibc = "${sbindir}/ubirename"
51FILES:ubirmvol-klibc = "${sbindir}/ubirmvol"
52FILES:ubirsvol-klibc = "${sbindir}/ubirsvol"
53FILES:ubiupdatevol-klibc = "${sbindir}/ubiupdatevol"