package/uclibc: deactivate time64 support for older kernel's
PATCH 1/1 package/uclibc: deactivate time64 support for older kernel's
For Linux systems older then 5.1.0 we need to disable time64 support in uClibc-ng to avoid compilation failure.
Fixes Buildroot's arcturus_ucp1020_defconfig.
--- package/uclibc/uclibc.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+)
package/uclibc/uclibc.mk +12 -0
@@ -72,6 +72,17 @@ define UCLIBC_BINFMT_CONFIG endef endif + +# +# 64-bit time_t is enabled by default but needs headers >= 5.1.0 +# +ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1),) +define UCLIBC_DISABLE_TIME64 + $(call KCONFIG_DISABLE_OPT,UCLIBC_USE_TIME64) +endef +endif + + # # AArch64 definitions #
@@ -398,6 +409,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS $(call KCONFIG_DISABLE_OPT,DOSTRIP) $(UCLIBC_MMU_CONFIG) $(UCLIBC_BINFMT_CONFIG) + $(UCLIBC_DISABLE_TIME64) $(UCLIBC_AARCH64_PAGE_SIZE_CONFIG) $(UCLIBC_ARC_PAGE_SIZE_CONFIG) $(UCLIBC_ARC_ATOMICS_CONFIG)
Signature · 6 lines
2.30.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Julien Olivain
AppliedQuoted 8 lines · Waldemar Brodkorb
For Linux systems older then 5.1.0 we need to disable time64 support in uClibc-ng to avoid compilation failure.
Fixes Buildroot's
arcturus_ucp1020_defconfig.Reported-by Thomas Petazzoni <[email protected]>Suggested-by Thomas Petazzoni <[email protected]>Signed-off-by Waldemar Brodkorb <[email protected]>
Applied to master, thanks.
For info, I fixed check-package errors.
Best regards,
Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Waldemar" == Waldemar Brodkorb <[email protected]> writes:
For Linux systems older then 5.1.0 we need to disable time64 support in uClibc-ng to avoid compilation failure.
Fixes Buildroot's
arcturus_ucp1020_defconfig.Reported-by Thomas Petazzoni <[email protected]>Suggested-by Thomas Petazzoni <[email protected]>Signed-off-by Waldemar Brodkorb <[email protected]>
Committed to 2024.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot