Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
From a3006d23a58d825dcaa4863ce81a454e151d038d Mon Sep 17 00:00:00 2001
|
||||
From: Michael Olbrich <m.olbrich@pengutronix.de>
|
||||
Date: Mon, 21 May 2018 16:45:02 +0200
|
||||
Subject: [PATCH] HACK: only build and install localedef
|
||||
|
||||
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
||||
|
||||
Upstream: https://git.pengutronix.de/cgit/ptxdist/plain/patches/localedef-glibc-2.27/0001-HACK-only-build-and-install-localedef.patch?id=47116f66f411d4dadfce42c2fdd6d41b351ccfd4
|
||||
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
|
||||
[Romain: rebase on 2.38]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
[yann.morin.1998@free.fr: rebase for 2.39]
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
[Bernd: rebase for 2.44]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
Rules | 14 ++++++++++----
|
||||
locale/Makefile | 3 ---
|
||||
2 files changed, 10 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Rules b/Rules
|
||||
index 71495028fb..5e1243e44d 100644
|
||||
--- a/Rules
|
||||
+++ b/Rules
|
||||
@@ -263,10 +263,16 @@ binaries-shared-notests = $(filter-out $(binaries-pie) $(binaries-static), \
|
||||
$(binaries-all-notests))
|
||||
|
||||
ifneq "$(strip $(binaries-shared-notests))" ""
|
||||
-$(addprefix $(objpfx),$(binaries-shared-notests)): %: %.o \
|
||||
- $(sort $(filter $(common-objpfx)lib%,$(link-libc))) \
|
||||
- $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+postinit)
|
||||
- $(+link)
|
||||
+$(addprefix $(objpfx),$(binaries-shared-notests)): %: %.o
|
||||
+ $(CC) -o $@ \
|
||||
+ $(sysdep-LDFLAGS) $(LDFLAGS) $(LDFLAGS-$(@F)) \
|
||||
+ $(combreloc-LDFLAGS) $(relro-LDFLAGS) $(hashstyle-LDFLAGS) \
|
||||
+ $(filter-out $(addprefix $(csu-objpfx),start.o \
|
||||
+ $(start-installed-name))\
|
||||
+ $(+preinit) \
|
||||
+ $(link-extra-libs) \
|
||||
+ $(common-objpfx)libc% $(+postinit),$^) \
|
||||
+ $(link-extra-libs)
|
||||
endif
|
||||
|
||||
ifneq "$(strip $(binaries-shared-tests))" ""
|
||||
diff --git a/locale/Makefile b/locale/Makefile
|
||||
index 25f9b5bbce..5cbcd34bd3 100644
|
||||
--- a/locale/Makefile
|
||||
+++ b/locale/Makefile
|
||||
@@ -77,7 +77,6 @@ aux = \
|
||||
xlocale \
|
||||
# aux
|
||||
others = \
|
||||
- locale \
|
||||
localedef \
|
||||
# others
|
||||
#others-static = \
|
||||
@@ -85,7 +84,6 @@ others = \
|
||||
# locale \
|
||||
# # others-static
|
||||
install-bin = \
|
||||
- locale \
|
||||
localedef \
|
||||
# install-bin
|
||||
extra-objs = \
|
||||
@@ -97,7 +95,6 @@ extra-objs = \
|
||||
generated += C-translit.h
|
||||
before-compile += $(objpfx)C-translit.h
|
||||
|
||||
-extra-libs = libBrokenLocale
|
||||
extra-libs-others = $(extra-libs)
|
||||
|
||||
libBrokenLocale-routines = broken_cur_max
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
From 2cb626348a64846b836a878ab7fc93f54eb0afd6 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Weber <matthew.weber@rockwellcollins.com>
|
||||
Date: Thu, 6 Feb 2020 14:36:21 -0600
|
||||
Subject: [PATCH] relax dependency on GCC to 4.8 and binutils to 2.24
|
||||
|
||||
The glibc package has been updating the toolchain version
|
||||
dependency since 2.28.x. The dependencies don't currently
|
||||
apply to the localedef build of the package, so this
|
||||
patchset relaxes the restriction such that builds can still
|
||||
occur on older host machines.
|
||||
|
||||
Here's a related post from 2018 for a similar patchset.
|
||||
http://lists.busybox.net/pipermail/buildroot/2018-December/237949.html
|
||||
|
||||
Timeline of relevant commits that adjust the dependency upstream.
|
||||
GCC 4.9+
|
||||
https://sourceware.org/git/?p=glibc.git;a=commit;h=4add86749a31f302674599b69d2eea691d69341a
|
||||
Binutils 2.25+
|
||||
https://sourceware.org/git/?p=glibc.git;a=commit;h=073e8fa7739ed453d6854b834f290c263a6cdb9f
|
||||
https://sourceware.org/git/?p=glibc.git;a=commit;h=b4396163aa8666f970aaf43eaca25f3a92b18c1b
|
||||
GCC 5+
|
||||
https://sourceware.org/git/?p=glibc.git;a=commit;h=192963be49678b48f60218f1f794991cdd9fe472
|
||||
GCC 6.2+
|
||||
https://sourceware.org/git/?p=glibc.git;a=commit;h=4dcbbc3b28aaeafe23e1a30db84055aa6f6fa987
|
||||
|
||||
Upstream: Not applicable
|
||||
|
||||
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
|
||||
[yann.morin.1998@free.fr: update for 2.37]
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
[Romain: rebase on 2.38]
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
[yann.morin.1998@free.fr: rebase for 2.39]
|
||||
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
|
||||
[Bernd: rebase for 2.44]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
configure | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 604279533a..9daca5fb98 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -5307,7 +5307,7 @@ printf %s "checking version of $LD... " >&6; }
|
||||
ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
|
||||
case $ac_prog_version in
|
||||
'') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
|
||||
- 2.[1-9][0-9][0-9]*|2.39*|2.[4-9][0-9]*|[3-9].*|[1-9][0-9]*)
|
||||
+ 2.1[0-9][0-9]*|2.2[4-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
|
||||
ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
|
||||
*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
|
||||
|
||||
@@ -5756,7 +5756,7 @@ int
|
||||
main (void)
|
||||
{
|
||||
|
||||
-#if (!defined __GNUC__ || __GNUC__ < 12 || (__GNUC__ == 12 && __GNUC_MINOR__ < 1)) && (!defined __clang__ || __clang_major__ < 18)
|
||||
+#if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
|
||||
#error insufficient compiler
|
||||
#endif
|
||||
;
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
From c01b78e37885c7c4a191f752dc346c848d73b731 Mon Sep 17 00:00:00 2001
|
||||
From: Romain Naour <romain.naour@gmail.com>
|
||||
Date: Sat, 9 Sep 2023 23:58:50 +0200
|
||||
Subject: [PATCH] HACK: keep _ISOC23_SOURCE undefined to build localedef
|
||||
with old glibc
|
||||
|
||||
Fixes:
|
||||
host-localedef-2.38-13-g92201f16cbcfd9eafe314ef6654be2ea7ba25675/build/locale/ld-ctype.o: in function `ctype_read':
|
||||
ld-ctype.c:(.text+0x6cef): undefined reference to `__isoc23_strtoul'
|
||||
|
||||
Upstream: Not applicable
|
||||
|
||||
Signed-off-by: Romain Naour <romain.naour@gmail.com>
|
||||
[Thomas: adapted to glibc 2.40, which required the logic to be changed
|
||||
to _ISOC23_SOURCE]
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
[Bernd: rebase for 2.43]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
include/features.h | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/include/features.h b/include/features.h
|
||||
index c080ad4260..230fd2539a 100644
|
||||
--- a/include/features.h
|
||||
+++ b/include/features.h
|
||||
@@ -223,9 +223,7 @@
|
||||
# undef _ISOC11_SOURCE
|
||||
# define _ISOC11_SOURCE 1
|
||||
# undef _ISOC23_SOURCE
|
||||
-# define _ISOC23_SOURCE 1
|
||||
# undef _ISOC2Y_SOURCE
|
||||
-# define _ISOC2Y_SOURCE 1
|
||||
# undef _POSIX_SOURCE
|
||||
# define _POSIX_SOURCE 1
|
||||
# undef _POSIX_C_SOURCE
|
||||
--
|
||||
2.50.1
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
From 34e68bbb6631320bf2b64a00467fb5e59065bd43 Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Fri, 6 Mar 2026 20:59:28 +0100
|
||||
Subject: [PATCH] HACK: use TIME_[MONOTONIC|ACTIVE|THREAD_ACTIVE] without
|
||||
_ISOC23_SOURCE to build localedef with glibc < 2.40
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The Buildroot host-localdef package is built when
|
||||
BR2_GENERATE_LOCALE has a value defined.
|
||||
|
||||
localdef is a tool from the glibc package, and is normally
|
||||
meant to be built with the glibc version it is included in.
|
||||
|
||||
When Buildroot builds host-localedef, it will use the host glibc.
|
||||
When the host glibc version is < 2.40, the compilation fails with
|
||||
error:
|
||||
|
||||
../include/time.h:545:11: error: ‘TIME_MONOTONIC’ undeclared
|
||||
(first use in this function); did you mean ‘CLOCK_MONOTONIC’?
|
||||
../include/time.h:546:11: error: ‘TIME_ACTIVE’ undeclared
|
||||
(first use in this function); did you mean ‘TIMER_ABSTIME’?
|
||||
../include/time.h:547:11: error: ‘TIME_THREAD_ACTIVE’ undeclared
|
||||
(first use in this function)
|
||||
|
||||
This error happen for example in the Buildroot Docker image
|
||||
(which is a Debian 12, glibc 2.36).
|
||||
|
||||
This is because glibc < 2.40 does not define _ISOC23_SOURCE, which
|
||||
was added in upstream commit [1], and the previous Buildroot localedef
|
||||
package patch which also removes the _ISOC23_SOURCE definition.
|
||||
|
||||
This patch workaround the situation by removing the condition around
|
||||
the missing definitions.
|
||||
|
||||
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=42cc619dfbc44e263239c2de870bae11ad65810a
|
||||
|
||||
Upstream: Not applicable
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
[Julien: add extra info in commit log]
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
---
|
||||
time/time.h | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/time/time.h b/time/time.h
|
||||
index ae7beccb72..0a2e8e741f 100644
|
||||
--- a/time/time.h
|
||||
+++ b/time/time.h
|
||||
@@ -67,8 +67,6 @@ typedef __pid_t pid_t;
|
||||
#ifdef __USE_ISOC11
|
||||
/* Time base values for timespec_get. */
|
||||
# define TIME_UTC 1
|
||||
-#endif
|
||||
-#if __GLIBC_USE (ISOC23)
|
||||
# define TIME_MONOTONIC 2
|
||||
# define TIME_ACTIVE 3
|
||||
# define TIME_THREAD_ACTIVE 4
|
||||
--
|
||||
2.53.0
|
||||
|
||||
43
package/localedef/0005-HACK-Fix-dependencies.patch
Normal file
43
package/localedef/0005-HACK-Fix-dependencies.patch
Normal file
@@ -0,0 +1,43 @@
|
||||
From 8419660a3dcf8e6780365f7298e7d85ca0c5537f Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Sun, 26 Jul 2026 12:17:36 +0200
|
||||
Subject: [PATCH] HACK: Fix dependencies
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream commit 7cac99621e9601f916121bcaa9b7734a2e4c2529 changed the
|
||||
handling of dependencies which forced the addition of the make target
|
||||
'lib' to the target 'others' causing the build of unneeded targets for
|
||||
the host build of localedef including build errors:
|
||||
|
||||
/home/bernd/buildroot/output/per-package/host-localedef/host/bin/ccache
|
||||
/usr/bin/gcc gconv_simple.c
|
||||
[...]
|
||||
In file included from <command-line>:
|
||||
../include/wchar.h:154:20: error: ‘wcstof128’ undeclared here (not in a function); did you mean ‘wcstof128_l’?
|
||||
|
||||
To fix the problem we remove the addition of the 'lib' make target.
|
||||
|
||||
Upstream: Not applicable
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
Makefile | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index a6aabca691..0ac1a45c36 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -581,7 +581,6 @@ endif
|
||||
# 'tests' and 'xtests' additionally require the 'others' pass. The
|
||||
# testroot used by the container tests performs a full installation in
|
||||
# its recipe, which must not run concurrently with the build passes.
|
||||
-$(addsuffix /others,$(subdirs)): lib
|
||||
$(addsuffix /tests,$(subdirs)) $(addsuffix /xtests,$(subdirs)): others
|
||||
$(objpfx)testroot.pristine/install.stamp: | others
|
||||
|
||||
--
|
||||
2.47.3
|
||||
|
||||
1
package/localedef/localedef.hash
Symbolic link
1
package/localedef/localedef.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../glibc/glibc.hash
|
||||
66
package/localedef/localedef.mk
Normal file
66
package/localedef/localedef.mk
Normal file
@@ -0,0 +1,66 @@
|
||||
################################################################################
|
||||
#
|
||||
# localedef
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# Use the same VERSION, SITE, and LICENSE as target glibc
|
||||
# As in glibc.mk, generate version string using:
|
||||
# git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2-
|
||||
LOCALEDEF_VERSION = 2.44-36-g2d5421ffca8893534d5e02ad38c28acd8e778fa3
|
||||
LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION)$(BR_FMT_VERSION_git).tar.gz
|
||||
LOCALEDEF_SITE = https://gitlab.com/gnutools/glibc.git
|
||||
LOCALEDEF_SITE_METHOD = git
|
||||
HOST_LOCALEDEF_DL_SUBDIR = glibc
|
||||
|
||||
LOCALEDEF_LICENSE = \
|
||||
GPL-2.0+ (programs), \
|
||||
LGPL-2.1+, BSD-2-Clause, BSD-3-Clause, BSL-1.0, FSFAP, ISC, other permissive licenses, public domain (library), \
|
||||
LGPL-3.0+ (sysdeps/htl/raise.c, for Hurd only), \
|
||||
GPL-3.0+ (scripts/move-if-change), \
|
||||
GPL-3.0+ WITH Texinfo-exception (manual/texinfo.tex), \
|
||||
GFDL-1.3-or-later (manual)
|
||||
LOCALEDEF_LICENSE_FILES = COPYINGv2 COPYING.LESSERv2 COPYINGv3 LICENSES manual/fdl-1.3.texi
|
||||
|
||||
HOST_LOCALEDEF_DEPENDENCIES = \
|
||||
$(BR2_MAKE_HOST_DEPENDENCY) \
|
||||
$(BR2_PYTHON3_HOST_DEPENDENCY) \
|
||||
host-bison \
|
||||
host-gawk
|
||||
|
||||
HOST_LOCALEDEF_CONF_ENV += ac_cv_prog_MAKE="$(BR2_MAKE)"
|
||||
|
||||
# Even though we use the autotools-package infrastructure, we have to override
|
||||
# the default configure commands for since we have to build out-of-tree, but we
|
||||
# can't use the same 'symbolic link to configure' used with the gcc packages.
|
||||
define HOST_LOCALEDEF_CONFIGURE_CMDS
|
||||
mkdir -p $(@D)/build
|
||||
# Do the configuration
|
||||
(cd $(@D)/build; \
|
||||
$(HOST_LOCALEDEF_CONF_ENV) \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
$(SHELL) $(@D)/configure \
|
||||
libc_cv_forced_unwind=yes \
|
||||
libc_cv_ssp=no \
|
||||
--target=$(GNU_HOST_NAME) \
|
||||
--host=$(GNU_HOST_NAME) \
|
||||
--build=$(GNU_HOST_NAME) \
|
||||
--prefix=/usr \
|
||||
--with-pkgversion="Buildroot" \
|
||||
--without-cvs \
|
||||
--disable-profile \
|
||||
--without-gd \
|
||||
--enable-obsolete-rpc)
|
||||
endef
|
||||
|
||||
define HOST_LOCALEDEF_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(BR2_MAKE1) $(HOST_LOCALEDEF_MAKE_OPTS) \
|
||||
-C $(@D)/build locale/others
|
||||
endef
|
||||
|
||||
# The makefile does not implement an install target for localedef
|
||||
define HOST_LOCALEDEF_INSTALL_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/build/locale/localedef $(HOST_DIR)/bin/localedef
|
||||
endef
|
||||
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user