Skip to content

Commit 970221c

Browse files
committed
Revert "cheribsd-mfs-root-kernel: Support Morello FPGA configs"
These are no longer needed now we've stopped messing with kern.random.harvest.mask. This reverts commit e160c25.
1 parent d3afc80 commit 970221c

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

pycheribuild/projects/cross/cheribsd.py

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,10 @@ class ConfigPlatform(Enum):
9898
FVP = "fvp"
9999
GFE = "gfe"
100100
AWS = "aws-f1"
101-
MORELLO_FPGA = "morello-fpga"
102101

103102
@classmethod
104103
def fpga_platforms(cls) -> "set[ConfigPlatform]":
105-
return {cls.GFE, cls.AWS, cls.MORELLO_FPGA}
104+
return {cls.GFE, cls.AWS}
106105

107106

108107
class CheriBSDConfig:
@@ -291,7 +290,6 @@ class AArch64KernelConfigFactory(KernelConfigFactory):
291290
platform_name_map: "dict[ConfigPlatform, Optional[str]]" = {
292291
ConfigPlatform.QEMU: "GENERIC",
293292
ConfigPlatform.FVP: "GENERIC",
294-
ConfigPlatform.MORELLO_FPGA: "MORELLO-FPGA",
295293
}
296294

297295
def get_kabi_name(self, kernel_abi) -> Optional[str]:
@@ -308,28 +306,9 @@ def get_available_kabis(self) -> "list[KernelABI]":
308306
abis = super().get_available_kabis()
309307
return [*abis, KernelABI.PURECAP_BENCHMARK]
310308

311-
def get_flag_names(
312-
self,
313-
platforms: "set[ConfigPlatform]",
314-
kernel_abi: KernelABI,
315-
default=False,
316-
nocaprevoke=False,
317-
mfsroot=False,
318-
debug=False,
319-
benchmark=False,
320-
fuzzing=False,
321-
fett=False,
322-
):
323-
if ConfigPlatform.MORELLO_FPGA in platforms:
324-
# Suppress mfsroot flag as it is implied for Morello FPGA configurations
325-
mfsroot = False
326-
return super().get_flag_names(
327-
platforms, kernel_abi, mfsroot=mfsroot, fuzzing=fuzzing, benchmark=benchmark, default=default, nocaprevoke=nocaprevoke
328-
)
329-
330309
def make_all(self) -> "list[CheriBSDConfig]":
331310
configs = []
332-
# Generate QEMU/FVP/FPGA kernels
311+
# Generate QEMU/FVP kernels
333312
for kernel_abi in self.get_available_kabis():
334313
configs.append(self.make_config({ConfigPlatform.QEMU, ConfigPlatform.FVP}, kernel_abi, default=True))
335314
configs.append(
@@ -338,9 +317,6 @@ def make_all(self) -> "list[CheriBSDConfig]":
338317
configs.append(
339318
self.make_config({ConfigPlatform.QEMU, ConfigPlatform.FVP}, kernel_abi, default=True, mfsroot=True)
340319
)
341-
configs.append(
342-
self.make_config({ConfigPlatform.MORELLO_FPGA}, kernel_abi, default=True, mfsroot=True)
343-
)
344320
# Caprevoke kernels
345321
for kernel_abi in self.get_available_kabis():
346322
configs.append(
@@ -1881,11 +1857,7 @@ def setup_config_options(cls, kernel_only_target=False, install_directory_help=N
18811857
use_upstream_llvm=False,
18821858
kernel_only_target=kernel_only_target,
18831859
)
1884-
fpga_targets = (
1885-
*CompilationTargets.ALL_CHERIBSD_RISCV_TARGETS,
1886-
CompilationTargets.CHERIBSD_AARCH64,
1887-
*CompilationTargets.ALL_CHERIBSD_MORELLO_TARGETS
1888-
)
1860+
fpga_targets = CompilationTargets.ALL_CHERIBSD_RISCV_TARGETS
18891861
cls.build_fpga_kernels = cls.add_bool_option(
18901862
"build-fpga-kernels",
18911863
show_help=True,

0 commit comments

Comments
 (0)