Skip to content

Commit d4bd0dd

Browse files
authored
Merge pull request #322 from arnaldo2792/drop-efa-patch-6.12
Test EFA configurations in parallel
2 parents b8b58ca + 674d9c0 commit d4bd0dd

File tree

3 files changed

+10
-57
lines changed

3 files changed

+10
-57
lines changed

packages/kernel-6.12/1001-Makefile-add-prepare-target-for-external-modules.patch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e6e9b5adc830c0924d81c348c8d5b12e3dc4242e Mon Sep 17 00:00:00 2001
1+
From 9ff0a5db523ebab7f4892662ceec5fc217e92a72 Mon Sep 17 00:00:00 2001
22
From: Ben Cressey <[email protected]>
33
Date: Mon, 19 Apr 2021 18:46:04 +0000
44
Subject: [PATCH] Makefile: add prepare target for external modules
@@ -27,19 +27,19 @@ Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
2727
1 file changed, 13 insertions(+)
2828

2929
diff --git a/Makefile b/Makefile
30-
index 23390805e..2f78ac123 100644
30+
index d4c679b2d..87548bfa2 100644
3131
--- a/Makefile
3232
+++ b/Makefile
33-
@@ -1874,6 +1874,19 @@ else # KBUILD_EXTMOD
33+
@@ -1802,6 +1802,19 @@ filechk_kernel.release = echo $(KERNELRELEASE)
3434
KBUILD_BUILTIN :=
3535
KBUILD_MODULES := 1
3636

3737
+PHONY += modules_prepare
3838
+modules_prepare:
39-
+ $(Q)$(MAKE) $(build)=scripts/basic
40-
+ $(Q)$(MAKE) $(build)=scripts/dtc
41-
+ $(Q)$(MAKE) $(build)=scripts/mod
42-
+ $(Q)$(MAKE) $(build)=scripts
39+
+ $(PREPARE) $(Q)$(MAKE) $(build)=scripts/basic
40+
+ $(PREPARE) $(Q)$(MAKE) $(build)=scripts/dtc
41+
+ $(PREPARE) $(Q)$(MAKE) $(build)=scripts/mod
42+
+ $(PREPARE) $(Q)$(MAKE) $(build)=scripts
4343
+
4444
+ifdef CONFIG_OBJTOOL
4545
+prepare: tools/objtool
@@ -51,5 +51,5 @@ index 23390805e..2f78ac123 100644
5151

5252
compile_commands.json: $(extmod_prefix)compile_commands.json
5353
--
54-
2.40.0
54+
2.50.1
5555

packages/kernel-6.12/2000-config-efa.cmake-execute-config-tests-in-serial.patch

Lines changed: 0 additions & 41 deletions
This file was deleted.

packages/kernel-6.12/kernel-6.12.spec

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ Patch1006: 1006-Select-prerequisites-for-gpu-drivers.patch
6666
Patch1007: 1007-strscpy-write-destination-buffer-only-once.patch
6767
# Disable incomplete measurement into PCR 9 on aarch64.
6868
Patch1008: 1008-efi-libstub-don-t-measure-kernel-command-line-into-P.patch
69-
# Execute EFA tests in serial; concurrency doesn't work with the `make prepare` patch.
70-
Patch2000: 2000-config-efa.cmake-execute-config-tests-in-serial.patch
7169

7270
BuildRequires: bc
7371
BuildRequires: elfutils-devel
@@ -203,7 +201,7 @@ for patch in ${patches[@]}; do
203201
patch -p1 <../"$patch"
204202
done
205203
# Patches listed in this spec (Patch0001...)
206-
%autopatch -p1 -m 1000 -M 1999
204+
%autopatch -p1
207205

208206
%if "%{_cross_arch}" == "x86_64"
209207
microcode="$(find %{_cross_libdir}/firmware -type f -path '*/*-ucode/*' -printf '%%P\n' | sort | tr '\n' ' ')"
@@ -269,10 +267,6 @@ sed \
269267
-e "s|__KERNEL_DIR__|%{builddir}/linux-%{version}|g" \
270268
-e "s|__KERNEL_MAKEFILE__|%{builddir}/linux-%{version}/Makefile|g" %{S:400} > efa_driver/CMakeLists.txt
271269

272-
pushd efa_driver
273-
%patch -P 2000 -p1 -d .
274-
popd
275-
276270
%global kmake %{shrink: \
277271
make -s \
278272
ARCH="%{_cross_karch}" \
@@ -295,7 +289,7 @@ make -s \
295289

296290
# Build EFA driver
297291
pushd %{_builddir}/efa_driver/build
298-
sed -i -e 's,$(MAKE),%{kmake},g' ../config/Makefile
292+
sed -i -e 's,$(MAKE),PREPARE=true %{kmake},g' ../config/Makefile
299293

300294
# Prevent polluting the parent environment by configuring CMAKE in a subshell
301295
(

0 commit comments

Comments
 (0)