mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
30a3e8d108
We want to use SPDX identifier for license string as much as possible. SPDX short identifier for LGPLv2.1/LGPLv2.1+ is LGPL-2.1/LGPL-2.1+. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/LGPLv2.1(\+)?/LGPL-2.1\1/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
27 lines
816 B
Makefile
27 lines
816 B
Makefile
################################################################################
|
|
#
|
|
# getent
|
|
#
|
|
################################################################################
|
|
|
|
GETENT_LICENSE = LGPL-2.1+
|
|
|
|
# For glibc toolchains, we use the getent program built/installed by
|
|
# the C library. For other toolchains, we use the wrapper script
|
|
# included in this package.
|
|
ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),y)
|
|
# Sourcery toolchains install it in sysroot/usr/lib/bin
|
|
# Buildroot toolchains install it in sysroot/usr/bin
|
|
GETENT_LOCATION = $(firstword $(wildcard \
|
|
$(STAGING_DIR)/usr/bin/getent \
|
|
$(STAGING_DIR)/usr/lib/bin/getent))
|
|
else
|
|
GETENT_LOCATION = package/getent/getent
|
|
endif
|
|
|
|
define GETENT_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(GETENT_LOCATION) $(TARGET_DIR)/usr/bin/getent
|
|
endef
|
|
|
|
$(eval $(generic-package))
|