Skip to content

Commit 5a66515

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

File tree

4 files changed

+38
-53
lines changed

4 files changed

+38
-53
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-rc7')
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 a40f30232929..9b79f82b4461 100644
3+
--- a/tools/objtool/Makefile
4+
+++ b/tools/objtool/Makefile
5+
@@ -3,8 +3,9 @@ include ../scripts/Makefile.include
6+
include ../scripts/Makefile.arch
7+
8+
ifeq ($(SRCARCH),x86)
9+
- BUILD_ORC := y
10+
- ARCH_HAS_KLP := y
11+
+ BUILD_ORC := y
12+
+ ARCH_HAS_DISAS := y
13+
+ ARCH_HAS_KLP := y
14+
endif
15+
16+
ifeq ($(SRCARCH),loongarch)
17+
@@ -99,6 +100,7 @@ HAVE_DISASM_STYLED := $(shell echo '$(pound)include <dis-asm.h>' | \
18+
19+
BUILD_DISAS := n
20+
21+
+ifeq ($(ARCH_HAS_DISAS),y)
22+
ifneq ($(LIBOPCODES_LIBS),)
23+
BUILD_DISAS := y
24+
OBJTOOL_CFLAGS += -DDISAS -DPACKAGE='"objtool"'
25+
@@ -107,6 +109,7 @@ ifeq ($(HAVE_DISASM_STYLED),y)
26+
OBJTOOL_CFLAGS += -DDISASM_INIT_STYLED
27+
endif
28+
endif
29+
+endif
30+
31+
export BUILD_DISAS
32+

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

src/riscv-broken-asm-goto-with-outputs.patch

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

0 commit comments

Comments
 (0)