Add Raspberry Pi 5 (#4757)

This commit is contained in:
Stefan Agner 2023-12-11 11:14:04 +01:00 committed by GitHub
parent 5cfb45c668
commit a0429179a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 0 deletions

View File

@ -148,6 +148,7 @@ RE_MACHINE = re.compile(
r"|raspberrypi3"
r"|raspberrypi4-64"
r"|raspberrypi4"
r"|raspberrypi5-64"
r"|yellow"
r"|green"
r"|tinker"

View File

@ -5,6 +5,7 @@
"raspberrypi3-64": ["aarch64", "armv7", "armhf"],
"raspberrypi4": ["armv7", "armhf"],
"raspberrypi4-64": ["aarch64", "armv7", "armhf"],
"raspberrypi5-64": ["aarch64", "armv7", "armhf"],
"yellow": ["aarch64", "armv7", "armhf"],
"green": ["aarch64", "armv7", "armhf"],
"tinker": ["armv7", "armhf"],

View File

@ -176,6 +176,7 @@ def test_valid_machine():
"raspberrypi3",
"raspberrypi4-64",
"raspberrypi4",
"raspberrypi5-64",
"tinker",
]
@ -196,6 +197,7 @@ def test_valid_machine():
"!raspberrypi3",
"!raspberrypi4-64",
"!raspberrypi4",
"!raspberrypi5-64",
"!tinker",
]
@ -211,6 +213,7 @@ def test_valid_machine():
"raspberrypi",
"raspberrypi4-64",
"raspberrypi4",
"raspberrypi5-64",
"!tinker",
]

View File

@ -103,6 +103,16 @@ async def test_raspberrypi4_64_arch(coresys, sys_machine, sys_supervisor):
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
async def test_raspberrypi5_64_arch(coresys, sys_machine, sys_supervisor):
"""Test arch for raspberrypi5_64."""
sys_machine.return_value = "raspberrypi5-64"
sys_supervisor.arch = "aarch64"
await coresys.arch.load()
assert coresys.arch.default == "aarch64"
assert coresys.arch.supported == ["aarch64", "armv7", "armhf"]
async def test_yellow_arch(coresys, sys_machine, sys_supervisor):
"""Test arch for yellow."""
sys_machine.return_value = "yellow"