summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAmarnath Valluri <amarnath.valluri@intel.com>2017-02-08 11:21:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:20 +0000
commit89c41301f089650aab8a5f9c6a13e55fb0e5f48e (patch)
tree74dd104fe932eab7607bda861b0586faa78bbf0d /meta
parentd582e406ba1b41e7cee69b1bc4af4b389a14ed80 (diff)
downloadpoky-89c41301f089650aab8a5f9c6a13e55fb0e5f48e.tar.gz
net-tools: Place package content as per bitbake environment.
net-tools Makefile was hardcoded sbin, bin installation paths to /bin and /sbin respectively. This change moves the installed files to appropriate location as per configured bitbake environment. This might be solved much better way by patching Makefile, but that causing build issues, as net-tools recipe is using pre-generated config.{h/status}. (From OE-Core rev: 8be0740f8cc8d909a8983b499f200b99261124c4) Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/net-tools/net-tools_1.60-26.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
index 99a42359b8..be267351e3 100644
--- a/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
+++ b/meta/recipes-extended/net-tools/net-tools_1.60-26.bb
@@ -93,6 +93,17 @@ do_install() {
93 unset CFLAGS 93 unset CFLAGS
94 unset LDFLAGS 94 unset LDFLAGS
95 oe_runmake 'BASEDIR=${D}' install 95 oe_runmake 'BASEDIR=${D}' install
96
97 if [ "${base_bindir}" != "/bin" ]; then
98 mkdir -p ${D}/${base_bindir}
99 mv ${D}/bin/* ${D}/${base_bindir}/
100 rmdir ${D}/bin
101 fi
102 if [ "${base_sbindir}" != "/sbin" ]; then
103 mkdir ${D}/${base_sbindir}
104 mv ${D}/sbin/* ${D}/${base_sbindir}/
105 rmdir ${D}/sbin
106 fi
96} 107}
97 108
98inherit update-alternatives 109inherit update-alternatives