aboutsummaryrefslogtreecommitdiffstats
path: root/meta-filesystems
diff options
context:
space:
mode:
authorAmarnath Valluri <amarnath.valluri@intel.com>2017-02-23 11:05:35 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-02-23 23:22:31 +0100
commitff454ba1e399e0a172cd0ffe81bea7adc8c48f48 (patch)
treea523618cc912a59758385c781b8f40668c1d43c8 /meta-filesystems
parent594e949b8d61a70555fa4a902c57713b42134459 (diff)
downloadmeta-openembedded-contrib-ff454ba1e399e0a172cd0ffe81bea7adc8c48f48.tar.gz
meta-openembedded-contrib-ff454ba1e399e0a172cd0ffe81bea7adc8c48f48.tar.bz2
meta-openembedded-contrib-ff454ba1e399e0a172cd0ffe81bea7adc8c48f48.zip
aufs-utils: Replace install paths with appropriate bitbake environment
autf-utils Makefile is using hardcoded /bin, /sbin paths, instead we should respect the bitbake environment. This change makes the recipe portable to environments where ${base_bindir} != /bin or ${base_sbindir} != /sbin. Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-filesystems')
-rw-r--r--meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb7
1 files changed, 7 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
index 8980980eef..3d59e50f4a 100644
--- a/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
+++ b/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb
@@ -18,6 +18,13 @@ PV = "3.14+git${SRCPV}"
S = "${WORKDIR}/git"
+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/