Skip to content

Commit 37cef48

Browse files
authored
Merge pull request #196 from endlessm/generic-rpi-image
eib_image: Build generic RPi image for RPi devices
2 parents c6abe9f + d06874a commit 37cef48

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

config/platform/rpi4.ini

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

stages/eib_image

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ create_image() {
204204

205205
# Raspberry Pi's GPU starts the boot process by loading bootloader blobs
206206
# from the first partition which must be VFAT.
207-
if [ "${EIB_PLATFORM:0:3}" == "rpi" ]; then
207+
if [ "${EIB_PLATFORM}" == "rpi" ]; then
208208
# BOOT Partition using EFI System type for RPi firmware
209209
echo "size=512MiB, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
210210
fi
@@ -239,7 +239,7 @@ create_image() {
239239
rootfs_attrs+=("GUID:55")
240240
fi
241241

242-
if [[ "${EIB_PLATFORM:0:3}" == "rpi" ]]; then
242+
if [[ "${EIB_PLATFORM}" == "rpi" ]]; then
243243
# Make u-boot find the bootable partition which is rootfs for Raspberry Pi
244244
rootfs_attrs+=("LegacyBIOSBootable")
245245
fi
@@ -282,7 +282,7 @@ create_image() {
282282
*)
283283
# On ARM disable 64bit ext4 option
284284
ext4_opts="dir_index,^huge_file,^64bit"
285-
if [ "${EIB_PLATFORM:0:3}" == "rpi" ]; then
285+
if [ "${EIB_PLATFORM}" == "rpi" ]; then
286286
boot_loop=${img_loop}p1
287287
root_loop=${img_loop}p2
288288
else
@@ -336,7 +336,7 @@ EOF
336336
"${ROOT}"/boot/boot.scr
337337

338338
case "${EIB_PLATFORM}" in
339-
rpi4)
339+
rpi)
340340
mkfs.vfat ${boot_loop}
341341

342342
# Copy Raspberry Pi's bootloader & device tree blobs

tests/test_image_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_series(make_builder, branch, expected):
6969

7070
@pytest.mark.parametrize('arch,platform,expected', [
7171
('amd64', None, 'amd64'),
72-
('arm64', 'rpi4', 'rpi4'),
72+
('arm64', 'rpi', 'rpi'),
7373
('arm64', None, 'arm64'),
7474
('i386', 'i386', 'i386'),
7575
('i386', None, 'i386'),
@@ -99,15 +99,15 @@ def test_bad_arch(make_builder):
9999
'eos-amd64-amd64-es',
100100
'eos-amd64-amd64-fr',
101101
'eos-amd64-amd64-pt_BR',
102-
'eos-arm64-rpi4-base',
103-
'eos-arm64-rpi4-en',
102+
'eos-arm64-rpi-base',
103+
'eos-arm64-rpi-en',
104104
'eos-arm64-pinebookpro-base',
105105
'eos-arm64-pinebookpro-en',
106106
'eosinstaller-amd64-amd64-base',
107107
]
108108
CUSTOM_TARGETS = [
109109
'eoscustom-amd64-amd64-base',
110-
'eoscustom-arm64-rpi4-base',
110+
'eoscustom-arm64-rpi-base',
111111
]
112112
TEST_VARIANTS = []
113113
for target in RELEASE_TARGETS + CUSTOM_TARGETS:

0 commit comments

Comments
 (0)