Hello Waldemar, On Sun, 19 Jan 2025 15:55:09 +0100 Waldemar Brodkorb <[email protected]> wrote:
> We enabled time64 by default in uClibc-ng a while ago. > With 1.0.51 you will get: > #error 64bit time on 32bit targets is not supported on Linux < 5.1.0 > > We somehow need to handle UCLIBC_USE_TIME64 inside Buildroot and > disable it for Linux < 5.1.0 systems. > > Any idea how to manage it? Like this (totally untested): diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index fdd5850874..db208cf610 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -72,6 +72,15 @@ 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 # Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
