Commit 0ad3484
committed
linuxkm: fix Tegra Yocto FIPS build issues (ARM64, RT, PIE)
Fix multiple build and runtime issues when building wolfSSL LinuxKM FIPS
on NVIDIA Tegra (ARM64) kernels under Yocto.
- Disable ARM64 LSE atomics for out-of-tree modules to avoid jump_table
asm constraints
- Handle PREEMPT_RT mutex and spinlock differences correctly
- Avoid alt_cb_patch_nops / queued_spin_lock_slowpath on Tegra
- Remove conflicting compiler auto-var-init flags for PIE objects
- Align PIE symbol redirection with RT and Tegra kernels
This restores successful LinuxKM FIPS builds on Tegra-based Yocto systems.
Signed-off-by: Sameeh Jubran <[email protected]>1 parent 19cba1c commit 0ad3484
File tree
4 files changed
+81
-5
lines changed- linuxkm
- wolfcrypt/src
4 files changed
+81
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
27 | 48 | | |
28 | 49 | | |
29 | 50 | | |
| |||
941 | 962 | | |
942 | 963 | | |
943 | 964 | | |
944 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
945 | 974 | | |
946 | 975 | | |
947 | 976 | | |
| |||
1048 | 1077 | | |
1049 | 1078 | | |
1050 | 1079 | | |
| 1080 | + | |
1051 | 1081 | | |
1052 | 1082 | | |
1053 | 1083 | | |
| |||
1062 | 1092 | | |
1063 | 1093 | | |
1064 | 1094 | | |
| 1095 | + | |
1065 | 1096 | | |
1066 | 1097 | | |
1067 | 1098 | | |
| |||
1260 | 1291 | | |
1261 | 1292 | | |
1262 | 1293 | | |
1263 | | - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1264 | 1305 | | |
1265 | 1306 | | |
1266 | 1307 | | |
| |||
1327 | 1368 | | |
1328 | 1369 | | |
1329 | 1370 | | |
| 1371 | + | |
| 1372 | + | |
1330 | 1373 | | |
1331 | | - | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
1332 | 1396 | | |
1333 | 1397 | | |
1334 | 1398 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
1313 | | - | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
1314 | 1321 | | |
1315 | 1322 | | |
1316 | 1323 | | |
| |||
1489 | 1496 | | |
1490 | 1497 | | |
1491 | 1498 | | |
| 1499 | + | |
1492 | 1500 | | |
1493 | 1501 | | |
| 1502 | + | |
1494 | 1503 | | |
1495 | 1504 | | |
1496 | 1505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4977 | 4977 | | |
4978 | 4978 | | |
4979 | 4979 | | |
| 4980 | + | |
4980 | 4981 | | |
4981 | 4982 | | |
4982 | 4983 | | |
| |||
4990 | 4991 | | |
4991 | 4992 | | |
4992 | 4993 | | |
| 4994 | + | |
0 commit comments