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 | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 10 | SRCREV = "89afb1806c3d2eed8db2666ae254b77518ae3ceb" |
| 11 | SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs4.4 \ |
| 12 | https://raw.githubusercontent.com/sfjro/aufs4-linux/aufs4.4/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 \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | file://0001-libau-Define-STRIP-weakly.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 16 | " |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | SRC_URI[aufs_type.md5sum] = "f7b4a255dcb55fe7b0967f5f59b44f19" |
| 18 | SRC_URI[aufs_type.sha256sum] = "85bc8e4c1a94a7d526c382e4b047b4256cab8c4a65fc0396291707ad9a327a18" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | PV = "4.4+git${SRCPV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git" |
| 23 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | export HOSTCC = "${BUILD_CC}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | do_configure_prepend() { |
| 26 | # Replace sbin,bin paths with bitbake environment |
| 27 | sed -i -e 's;install_sbin: Tgt = ${DESTDIR}/sbin;install_sbin: Tgt = ${DESTDIR}/${base_sbindir};' \ |
| 28 | -e 's;install_ubin: Tgt = ${DESTDIR}/usr/sbin;install_sbin: Tgt = ${DESTDIR}/${bindir};' \ |
| 29 | ${S}/Makefile |
| 30 | } |
| 31 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 32 | do_configure_append () { |
| 33 | install -d ${S}/include/linux/ |
| 34 | cp ${WORKDIR}/aufs_type.h ${S}/include/linux/ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | sed -i -e 's;__user;;' ${S}/include/linux/aufs_type.h |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | do_configure_append_class-target () { |
| 39 | for i in ver c2sh c2tmac; do |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 40 | cp ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ${B} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 41 | done |
| 42 | } |
| 43 | |
| 44 | do_compile () { |
| 45 | oe_runmake CPPFLAGS="-I${S}/include -I${S}/libau" |
| 46 | } |
| 47 | |
| 48 | do_compile_class-native () { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 49 | 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] | 50 | } |
| 51 | |
| 52 | do_install () { |
| 53 | oe_runmake 'DESTDIR=${D}' install_sbin install_ubin install_etc |
| 54 | } |
| 55 | |
| 56 | do_install_class-native () { |
| 57 | install -d ${D}${bindir}/aufs-util-${PV} |
| 58 | for i in ver c2sh c2tmac; do |
| 59 | install -m 755 $i ${D}${bindir}/aufs-util-${PV}/$i |
| 60 | done |
| 61 | } |
| 62 | |
| 63 | RRECOMMENDS_${PN} += "kernel-module-aufs" |
| 64 | |
| 65 | BBCLASSEXTEND = "native" |