toolchain-external: fix getent installation with Codescape MIPS toolchains
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 28 Mar 2016 13:37:35 +0000 (15:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 30 Mar 2016 16:10:16 +0000 (18:10 +0200)
commit4f90f55dc4eef8c5c9f91bc30fbdfb5f7d7fb49f
tree87e37ee1872589501e7e0c67f2edd6ad0fccac10
parente95d333fc69f5045b50f41f16683d9f571a83f87
toolchain-external: fix getent installation with Codescape MIPS toolchains

When a toolchain is glibc based, the getent package assumes that
$(STAGING_DIR)/usr/bin contains the getent program. Unfortunately, the
Codescape MIPS toolchains do not conform with this:
$(STAGING_DIR)/usr/{bin,sbin} are empty, and instead three directories
are provided: bin-o32, bin-n32 and bin-n64 (ditto for sbin), one for
each supported MIPS ABI.

Since this is a toolchain-specific oddity, we handle it by adding a
post-install fixup hook that creates $(STAGING_DIR)/usr/{bin,sbin} as
symbolic link to the appropriate directory.

Fixes:

   http://autobuild.buildroot.org/results/9c0ee836021553319f166f9de88750535aee0a58/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
toolchain/toolchain-external/toolchain-external.mk