diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-02-23 11:05:35 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-02-23 23:22:31 +0100 |
commit | ff454ba1e399e0a172cd0ffe81bea7adc8c48f48 (patch) | |
tree | a523618cc912a59758385c781b8f40668c1d43c8 /meta-filesystems/recipes-utils | |
parent | 594e949b8d61a70555fa4a902c57713b42134459 (diff) | |
download | meta-openembedded-ff454ba1e399e0a172cd0ffe81bea7adc8c48f48.tar.gz |
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/recipes-utils')
-rw-r--r-- | meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb | 7 |
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}" | |||
18 | 18 | ||
19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
20 | 20 | ||
21 | do_configure_prepend() { | ||
22 | # Replace sbin,bin paths with bitbake environment | ||
23 | sed -i -e 's;install_sbin: Tgt = ${DESTDIR}/sbin;install_sbin: Tgt = ${DESTDIR}/${base_sbindir};' \ | ||
24 | -e 's;install_ubin: Tgt = ${DESTDIR}/usr/sbin;install_sbin: Tgt = ${DESTDIR}/${bindir};' \ | ||
25 | ${S}/Makefile | ||
26 | } | ||
27 | |||
21 | do_configure_append () { | 28 | do_configure_append () { |
22 | install -d ${S}/include/linux/ | 29 | install -d ${S}/include/linux/ |
23 | cp ${WORKDIR}/aufs_type.h ${S}/include/linux/ | 30 | cp ${WORKDIR}/aufs_type.h ${S}/include/linux/ |