1################################################################################ 2# 3# getent 4# 5################################################################################ 6 7GETENT_LICENSE = LGPL-2.1+ 8 9# For glibc toolchains, we use the getent program built/installed by 10# the C library. For other toolchains, we use the wrapper script 11# included in this package. 12ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y) 13# Sourcery toolchains install it in sysroot/usr/lib/bin 14# Buildroot toolchains install it in sysroot/usr/bin 15GETENT_LOCATION = $(firstword $(wildcard \ 16 $(STAGING_DIR)/usr/bin/getent \ 17 $(STAGING_DIR)/usr/lib/bin/getent)) 18else 19GETENT_LOCATION = package/getent/getent 20endif 21 22define GETENT_INSTALL_TARGET_CMDS 23 $(INSTALL) -D -m 0755 $(GETENT_LOCATION) $(TARGET_DIR)/usr/bin/getent 24endef 25 26$(eval $(generic-package)) 27