mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
Merge branch 'next'
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -8,3 +8,13 @@ config BR2_PACKAGE_GLIBC
|
||||
help
|
||||
https://www.gnu.org/software/libc/
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_GLIBC_UTILS
|
||||
bool "Install glibc utilities"
|
||||
depends on BR2_PACKAGE_BASH
|
||||
help
|
||||
Enabling this option will compile and install the getconf,
|
||||
ldconfig, ldd and locale glibc utilities for the target.
|
||||
|
||||
comment "glibc utilities need bash"
|
||||
depends on !BR2_PACKAGE_BASH
|
||||
|
||||
@@ -143,10 +143,24 @@ ifeq ($(BR2_PACKAGE_GDB),y)
|
||||
GLIBC_LIBS_LIB += libthread_db.so.*
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GLIBC_UTILS),y)
|
||||
GLIBC_TARGET_UTILS_USR_BIN = posix/getconf elf/ldd
|
||||
GLIBC_TARGET_UTILS_SBIN = elf/ldconfig
|
||||
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
||||
GLIBC_TARGET_UTILS_USR_BIN += locale/locale
|
||||
endif
|
||||
endif
|
||||
|
||||
define GLIBC_INSTALL_TARGET_CMDS
|
||||
for libpattern in $(GLIBC_LIBS_LIB); do \
|
||||
$(call copy_toolchain_lib_root,$$libpattern) ; \
|
||||
done
|
||||
$(foreach util,$(GLIBC_TARGET_UTILS_USR_BIN), \
|
||||
$(INSTALL) -D -m 0755 $(@D)/build/$(util) $(TARGET_DIR)/usr/bin/$(notdir $(util))
|
||||
)
|
||||
$(foreach util,$(GLIBC_TARGET_UTILS_SBIN), \
|
||||
$(INSTALL) -D -m 0755 $(@D)/build/$(util) $(TARGET_DIR)/sbin/$(notdir $(util))
|
||||
)
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user