diff options
Diffstat (limited to 'meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb')
-rw-r--r-- | meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb new file mode 100644 index 000000000..48c545660 --- /dev/null +++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | |||
@@ -0,0 +1,53 @@ | |||
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 | |||
7 | DEPENDS = "aufs-util-native" | ||
8 | DEPENDS_class-native = "" | ||
9 | |||
10 | SRCREV = "f29056fe396d56fc2a06a96312feabaebbe14c59" | ||
11 | SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs3.9 \ | ||
12 | file://aufs-util-don-t-strip-executables.patch \ | ||
13 | file://aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch \ | ||
14 | file://aufs_type.h \ | ||
15 | " | ||
16 | |||
17 | PV = "3.9+git${SRCPV}" | ||
18 | |||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | do_configure_append () { | ||
22 | install -d ${S}/include/linux/ | ||
23 | cp ${WORKDIR}/aufs_type.h ${S}/include/linux/ | ||
24 | } | ||
25 | |||
26 | do_configure_append_class-target () { | ||
27 | for i in ver c2sh c2tmac; do | ||
28 | cp ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ./ | ||
29 | done | ||
30 | } | ||
31 | |||
32 | do_compile () { | ||
33 | oe_runmake CPPFLAGS="-I${S}/include -I${S}/libau" | ||
34 | } | ||
35 | |||
36 | do_compile_class-native () { | ||
37 | oe_runmake tools CPPFLAGS="-I${S}/include -I${S}/libau" | ||
38 | } | ||
39 | |||
40 | do_install () { | ||
41 | oe_runmake 'DESTDIR=${D}' install_sbin install_ubin install_etc | ||
42 | } | ||
43 | |||
44 | do_install_class-native () { | ||
45 | install -d ${D}${bindir}/aufs-util-${PV} | ||
46 | for i in ver c2sh c2tmac; do | ||
47 | install -m 755 $i ${D}${bindir}/aufs-util-${PV}/$i | ||
48 | done | ||
49 | } | ||
50 | |||
51 | RRECOMMENDS_${PN} += "kernel-module-aufs" | ||
52 | |||
53 | BBCLASSEXTEND = "native" | ||