Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | SUMMARY = "UBI utils statically compiled against klibc" |
| 2 | DESCRIPTION = "Small sized tools from mtd-utils for use with initramfs." |
| 3 | SECTION = "base" |
| 4 | DEPENDS = "zlib lzo e2fsprogs util-linux" |
| 5 | HOMEPAGE = "http://www.linux-mtd.infradead.org/" |
| 6 | LICENSE = "GPLv2+" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ |
| 8 | file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c" |
| 9 | |
| 10 | inherit autotools pkgconfig klibc |
| 11 | |
| 12 | SRCREV = "64f61a9dc71b158c7084006cbce4ea23886f0b47" |
| 13 | SRC_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 Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 19 | file://0001-make-Add-compiler-includes-in-cflags.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 20 | " |
| 21 | |
Andrew Geissler | a2681d9 | 2020-10-16 10:17:07 -0500 | [diff] [blame] | 22 | S = "${WORKDIR}/git" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 23 | |
| 24 | EXTRA_OECONF += "--disable-tests --without-jffs --without-ubifs" |
| 25 | |
| 26 | PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'xattr', d)}" |
| 27 | PACKAGECONFIG[xattr] = ",,acl," |
| 28 | |
| 29 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} ${@bb.utils.contains('PACKAGECONFIG', 'xattr', '', '-DWITHOUT_XATTR', d)} -I${S}/include' 'BUILDDIR=${S}'" |
| 30 | |
| 31 | do_install () { |
| 32 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} |
| 33 | } |
| 34 | |
| 35 | PACKAGES = "ubi-utils-klibc-dbg ubi-utils-klibc-doc" |
| 36 | |
| 37 | PACKAGES =+ "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 | |
| 41 | FILES_mtdinfo-klibc = "${sbindir}/mtdinfo" |
| 42 | FILES_ubiattach-klibc = "${sbindir}/ubiattach" |
| 43 | FILES_ubiblock-klibc = "${sbindir}/ubiblock" |
| 44 | FILES_ubicrc32-klibc = "${sbindir}/ubicrc32" |
| 45 | FILES_ubidetach-klibc = "${sbindir}/ubidetach" |
| 46 | FILES_ubiformat-klibc = "${sbindir}/ubiformat" |
| 47 | FILES_ubimkvol-klibc = "${sbindir}/ubimkvol" |
| 48 | FILES_ubinfo-klibc = "${sbindir}/ubinfo" |
| 49 | FILES_ubinize-klibc = "${sbindir}/ubinize" |
| 50 | FILES_ubirename-klibc = "${sbindir}/ubirename" |
| 51 | FILES_ubirmvol-klibc = "${sbindir}/ubirmvol" |
| 52 | FILES_ubirsvol-klibc = "${sbindir}/ubirsvol" |
| 53 | FILES_ubiupdatevol-klibc = "${sbindir}/ubiupdatevol" |