Skip to content

Commit 1e10827

Browse files
committed
build-llvm.py: Update to latest mainline release
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 6d70d4c commit 1e10827

File tree

3 files changed

+38
-28
lines changed

3 files changed

+38
-28
lines changed

build-llvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@
452452
f"Supplied kernel source version ('{found_version}') is older than the minimum required version ('{minimum_version}'), provide a newer version!"
453453
)
454454
else:
455-
lsm.location = Path(src_folder, 'linux-6.18')
455+
lsm.location = Path(src_folder, 'linux-6.19-rc5')
456456
lsm.patches = list(src_folder.glob('*.patch'))
457457

458458
lsm.tarball.base_download_url = 'https://git.kernel.org/torvalds/t'
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
2+
index ad6e1ec706ce..d9a8861d15d5 100644
3+
--- a/tools/objtool/Makefile
4+
+++ b/tools/objtool/Makefile
5+
@@ -70,27 +70,8 @@ OBJTOOL_CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED)
6+
# Always want host compilation.
7+
HOST_OVERRIDES := CC="$(HOSTCC)" LD="$(HOSTLD)" AR="$(HOSTAR)"
8+
9+
-#
10+
-# To support disassembly, objtool needs libopcodes which is provided
11+
-# with libbdf (binutils-dev or binutils-devel package).
12+
-#
13+
-FEATURE_USER = .objtool
14+
-FEATURE_TESTS = libbfd disassembler-init-styled
15+
-FEATURE_DISPLAY =
16+
-include $(srctree)/tools/build/Makefile.feature
17+
-
18+
-ifeq ($(feature-disassembler-init-styled), 1)
19+
- OBJTOOL_CFLAGS += -DDISASM_INIT_STYLED
20+
-endif
21+
-
22+
BUILD_DISAS := n
23+
24+
-ifeq ($(feature-libbfd),1)
25+
- BUILD_DISAS := y
26+
- OBJTOOL_CFLAGS += -DDISAS -DPACKAGE="objtool"
27+
- OBJTOOL_LDFLAGS += -lopcodes
28+
-endif
29+
-
30+
export BUILD_DISAS
31+
32+
AWK = awk

src/mips-ias-revert.patch

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ index c7d75807d13f..0992cad9c632 100644
1717
return cpu_wait == r4k_wait;
1818
}
1919
diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S
20-
index 08c0a01d9a29..a572ce36a24f 100644
20+
index be1b049d856f..a572ce36a24f 100644
2121
--- a/arch/mips/kernel/genex.S
2222
+++ b/arch/mips/kernel/genex.S
2323
@@ -104,59 +104,48 @@ handle_vcei:
@@ -29,7 +29,7 @@ index 08c0a01d9a29..a572ce36a24f 100644
2929
- .align 5
3030
-LEAF(r4k_wait)
3131
- /* Keep the ISA bit clear for calculations on local labels here. */
32-
-0: .fill 0
32+
-0: .fill 0
3333
- /* Start of idle interrupt region. */
3434
- local_irq_enable
3535
- /*
@@ -41,7 +41,7 @@ index 08c0a01d9a29..a572ce36a24f 100644
4141
- */
4242
-1: .fill 0
4343
- /* The R2 EI/EHB sequence takes 8 bytes, otherwise pad up. */
44-
- .if 1b - 0b > 32
44+
- .if 1b - 0b > 32
4545
- .error "overlong idle interrupt region"
4646
- .elseif 1b - 0b > 8
4747
- .align 4
@@ -91,13 +91,13 @@ index 08c0a01d9a29..a572ce36a24f 100644
9191
MFC0 k0, CP0_EPC
9292
- /* Subtract/add 2 to let the ISA bit propagate through the mask. */
9393
- PTR_LA k1, r4k_wait_insn - 2
94-
- ori k0, r4k_wait_idle_size - 2
94+
- ori k0, r4k_wait_idle_size - 2
9595
- .set noreorder
9696
+ PTR_LA k1, __r4k_wait
9797
+ ori k0, 0x1f /* 32 byte rollback region */
9898
+ xori k0, 0x1f
9999
bne k0, k1, \handler
100-
- PTR_ADDIU k0, r4k_wait_exit - r4k_wait_insn + 2
100+
- PTR_ADDIU k0, r4k_wait_exit - r4k_wait_insn + 2
101101
- .set reorder
102102
MTC0 k0, CP0_EPC
103103
.set pop
@@ -136,28 +136,6 @@ index 80e8a04a642e..5abc8b7340f8 100644
136136
/*
137137
* This variant is preferable as it allows testing need_resched and going to
138138
* sleep depending on the outcome atomically. Unfortunately the "It is
139-
diff --git a/arch/mips/kernel/smp-cps.c b/arch/mips/kernel/smp-cps.c
140-
index cc26d56f3ab6..e85bd087467e 100644
141-
--- a/arch/mips/kernel/smp-cps.c
142-
+++ b/arch/mips/kernel/smp-cps.c
143-
@@ -332,8 +332,6 @@ static void __init cps_prepare_cpus(unsigned int max_cpus)
144-
mips_cps_cluster_bootcfg = kcalloc(nclusters,
145-
sizeof(*mips_cps_cluster_bootcfg),
146-
GFP_KERNEL);
147-
- if (!mips_cps_cluster_bootcfg)
148-
- goto err_out;
149-
150-
if (nclusters > 1)
151-
mips_cm_update_property();
152-
@@ -350,8 +348,6 @@ static void __init cps_prepare_cpus(unsigned int max_cpus)
153-
mips_cps_cluster_bootcfg[cl].core_power =
154-
kcalloc(BITS_TO_LONGS(ncores), sizeof(unsigned long),
155-
GFP_KERNEL);
156-
- if (!mips_cps_cluster_bootcfg[cl].core_power)
157-
- goto err_out;
158-
159-
/* Allocate VPE boot configuration structs */
160-
for (c = 0; c < ncores; c++) {
161139
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
162140
index 8ec1e185b35c..39e248d0ed59 100644
163141
--- a/arch/mips/kernel/traps.c

0 commit comments

Comments
 (0)