diff options
Diffstat (limited to 'meta-oe/recipes-devtools/abseil-cpp')
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-absl-always-use-asm-sgidefs.h.patch | 7 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-Remove-maes-option-from-cross-compilation.patch | 39 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-abseil-ppc-fixes.patch (renamed from meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch) | 43 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0003-Remove-neon-option-from-cross-compilation.patch | 49 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch | 82 | ||||
-rw-r--r-- | meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb (renamed from meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.2.bb) | 16 |
6 files changed, 40 insertions, 196 deletions
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-absl-always-use-asm-sgidefs.h.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-absl-always-use-asm-sgidefs.h.patch index 5242b29e06..6fecf25603 100644 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-absl-always-use-asm-sgidefs.h.patch +++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0001-absl-always-use-asm-sgidefs.h.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 738549dea7a4e6c462a79962c414eaa450c2cffd Mon Sep 17 00:00:00 2001 | 1 | From 11faa06436fdeb0c9948080a11f9a99d3b5ba16c Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 9 Apr 2020 13:06:27 -0700 | 3 | Date: Thu, 9 Apr 2020 13:06:27 -0700 |
4 | Subject: [PATCH 1/3] absl: always use <asm/sgidefs.h> | 4 | Subject: [PATCH] absl: always use <asm/sgidefs.h> |
5 | 5 | ||
6 | Fixes mips/musl build, since sgidefs.h is not present on all C libraries | 6 | Fixes mips/musl build, since sgidefs.h is not present on all C libraries |
7 | but on linux asm/sgidefs.h is there and contains same definitions, using | 7 | but on linux asm/sgidefs.h is there and contains same definitions, using |
@@ -10,13 +10,12 @@ that makes it portable. | |||
10 | Upstream-Status: Pending | 10 | Upstream-Status: Pending |
11 | 11 | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | |||
14 | --- | 13 | --- |
15 | absl/base/internal/direct_mmap.h | 6 +----- | 14 | absl/base/internal/direct_mmap.h | 6 +----- |
16 | 1 file changed, 1 insertion(+), 5 deletions(-) | 15 | 1 file changed, 1 insertion(+), 5 deletions(-) |
17 | 16 | ||
18 | diff --git a/absl/base/internal/direct_mmap.h b/absl/base/internal/direct_mmap.h | 17 | diff --git a/absl/base/internal/direct_mmap.h b/absl/base/internal/direct_mmap.h |
19 | index e492bb0..c8a4fba 100644 | 18 | index 1beb2ee4..140b0697 100644 |
20 | --- a/absl/base/internal/direct_mmap.h | 19 | --- a/absl/base/internal/direct_mmap.h |
21 | +++ b/absl/base/internal/direct_mmap.h | 20 | +++ b/absl/base/internal/direct_mmap.h |
22 | @@ -41,13 +41,9 @@ | 21 | @@ -41,13 +41,9 @@ |
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-Remove-maes-option-from-cross-compilation.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-Remove-maes-option-from-cross-compilation.patch deleted file mode 100644 index b92a487523..0000000000 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-Remove-maes-option-from-cross-compilation.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From d25cf3b9aa873595a19e197cc29ab46c0093bff1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Sinan Kaya <sinan.kaya@microsoft.com> | ||
3 | Date: Mon, 3 Feb 2020 03:25:57 +0000 | ||
4 | Subject: [PATCH 2/3] Remove maes option from cross-compilation | ||
5 | |||
6 | --- | ||
7 | Upstream-Status: Pending | ||
8 | |||
9 | absl/copts/GENERATED_AbseilCopts.cmake | 4 ---- | ||
10 | absl/copts/GENERATED_copts.bzl | 4 ---- | ||
11 | 2 files changed, 8 deletions(-) | ||
12 | |||
13 | diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake | ||
14 | index a4ab1aa2041e..23b9253c1f00 100644 | ||
15 | --- a/absl/copts/GENERATED_AbseilCopts.cmake | ||
16 | +++ b/absl/copts/GENERATED_AbseilCopts.cmake | ||
17 | @@ -158,7 +158,3 @@ list(APPEND ABSL_RANDOM_HWAES_ARM64_FLAGS | ||
18 | list(APPEND ABSL_RANDOM_HWAES_MSVC_X64_FLAGS | ||
19 | ) | ||
20 | |||
21 | -list(APPEND ABSL_RANDOM_HWAES_X64_FLAGS | ||
22 | - "-maes" | ||
23 | - "-msse4.1" | ||
24 | -) | ||
25 | diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl | ||
26 | index a6efc98e11d4..1e847f769501 100644 | ||
27 | --- a/absl/copts/GENERATED_copts.bzl | ||
28 | +++ b/absl/copts/GENERATED_copts.bzl | ||
29 | @@ -159,7 +159,3 @@ ABSL_RANDOM_HWAES_ARM64_FLAGS = [ | ||
30 | ABSL_RANDOM_HWAES_MSVC_X64_FLAGS = [ | ||
31 | ] | ||
32 | |||
33 | -ABSL_RANDOM_HWAES_X64_FLAGS = [ | ||
34 | - "-maes", | ||
35 | - "-msse4.1", | ||
36 | -] | ||
37 | -- | ||
38 | 2.36.1 | ||
39 | |||
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-abseil-ppc-fixes.patch index f2ebd9f08c..a0b99dd206 100644 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/abseil-ppc-fixes.patch +++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0002-abseil-ppc-fixes.patch | |||
@@ -1,4 +1,7 @@ | |||
1 | Upstream-Status: Pending | 1 | From 5891332fecd3bf707b58dda56b4b3f80583b5ef9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 21 Sep 2024 20:53:06 +0800 | ||
4 | Subject: [PATCH] abseil: ppc fixes | ||
2 | 5 | ||
3 | An all-in-one patch that fixes several issues: | 6 | An all-in-one patch that fixes several issues: |
4 | 7 | ||
@@ -9,14 +12,24 @@ An all-in-one patch that fixes several issues: | |||
9 | 12 | ||
10 | Sourced from void linux | 13 | Sourced from void linux |
11 | 14 | ||
15 | Upstream-Status: Pending | ||
16 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
18 | --- | ||
19 | absl/base/internal/unscaledcycleclock.cc | 4 ++-- | ||
20 | absl/base/internal/unscaledcycleclock_config.h | 3 ++- | ||
21 | absl/debugging/internal/examine_stack.cc | 8 +++++++- | ||
22 | absl/debugging/internal/stacktrace_config.h | 2 +- | ||
23 | 4 files changed, 12 insertions(+), 5 deletions(-) | ||
13 | 24 | ||
25 | diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc | ||
26 | index 68f92730..5dbfaab6 100644 | ||
14 | --- a/absl/base/internal/unscaledcycleclock.cc | 27 | --- a/absl/base/internal/unscaledcycleclock.cc |
15 | +++ b/absl/base/internal/unscaledcycleclock.cc | 28 | +++ b/absl/base/internal/unscaledcycleclock.cc |
16 | @@ -20,7 +20,7 @@ | 29 | @@ -20,7 +20,7 @@ |
17 | #include <intrin.h> | 30 | #include <intrin.h> |
18 | #endif | 31 | #endif |
19 | 32 | ||
20 | -#if defined(__powerpc__) || defined(__ppc__) | 33 | -#if defined(__powerpc__) || defined(__ppc__) |
21 | +#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__) | 34 | +#if (defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__) |
22 | #ifdef __GLIBC__ | 35 | #ifdef __GLIBC__ |
@@ -25,30 +38,34 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
25 | @@ -58,7 +58,7 @@ double UnscaledCycleClock::Frequency() { | 38 | @@ -58,7 +58,7 @@ double UnscaledCycleClock::Frequency() { |
26 | return base_internal::NominalCPUFrequency(); | 39 | return base_internal::NominalCPUFrequency(); |
27 | } | 40 | } |
28 | 41 | ||
29 | -#elif defined(__powerpc__) || defined(__ppc__) | 42 | -#elif defined(__powerpc__) || defined(__ppc__) |
30 | +#elif (defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__) | 43 | +#elif (defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__) |
31 | 44 | ||
32 | int64_t UnscaledCycleClock::Now() { | 45 | int64_t UnscaledCycleClock::Now() { |
33 | #ifdef __GLIBC__ | 46 | #ifdef __GLIBC__ |
47 | diff --git a/absl/base/internal/unscaledcycleclock_config.h b/absl/base/internal/unscaledcycleclock_config.h | ||
48 | index 43a3dabe..196a8535 100644 | ||
34 | --- a/absl/base/internal/unscaledcycleclock_config.h | 49 | --- a/absl/base/internal/unscaledcycleclock_config.h |
35 | +++ b/absl/base/internal/unscaledcycleclock_config.h | 50 | +++ b/absl/base/internal/unscaledcycleclock_config.h |
36 | @@ -21,7 +21,8 @@ | 51 | @@ -21,7 +21,8 @@ |
37 | 52 | ||
38 | // The following platforms have an implementation of a hardware counter. | 53 | // The following platforms have an implementation of a hardware counter. |
39 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ | 54 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ |
40 | - defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \ | 55 | - defined(__powerpc__) || defined(__ppc__) || defined(_M_IX86) || \ |
41 | + ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ | 56 | + ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ |
42 | + defined(__riscv) || \ | 57 | + defined(_M_IX86) || \ |
43 | defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) | 58 | (defined(_M_X64) && !defined(_M_ARM64EC)) |
44 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 | 59 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 |
45 | #else | 60 | #else |
61 | diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc | ||
62 | index 3dd6ba1a..f923b055 100644 | ||
46 | --- a/absl/debugging/internal/examine_stack.cc | 63 | --- a/absl/debugging/internal/examine_stack.cc |
47 | +++ b/absl/debugging/internal/examine_stack.cc | 64 | +++ b/absl/debugging/internal/examine_stack.cc |
48 | @@ -33,6 +33,10 @@ | 65 | @@ -36,6 +36,10 @@ |
49 | #include <csignal> | 66 | #include <csignal> |
50 | #include <cstdio> | 67 | #include <cstdio> |
51 | 68 | ||
52 | +#if defined(__powerpc__) | 69 | +#if defined(__powerpc__) |
53 | +#include <asm/ptrace.h> | 70 | +#include <asm/ptrace.h> |
54 | +#endif | 71 | +#endif |
@@ -56,7 +73,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
56 | #include "absl/base/attributes.h" | 73 | #include "absl/base/attributes.h" |
57 | #include "absl/base/internal/raw_logging.h" | 74 | #include "absl/base/internal/raw_logging.h" |
58 | #include "absl/base/macros.h" | 75 | #include "absl/base/macros.h" |
59 | @@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) { | 76 | @@ -177,8 +181,10 @@ void* GetProgramCounter(void* const vuc) { |
60 | return reinterpret_cast<void*>(context->uc_mcontext.pc); | 77 | return reinterpret_cast<void*>(context->uc_mcontext.pc); |
61 | #elif defined(__powerpc64__) | 78 | #elif defined(__powerpc64__) |
62 | return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); | 79 | return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); |
@@ -68,9 +85,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
68 | #elif defined(__riscv) | 85 | #elif defined(__riscv) |
69 | return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); | 86 | return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); |
70 | #elif defined(__s390__) && !defined(__s390x__) | 87 | #elif defined(__s390__) && !defined(__s390x__) |
88 | diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h | ||
89 | index 88949fe9..4e26a6b7 100644 | ||
71 | --- a/absl/debugging/internal/stacktrace_config.h | 90 | --- a/absl/debugging/internal/stacktrace_config.h |
72 | +++ b/absl/debugging/internal/stacktrace_config.h | 91 | +++ b/absl/debugging/internal/stacktrace_config.h |
73 | @@ -60,7 +60,7 @@ | 92 | @@ -67,7 +67,7 @@ |
74 | #elif defined(__i386__) || defined(__x86_64__) | 93 | #elif defined(__i386__) || defined(__x86_64__) |
75 | #define ABSL_STACKTRACE_INL_HEADER \ | 94 | #define ABSL_STACKTRACE_INL_HEADER \ |
76 | "absl/debugging/internal/stacktrace_x86-inl.inc" | 95 | "absl/debugging/internal/stacktrace_x86-inl.inc" |
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0003-Remove-neon-option-from-cross-compilation.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0003-Remove-neon-option-from-cross-compilation.patch deleted file mode 100644 index 1a80a428b7..0000000000 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0003-Remove-neon-option-from-cross-compilation.patch +++ /dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | From fb24c3e3539b5743d398a429a302a3886186f261 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonas Gorski <jonas.gorski@bisdn.de> | ||
3 | Date: Thu, 16 Jun 2022 11:46:31 +0000 | ||
4 | Subject: [PATCH 3/3] Remove neon option from cross compilation | ||
5 | |||
6 | Not every arm platform supports neon instructions, so do not enforce | ||
7 | them. | ||
8 | |||
9 | Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | absl/copts/GENERATED_AbseilCopts.cmake | 4 ---- | ||
14 | absl/copts/GENERATED_copts.bzl | 4 ---- | ||
15 | 2 files changed, 8 deletions(-) | ||
16 | |||
17 | diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake | ||
18 | index 23b9253c1f00..5d112a97f3e4 100644 | ||
19 | --- a/absl/copts/GENERATED_AbseilCopts.cmake | ||
20 | +++ b/absl/copts/GENERATED_AbseilCopts.cmake | ||
21 | @@ -147,10 +147,6 @@ list(APPEND ABSL_MSVC_TEST_FLAGS | ||
22 | "/DNOMINMAX" | ||
23 | ) | ||
24 | |||
25 | -list(APPEND ABSL_RANDOM_HWAES_ARM32_FLAGS | ||
26 | - "-mfpu=neon" | ||
27 | -) | ||
28 | - | ||
29 | list(APPEND ABSL_RANDOM_HWAES_ARM64_FLAGS | ||
30 | "-march=armv8-a+crypto" | ||
31 | ) | ||
32 | diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl | ||
33 | index 1e847f769501..3e10db204faf 100644 | ||
34 | --- a/absl/copts/GENERATED_copts.bzl | ||
35 | +++ b/absl/copts/GENERATED_copts.bzl | ||
36 | @@ -148,10 +148,6 @@ ABSL_MSVC_TEST_FLAGS = [ | ||
37 | "/DNOMINMAX", | ||
38 | ] | ||
39 | |||
40 | -ABSL_RANDOM_HWAES_ARM32_FLAGS = [ | ||
41 | - "-mfpu=neon", | ||
42 | -] | ||
43 | - | ||
44 | ABSL_RANDOM_HWAES_ARM64_FLAGS = [ | ||
45 | "-march=armv8-a+crypto", | ||
46 | ] | ||
47 | -- | ||
48 | 2.36.1 | ||
49 | |||
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch deleted file mode 100644 index 461df7a608..0000000000 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp/0004-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch +++ /dev/null | |||
@@ -1,82 +0,0 @@ | |||
1 | From 7335a36d0b5c1c597566f9aa3f458a5b6817c3b4 Mon Sep 17 00:00:00 2001 | ||
2 | From: aurel32 <aurelien@aurel32.net> | ||
3 | Date: Fri, 22 Mar 2024 14:21:13 -0700 | ||
4 | Subject: [PATCH] PR #1644: unscaledcycleclock: remove RISC-V support | ||
5 | |||
6 | Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1644 | ||
7 | |||
8 | Starting with Linux 6.6 [1], RDCYCLE is a privileged instruction on RISC-V and can't be used directly from userland. There is a sysctl option to change that as a transition period, but it will eventually disappear. | ||
9 | |||
10 | The RDTIME instruction is another less accurate alternative, however its frequency varies from board to board, and there is currently now way to get its frequency from userland [2]. | ||
11 | |||
12 | Therefore this patch just removes the code for unscaledcycleclock on RISC-V. Without processor specific implementation, abseil relies on std::chrono::steady_clock::now().time_since_epoch() which is basically a wrapper around clock_gettime (CLOCK_MONOTONIC), which in turns use __vdso_clock_gettime(). On RISC-V this VDSO is just a wrapper around RDTIME correctly scaled to use nanoseconds units. | ||
13 | |||
14 | This fixes the testsuite on riscv64, tested on a VisionFive 2 board. | ||
15 | |||
16 | [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc4c07c89aada16229084eeb93895c95b7eabaa3 | ||
17 | [2] https://github.com/abseil/abseil-cpp/pull/1631 | ||
18 | Merge 43356a2548cfde76e164d446cb69004b488c6a71 into 76f8011beabdaee872b5fde7546e02407b220cb1 | ||
19 | |||
20 | Merging this change closes #1644 | ||
21 | |||
22 | COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1644 from aurel32:rv64-no-unscaledcycleclock 43356a2548cfde76e164d446cb69004b488c6a71 | ||
23 | PiperOrigin-RevId: 618286262 | ||
24 | Change-Id: Ie4120a727e7d0bb185df6e06ea145c780ebe6652 | ||
25 | |||
26 | Upstream-Status: Backport [https://github.com/abseil/abseil-cpp/commit/7335a36d] | ||
27 | [Adapted to apply on top of meta-oe's patch stack] | ||
28 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | ||
29 | --- | ||
30 | absl/base/internal/unscaledcycleclock.cc | 12 ------------ | ||
31 | absl/base/internal/unscaledcycleclock_config.h | 5 ++--- | ||
32 | 2 files changed, 2 insertions(+), 15 deletions(-) | ||
33 | |||
34 | diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc | ||
35 | index f11fecb3..103b4f6a 100644 | ||
36 | --- a/absl/base/internal/unscaledcycleclock.cc | ||
37 | +++ b/absl/base/internal/unscaledcycleclock.cc | ||
38 | @@ -121,18 +121,6 @@ double UnscaledCycleClock::Frequency() { | ||
39 | return aarch64_timer_frequency; | ||
40 | } | ||
41 | |||
42 | -#elif defined(__riscv) | ||
43 | - | ||
44 | -int64_t UnscaledCycleClock::Now() { | ||
45 | - int64_t virtual_timer_value; | ||
46 | - asm volatile("rdcycle %0" : "=r"(virtual_timer_value)); | ||
47 | - return virtual_timer_value; | ||
48 | -} | ||
49 | - | ||
50 | -double UnscaledCycleClock::Frequency() { | ||
51 | - return base_internal::NominalCPUFrequency(); | ||
52 | -} | ||
53 | - | ||
54 | #elif defined(_M_IX86) || defined(_M_X64) | ||
55 | |||
56 | #pragma intrinsic(__rdtsc) | ||
57 | diff --git a/absl/base/internal/unscaledcycleclock_config.h b/absl/base/internal/unscaledcycleclock_config.h | ||
58 | index 5e232c1a..83552fc5 100644 | ||
59 | --- a/absl/base/internal/unscaledcycleclock_config.h | ||
60 | +++ b/absl/base/internal/unscaledcycleclock_config.h | ||
61 | @@ -22,7 +22,6 @@ | ||
62 | // The following platforms have an implementation of a hardware counter. | ||
63 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ | ||
64 | ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ | ||
65 | - defined(__riscv) || \ | ||
66 | defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) | ||
67 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 | ||
68 | #else | ||
69 | @@ -54,8 +53,8 @@ | ||
70 | #if ABSL_USE_UNSCALED_CYCLECLOCK | ||
71 | // This macro can be used to test if UnscaledCycleClock::Frequency() | ||
72 | // is NominalCPUFrequency() on a particular platform. | ||
73 | -#if (defined(__i386__) || defined(__x86_64__) || defined(__riscv) || \ | ||
74 | - defined(_M_IX86) || defined(_M_X64)) | ||
75 | +#if (defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || \ | ||
76 | + defined(_M_X64)) | ||
77 | #define ABSL_INTERNAL_UNSCALED_CYCLECLOCK_FREQUENCY_IS_CPU_FREQUENCY | ||
78 | #endif | ||
79 | #endif | ||
80 | -- | ||
81 | 2.44.0 | ||
82 | |||
diff --git a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.2.bb b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb index 87ab239311..4afbba963a 100644 --- a/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20240116.2.bb +++ b/meta-oe/recipes-devtools/abseil-cpp/abseil-cpp_20250512.1.bb | |||
@@ -7,17 +7,13 @@ SECTION = "libs" | |||
7 | LICENSE = "Apache-2.0" | 7 | LICENSE = "Apache-2.0" |
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915" | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=df52c6edb7adc22e533b2bacc3bd3915" |
9 | 9 | ||
10 | SRCREV = "d7aaad83b488fd62bd51c81ecf16cd938532cc0a" | 10 | SRCREV = "76bb24329e8bf5f39704eb10d21b9a80befa7c81" |
11 | BRANCH = "lts_2024_01_16" | 11 | BRANCH = "lts_2025_05_12" |
12 | SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \ | 12 | SRC_URI = "git://github.com/abseil/abseil-cpp;branch=${BRANCH};protocol=https \ |
13 | file://0001-absl-always-use-asm-sgidefs.h.patch \ | 13 | file://0001-absl-always-use-asm-sgidefs.h.patch \ |
14 | file://0002-Remove-maes-option-from-cross-compilation.patch \ | 14 | file://0002-abseil-ppc-fixes.patch \ |
15 | file://abseil-ppc-fixes.patch \ | 15 | " |
16 | file://0003-Remove-neon-option-from-cross-compilation.patch \ | ||
17 | file://0004-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch \ | ||
18 | " | ||
19 | 16 | ||
20 | S = "${WORKDIR}/git" | ||
21 | 17 | ||
22 | inherit cmake | 18 | inherit cmake |
23 | 19 | ||
@@ -28,7 +24,7 @@ EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON \ | |||
28 | 24 | ||
29 | SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}" | 25 | SYSROOT_DIRS:append:class-nativesdk:mingw32 = " ${bindir}" |
30 | 26 | ||
31 | PACKAGES_DYNAMIC = "^libabsl-*" | 27 | PACKAGES_DYNAMIC += "^libabsl-*" |
32 | PACKAGES_DYNAMIC:class-native = "" | 28 | PACKAGES_DYNAMIC:class-native = "" |
33 | 29 | ||
34 | PACKAGESPLITFUNCS =+ "split_dynamic_packages" | 30 | PACKAGESPLITFUNCS =+ "split_dynamic_packages" |