mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
# Locally calculated (fetched from Github)
|
||||
sha256 703877c0df77fce00719fe55cc62b07bb8d5f44fdb704bbb1b0bf2cf38afe10a glibc-06983fe52cfe8e4779035c27e8cc5d2caab31531.tar.gz
|
||||
|
||||
# Hashes for license files
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB
|
||||
sha256 61abdd6930c9c599062d89e916b3e7968783879b6be0ee1c6229dd6169def431 LICENSES
|
||||
@@ -1,7 +1,7 @@
|
||||
# Locally calculated (fetched from Github)
|
||||
sha256 bd9fa9932c374b5256a976b543992c20de23338d08879df70a0a2502d17e671d glibc-2.29-30-g2d3fefd7ce64ac1015701c96916fffacc073a877.tar.gz
|
||||
sha256 e1f2c9b424a4e0c00e7ad123a4204f7bc8afd3c504aeb8c79b1086509fd67176 glibc-2.31-54-g6fdf971c9dbf7dac9bea552113fe4694015bbc4d.tar.gz
|
||||
|
||||
# Hashes for license files
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB
|
||||
sha256 35bdb41dc0bcb10702ddacbd51ec4c0fe6fb3129f734e8c85fc02e4d3eb0ce3f LICENSES
|
||||
sha256 b33d0bd9f685b46853548814893a6135e74430d12f6d94ab3eba42fc591f83bc LICENSES
|
||||
@@ -1,7 +1,7 @@
|
||||
# Locally calculated (fetched from Github)
|
||||
sha256 d8fd15462475f7e268147903cd7811705707b9bd9b29cd9dfe9a941ba48c7ea2 glibc-arc-2019.03-release.tar.gz
|
||||
sha256 07f3804abbc6a23315f09568686c0e5bb81d714251cf537d25a36f826cae540b glibc-2.32-2-g386543bc4495f658dcce6cd4d11e4ba6574a46f5.tar.gz
|
||||
|
||||
# Hashes for license files
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB
|
||||
sha256 35bdb41dc0bcb10702ddacbd51ec4c0fe6fb3129f734e8c85fc02e4d3eb0ce3f LICENSES
|
||||
sha256 b33d0bd9f685b46853548814893a6135e74430d12f6d94ab3eba42fc591f83bc LICENSES
|
||||
@@ -0,0 +1,7 @@
|
||||
# Locally calculated (fetched from Github)
|
||||
sha256 c3828224d69a42f5b6982cbec8ae01cf494fe975ce9023e36ff2c10a2fb93e42 glibc-2.32.9000-69-gbd394d131c10c9ec22c6424197b79410042eed99.tar.gz
|
||||
|
||||
# Hashes for license files
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LIB
|
||||
sha256 b33d0bd9f685b46853548814893a6135e74430d12f6d94ab3eba42fc591f83bc LICENSES
|
||||
@@ -1,5 +1,7 @@
|
||||
if BR2_TOOLCHAIN_BUILDROOT_GLIBC
|
||||
|
||||
comment "Glibc Options"
|
||||
|
||||
config BR2_PACKAGE_GLIBC
|
||||
bool
|
||||
default y
|
||||
@@ -7,4 +9,11 @@ config BR2_PACKAGE_GLIBC
|
||||
select BR2_TOOLCHAIN_HAS_SSP if BR2_PACKAGE_HOST_BINUTILS_SUPPORTS_CFI
|
||||
help
|
||||
https://www.gnu.org/software/libc/
|
||||
endif
|
||||
|
||||
config BR2_PACKAGE_GLIBC_UTILS
|
||||
bool "Install glibc utilities"
|
||||
help
|
||||
Enabling this option will compile and install the getconf,
|
||||
ldconfig, ldd and locale glibc utilities for the target.
|
||||
|
||||
endif # BR2_TOOLCHAIN_BUILDROOT_GLIBC
|
||||
|
||||
@@ -4,19 +4,24 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ifeq ($(BR2_arc),y)
|
||||
GLIBC_VERSION = arc-2019.03-release
|
||||
GLIBC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,glibc,$(GLIBC_VERSION))
|
||||
else ifeq ($(BR2_RISCV_32),y)
|
||||
GLIBC_VERSION = 06983fe52cfe8e4779035c27e8cc5d2caab31531
|
||||
GLIBC_SITE = $(call github,riscv,riscv-glibc,$(GLIBC_VERSION))
|
||||
else ifeq ($(BR2_csky),y)
|
||||
ifeq ($(BR2_csky),y)
|
||||
GLIBC_VERSION = 7630ed2fa60caea98f500e4a7a51b88f9bf1e176
|
||||
GLIBC_SITE = $(call github,c-sky,glibc,$(GLIBC_VERSION))
|
||||
else
|
||||
# Generate version string using:
|
||||
# git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2-
|
||||
GLIBC_VERSION = 2.29-30-g2d3fefd7ce64ac1015701c96916fffacc073a877
|
||||
# When updating the version, please also update localedef
|
||||
ifeq ($(BR2_arc),y)
|
||||
# ARC support in upstream was merged in 2.32 release
|
||||
# This can be removed once BR upgrades to 2.32 or later
|
||||
GLIBC_VERSION = 2.32-2-g386543bc4495f658dcce6cd4d11e4ba6574a46f5
|
||||
else ifeq ($(BR2_RISCV_32),y)
|
||||
# RISC-V 32-bit (RV32) requires glibc 2.33 or newer
|
||||
# Until 2.33 is released, just use master
|
||||
GLIBC_VERSION = 2.32.9000-69-gbd394d131c10c9ec22c6424197b79410042eed99
|
||||
else
|
||||
GLIBC_VERSION = 2.31-54-g6fdf971c9dbf7dac9bea552113fe4694015bbc4d
|
||||
endif
|
||||
# Upstream doesn't officially provide an https download link.
|
||||
# There is one (https://sourceware.org/git/glibc.git) but it's not reliable,
|
||||
# sometimes the connection times out. So use an unofficial github mirror.
|
||||
@@ -74,10 +79,19 @@ endef
|
||||
endif
|
||||
|
||||
GLIBC_CONF_ENV = \
|
||||
ac_cv_path_BASH_SHELL=/bin/bash \
|
||||
ac_cv_path_BASH_SHELL=/bin/$(if $(BR2_PACKAGE_BASH),bash,sh) \
|
||||
libc_cv_forced_unwind=yes \
|
||||
libc_cv_ssp=no
|
||||
|
||||
# POSIX shell does not support localization, so remove the corresponding
|
||||
# syntax from ldd if bash is not selected.
|
||||
ifeq ($(BR2_PACKAGE_BASH),)
|
||||
define GLIBC_LDD_NO_BASH
|
||||
$(SED) 's/$$"/"/g' $(@D)/elf/ldd.bash.in
|
||||
endef
|
||||
GLIBC_POST_PATCH_HOOKS += GLIBC_LDD_NO_BASH
|
||||
endif
|
||||
|
||||
# Override the default library locations of /lib64/<abi> and
|
||||
# /usr/lib64/<abi>/ for RISC-V.
|
||||
ifeq ($(BR2_riscv),y)
|
||||
@@ -120,8 +134,8 @@ define GLIBC_CONFIGURE_CMDS
|
||||
--enable-shared \
|
||||
$(if $(BR2_x86_64),--enable-lock-elision) \
|
||||
--with-pkgversion="Buildroot" \
|
||||
--without-cvs \
|
||||
--disable-profile \
|
||||
--disable-werror \
|
||||
--without-gd \
|
||||
--enable-obsolete-rpc \
|
||||
--enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \
|
||||
@@ -143,10 +157,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