Skip to content

Commit d688ce5

Browse files
committed
Add support for rpi4
and take the split rpi-kernel packages into account, see void-packages/4a02207f57
1 parent 25ddad3 commit d688ce5

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ SCRIPTS += $(SHIN:.sh.in=.sh)
55
DATECODE=$(shell date "+%Y%m%d")
66
SHELL=/bin/bash
77

8-
T_PLATFORMS=rpi{,2,3}{,-musl} beaglebone{,-musl} cubieboard2{,-musl} odroid-c2{,-musl} GCP{,-musl} pinebookpro{,-musl}
8+
T_PLATFORMS=rpi{,2,3,4}{,-musl} beaglebone{,-musl} cubieboard2{,-musl} odroid-c2{,-musl} GCP{,-musl} pinebookpro{,-musl}
99
T_ARCHS=i686 x86_64{,-musl} armv{6,7}l{,-musl} aarch64{,-musl}
1010

11-
T_SBC_IMGS=rpi{,2,3}{,-musl} beaglebone{,-musl} cubieboard2{,-musl} odroid-c2{,-musl} pinebookpro{,-musl}
11+
T_SBC_IMGS=rpi{,2,3,4}{,-musl} beaglebone{,-musl} cubieboard2{,-musl} odroid-c2{,-musl} pinebookpro{,-musl}
1212
T_CLOUD_IMGS=GCP{,-musl}
1313

1414
T_PXE_ARCHS=x86_64{,-musl}

lib.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ set_target_arch_from_platform() {
287287
cubieboard2*|cubietruck*) XBPS_TARGET_ARCH="armv7l";;
288288
odroid-u2*) XBPS_TARGET_ARCH="armv7l";;
289289
odroid-c2*) XBPS_TARGET_ARCH="aarch64";;
290+
rpi4*) XBPS_TARGET_ARCH="aarch64";;
290291
rpi3*) XBPS_TARGET_ARCH="aarch64";;
291292
rpi2*) XBPS_TARGET_ARCH="armv7l";;
292293
rpi*) XBPS_TARGET_ARCH="armv6l";;

mkimage.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fi
143143

144144
# Be absolutely certain the platform is supported before continuing
145145
case "$PLATFORM" in
146-
bananapi|beaglebone|cubieboard2|cubietruck|odroid-c2|odroid-u2|rpi|rpi2|rpi3|GCP|pinebookpro|pinephone|*-musl);;
146+
bananapi|beaglebone|cubieboard2|cubietruck|odroid-c2|odroid-u2|rpi|rpi2|rpi3|rpi4|GCP|pinebookpro|pinephone|*-musl);;
147147
*) die "The $PLATFORM is not supported, exiting..."
148148
esac
149149

mkplatformfs.sh.in

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Usage: $PROGNAME [options] <platform> <base-tarball>
5050
5151
Supported platforms: i686, x86_64, GCP, bananapi, beaglebone,
5252
cubieboard2, cubietruck, odroid-c2, odroid-u2,
53-
rpi, rpi2 (armv7), rpi3 (aarch64), ci20,
53+
rpi, rpi2 (armv7), rpi3 (aarch64), rpi4 (aarch64), ci20,
5454
pinebookpro, pinephone
5555
5656
Options
@@ -117,9 +117,10 @@ case "$PLATFORM" in
117117
cubieboard2*|cubietruck*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
118118
odroid-u2*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
119119
odroid-c2*) PKGS="$BASEPKG ${PLATFORM%-musl}-base" ;;
120-
rpi3*) PKGS="$BASEPKG rpi-base" ;;
121-
rpi2*) PKGS="$BASEPKG rpi-base" ;;
122-
rpi*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
120+
rpi4*) PKGS="$BASEPKG rpi4-base" ;;
121+
rpi3*) PKGS="$BASEPKG rpi3-base" ;;
122+
rpi2*) PKGS="$BASEPKG rpi2-base" ;;
123+
rpi*) PKGS="$BASEPKG rpi-base" ;;
123124
ci20*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
124125
i686*) PKGS="$BASEPKG" ;;
125126
x86_64*) PKGS="$BASEPKG" ;;

release.sh.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ DATECODE=$(date "+%Y%m%d")
66
make
77

88
ARCHS="$(echo x86_64{,-musl} i686 armv{6,7}l{,-musl} aarch64{,-musl})"
9-
PLATFORMS="$(echo rpi{,2,3}{,-musl})"
10-
SBC_IMGS="$(echo rpi{,2,3}{,-musl})"
9+
PLATFORMS="$(echo rpi{,2,3,4}{,-musl})"
10+
SBC_IMGS="$(echo rpi{,2,3,4}{,-musl})"
1111

1212
make rootfs-all ARCHS="$ARCHS" REPOSITORY="$REPOSITORY" DATECODE="$DATECODE"
1313
make platformfs-all PLATFORMS="$PLATFORMS" REPOSITORY="$REPOSITORY" DATECODE="$DATECODE"

0 commit comments

Comments
 (0)