Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [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 klibc |
| 11 | |
| 12 | SRCREV = "aea36417067dade75192bafa03af70b6eb2677b1" |
| 13 | SRC_URI = "git://git.infradead.org/mtd-utils.git \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 14 | file://0001-Makefile-build-ubi-utils-only.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | file://0002-common.mk-for-klibc-CC-is-klcc.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | file://0006-libiniparser-remove-unused-function-needing-float.patch \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | " |
| 24 | |
| 25 | S = "${WORKDIR}/git/" |
| 26 | |
| 27 | EXTRA_OEMAKE = "'CC=${CC}' 'RANLIB=${RANLIB}' 'AR=${AR}' 'CFLAGS=${CFLAGS} -I${S}include -DWITHOUT_XATTR' 'BUILDDIR=${S}'" |
| 28 | |
| 29 | do_install () { |
| 30 | oe_runmake install DESTDIR=${D} SBINDIR=${sbindir} MANDIR=${mandir} INCLUDEDIR=${includedir} |
| 31 | } |
| 32 | |
| 33 | PACKAGES = "ubi-utils-klibc-dbg" |
| 34 | |
| 35 | PACKAGES =+ "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 | |
| 39 | FILES_mtdinfo-klibc = "${sbindir}/mtdinfo" |
| 40 | FILES_ubiattach-klibc = "${sbindir}/ubiattach" |
| 41 | FILES_ubiblock-klibc = "${sbindir}/ubiblock" |
| 42 | FILES_ubicrc32-klibc = "${sbindir}/ubicrc32" |
| 43 | FILES_ubidetach-klibc = "${sbindir}/ubidetach" |
| 44 | FILES_ubiformat-klibc = "${sbindir}/ubiformat" |
| 45 | FILES_ubimkvol-klibc = "${sbindir}/ubimkvol" |
| 46 | FILES_ubinfo-klibc = "${sbindir}/ubinfo" |
| 47 | FILES_ubinize-klibc = "${sbindir}/ubinize" |
| 48 | FILES_ubirename-klibc = "${sbindir}/ubirename" |
| 49 | FILES_ubirmvol-klibc = "${sbindir}/ubirmvol" |
| 50 | FILES_ubirsvol-klibc = "${sbindir}/ubirsvol" |
| 51 | FILES_ubiupdatevol-klibc = "${sbindir}/ubiupdatevol" |