mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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>
This commit is contained in:
parent
d582e406ba
commit
89c41301f0
|
@ -93,6 +93,17 @@ do_install() {
|
|||
unset CFLAGS
|
||||
unset LDFLAGS
|
||||
oe_runmake 'BASEDIR=${D}' install
|
||||
|
||||
if [ "${base_bindir}" != "/bin" ]; then
|
||||
mkdir -p ${D}/${base_bindir}
|
||||
mv ${D}/bin/* ${D}/${base_bindir}/
|
||||
rmdir ${D}/bin
|
||||
fi
|
||||
if [ "${base_sbindir}" != "/sbin" ]; then
|
||||
mkdir ${D}/${base_sbindir}
|
||||
mv ${D}/sbin/* ${D}/${base_sbindir}/
|
||||
rmdir ${D}/sbin
|
||||
fi
|
||||
}
|
||||
|
||||
inherit update-alternatives
|
||||
|
|
Loading…
Reference in New Issue
Block a user