Skip to content

Commit b2f98bf

Browse files
committed
kernel: use pahole 1.27 feature of reproducible builds
1 parent 317604d commit b2f98bf

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

sdk_container/src/third_party/coreos-overlay/sys-kernel/coreos-sources/coreos-sources-6.10.9.ebuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ IUSE=""
3636
# local patches overlap with the upstream patch.
3737
UNIPATCH_LIST="
3838
${PATCH_DIR}/z0001-kbuild-derive-relative-path-for-srctree-from-CURDIR.patch \
39-
${PATCH_DIR}/z0002-pahole-remove-parallel-j-flag.patch \
39+
${PATCH_DIR}/z0002-pahole-support-reproducible-builds.patch \
4040
${PATCH_DIR}/z0003-Revert-x86-boot-Remove-the-bugger-off-message.patch \
4141
"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 9faff3734e6456e7927c0914829a4764ec9f1b44 Mon Sep 17 00:00:00 2001
2+
From: Adrian Vladu <avladu@cloudbasesolutions.com>
3+
Date: Tue, 17 Sep 2024 13:44:14 +0000
4+
Subject: [PATCH] pahole: support reproducible builds
5+
6+
---
7+
scripts/Makefile.btf | 3 +++
8+
1 file changed, 3 insertions(+)
9+
10+
diff --git a/scripts/Makefile.btf b/scripts/Makefile.btf
11+
index 2d6e5ed9081e..b2f88b0fcf37 100644
12+
--- a/scripts/Makefile.btf
13+
+++ b/scripts/Makefile.btf
14+
@@ -23,6 +23,9 @@ else
15+
# Switch to using --btf_features for v1.26 and later.
16+
pahole-flags-$(call test-ge, $(pahole-ver), 126) = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func
17+
18+
+# Support reproducible builds.
19+
+pahole-flags-$(call test-ge, $(pahole-ver), 127) = -j --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func,reproducible_build
20+
+
21+
endif
22+
23+
pahole-flags-$(CONFIG_PAHOLE_HAS_LANG_EXCLUDE) += --lang_exclude=rust
24+
--
25+
2.34.1
26+

0 commit comments

Comments
 (0)