mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
d021ff09b4
Fixes errors like below | make: cc: Command not found | make: *** [<builtin>: c2sh] Error 127 Signed-off-by: Khem Raj <raj.khem@gmail.com>
63 lines
1.7 KiB
BlitzBasic
63 lines
1.7 KiB
BlitzBasic
SUMMARY = "Tools for managing AUFS mounts"
|
|
SECTION = "base"
|
|
HOMEPAGE = "http://aufs.sourceforge.net/"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=892f569a555ba9c07a568a7c0c4fa63a"
|
|
|
|
DEPENDS = "aufs-util-native"
|
|
DEPENDS_class-native = ""
|
|
|
|
SRCREV = "b59a2167a135ceea37581ee33997de278cf8a30a"
|
|
SRC_URI = "git://git.code.sf.net/p/aufs/aufs-util;protocol=git;branch=aufs3.14 \
|
|
file://aufs-util-don-t-strip-executables.patch \
|
|
file://aufs-util-add-tool-concept-to-Makefile-for-cross-com.patch \
|
|
file://aufs_type.h \
|
|
"
|
|
|
|
PV = "3.14+git${SRCPV}"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
export HOSTCC = "${BUILD_CC}"
|
|
|
|
do_configure_prepend() {
|
|
# Replace sbin,bin paths with bitbake environment
|
|
sed -i -e 's;install_sbin: Tgt = ${DESTDIR}/sbin;install_sbin: Tgt = ${DESTDIR}/${base_sbindir};' \
|
|
-e 's;install_ubin: Tgt = ${DESTDIR}/usr/sbin;install_sbin: Tgt = ${DESTDIR}/${bindir};' \
|
|
${S}/Makefile
|
|
}
|
|
|
|
do_configure_append () {
|
|
install -d ${S}/include/linux/
|
|
cp ${WORKDIR}/aufs_type.h ${S}/include/linux/
|
|
}
|
|
|
|
do_configure_append_class-target () {
|
|
for i in ver c2sh c2tmac; do
|
|
cp ${STAGING_BINDIR_NATIVE}/aufs-util-${PV}/$i ./
|
|
done
|
|
}
|
|
|
|
do_compile () {
|
|
oe_runmake CPPFLAGS="-I${S}/include -I${S}/libau"
|
|
}
|
|
|
|
do_compile_class-native () {
|
|
oe_runmake tools CPPFLAGS="-I${S}/include -I${S}/libau" CC="${BUILD_CC}"
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
RRECOMMENDS_${PN} += "kernel-module-aufs"
|
|
|
|
BBCLASSEXTEND = "native"
|