Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Tools for managing AUFS mounts" |
| 2 | SECTION = "base" |
| 3 | HOMEPAGE = "http://aufs.sourceforge.net/" |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" |
| 6 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 7 | DEPENDS = "coreutils-native aufs-util-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | DEPENDS_class-native = "" |
| 9 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | SRCREV = "8f35db59ef83078f87879ec2828e0bb45719e0ef" |
| 11 | SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs4.9 \ |
| 12 | https://raw.githubusercontent.com/sfjro/aufs4-linux/aufs4.9/include/uapi/linux/aufs_type.h;name=aufs_type \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | file://aufs-util-don-t-strip-executables.patch \ |
| 14 | file://aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | " |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | SRC_URI[aufs_type.md5sum] = "b37129ef0703de72a852db7e48bdedc6" |
| 17 | SRC_URI[aufs_type.sha256sum] = "7ff6566adb9c7a3b6862cdc85a690ab546f1d0bc81ddd595fd663c0a69031683" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 19 | UPSTREAM_CHECK_COMMITS = "1" |
| 20 | |
| 21 | PV = "4.9+git${SRCPV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | |
| 23 | S = "${WORKDIR}/git" |
| 24 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | export HOSTCC = "${BUILD_CC}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 26 | do_configure_prepend() { |
| 27 | # Replace sbin,bin paths with bitbake environment |
| 28 | sed -i -e 's;install_sbin: Tgt = ${DESTDIR}/sbin;install_sbin: Tgt = ${DESTDIR}/${base_sbindir};' \ |
| 29 | -e 's;install_ubin: Tgt = ${DESTDIR}/usr/sbin;install_sbin: Tgt = ${DESTDIR}/${bindir};' \ |
| 30 | ${S}/Makefile |
| 31 | } |
| 32 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | do_configure_append () { |
| 34 | install -d ${S}/include/linux/ |
| 35 | cp ${WORKDIR}/aufs_type.h ${S}/include/linux/ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 36 | sed -i -e 's;__user;;' ${S}/include/linux/aufs_type.h |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | do_configure_append_class-target () { |
| 40 | for i in ver c2sh c2tmac; do |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 41 | cp ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ${B} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 42 | done |
| 43 | } |
| 44 | |
| 45 | do_compile () { |
| 46 | oe_runmake CPPFLAGS="-I${S}/include -I${S}/libau" |
| 47 | } |
| 48 | |
| 49 | do_compile_class-native () { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 50 | oe_runmake tools CPPFLAGS="-I${S}/include -I${S}/libau" CC="${BUILD_CC}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 51 | } |
| 52 | |
| 53 | do_install () { |
| 54 | oe_runmake 'DESTDIR=${D}' install_sbin install_ubin install_etc |
| 55 | } |
| 56 | |
| 57 | do_install_class-native () { |
| 58 | install -d ${D}${bindir}/aufs-util-${PV} |
| 59 | for i in ver c2sh c2tmac; do |
| 60 | install -m 755 $i ${D}${bindir}/aufs-util-${PV}/$i |
| 61 | done |
| 62 | } |
| 63 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 64 | RRECOMMENDS_${PN}_class-target += "kernel-module-aufs" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 65 | |
| 66 | BBCLASSEXTEND = "native" |