aboutsummaryrefslogtreecommitdiff
path: root/recipes/aufs/aufs2-util_git.bb
blob: 276953571c543308447a37504d659d81986b986b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DESCRIPTION = "userspace utils for aufs2"
LICENSE = "GPL"
DEPENDS = "virtual/kernel"
PR = "r1"

PACKAGE_ARCH = "${MACHINE_ARCH}"

SRCREV = "f35ba2292fe40aa94aa83713e0b2719f35a25768"
SRC_URI = "git://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git;protocol=http"

S = "${WORKDIR}/git"

EXTRA_OEMAKE = "KDIR=${STAGING_KERNEL_DIR} DESTDIR=${D}"

do_compile () {
	# c2tmac and c2sh need to be BUILD-arch
	${BUILD_CC} -I${STAGING_KERNEL_DIR}/include c2tmac.c -o c2tmac
	${BUILD_CC} -I${STAGING_KERNEL_DIR}/include c2sh.c -o c2sh
        oe_runmake
}

do_install () {
	install -d ${D}/${base_sbindir}
	install -m 0755 mount.aufs umount.aufs auplink ${D}/${base_sbindir}
	install -d ${D}/${base_bindir}
	install -m 0755 auchk aubrsync ${D}/${base_bindir}
	install -d ${D}/${sysconfdir}/default
	install -m 0644 -T etc_default_aufs ${D}/${sysconfdir}/default/aufs
}