2
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:
https://gitlab.com/buildroot.org/buildroot/-/jobs/8925840027

Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
[Julien:
 - fix check-package errors
 - add link to a build failure
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 6a630519312f39faceb0039e7cf3ef2635a00101)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Waldemar Brodkorb 6 сар өмнө
parent
commit
63b400f8f3
1 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  1. 10 0
      package/uclibc/uclibc.mk

+ 10 - 0
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
 #
@@ -398,6 +407,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)