[oe] [meta-filesystems][PATCH 1/1] aufs-util: add new recipe
Koen Kooi
koen at dominion.thruhere.net
Sat Jan 18 11:29:40 UTC 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Paul Eggleton schreef op 17-01-14 18:36:
/recipes-utils/aufs-util/aufs-util_git.bb
b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
> new file mode 100644 index 0000000..cea3636 --- /dev/null +++
> b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb @@ -0,0 +1,48
> @@ +SUMMARY = "Tools for managing AUFS mounts" +SECTION = "base"
> +HOMEPAGE = "http://http://aufs.sourceforge.net/" +LICENSE = "GPLv2"
> +LIC_FILES_CHKSUM =
> "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a" + +DEPENDS =
> "aufs-util-native" +DEPENDS_class-native = "" + +SRCREV =
> "f29056fe396d56fc2a06a96312feabaebbe14c59" +SRC_URI =
> "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs3.x-rcN
> \ + file://aufs-util-don-t-strip-executables.patch \ +
> file://include/linux/aufs_type.h \ +
> file://aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch \ +" +
> +PV = "3.x-rcN+git${SRCPV}"
This is a new low for upstream versioning :/ I've looked at the git repo for
aufs-util and it seems 3.x-rcN is identical to 3.9, could we use that for
the aufs-utils recipe to avoid using that horrid, horrid PV above?
> + +S = "${WORKDIR}/git/" + +do_configure_append () { + if [ "${PN}" !=
> "aufs-util-native" ]; then + for i in ver c2sh c2tmac; do + cp
> ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ./ + done + fi +}
Change to do_configure_append_class-target ?
> + +do_compile () { + oe_runmake CPPFLAGS="-I${WORKDIR}/include
> -I${S}/libau" +} + +do_compile_class-native () { + oe_runmake tools
> CPPFLAGS="-I${WORKDIR}/include -I${S}/libau" +} + +do_install () { +
> oe_runmake 'DESTDIR=${D}' install_sbin install_ubin install_etc +} +
> +do_install_class-native () { + install -d ${D}${bindir}/aufs-util-${PV}
> + for i in ver c2sh c2tmac; do + install -m 755 $i
> ${D}${bindir}/aufs-util-${PV}/$i + done +}
And you'll probably want a
RRECOMMENDS_${PN} = "kernel-module-aufs"
here to drag in the aufs modules.
> +BBCLASSEXTEND = "native"
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFS2mWkMkyGM64RGpERAshzAJ9nGpCEOIKCbecMf8Bv8AMAhjl9+ACfRX9U
ti6UhcFJhgfQuos3XrxSCJQ=
=6cZo
-----END PGP SIGNATURE-----
More information about the Openembedded-devel
mailing list