Skip to content

Commit b4fb193

Browse files
committed
Merge branch 'master' of github.com:void-linux/void-mklive into new-mklive
2 parents ded5b97 + e060405 commit b4fb193

23 files changed

+235
-163
lines changed

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: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,24 @@ elif [ ! -r "$ROOTFS_TARBALL" ]; then
110110
die "Cannot read rootfs tarball: $ROOTFS_TARBALL"
111111
fi
112112

113+
# Setup the platform variable. Here we want just the name and
114+
# optionally -musl if this is the musl variant.
115+
PLATFORM="${ROOTFS_TARBALL#void-}"
116+
PLATFORM="${PLATFORM%-PLATFORMFS*}"
117+
118+
# Be absolutely certain the platform is supported before continuing
119+
case "$PLATFORM" in
120+
bananapi|beaglebone|cubieboard2|cubietruck|odroid-c2|odroid-u2|rpi|rpi2|rpi3|rpi4|GCP|pinebookpro|pinephone|*-musl);;
121+
*) die "The $PLATFORM is not supported, exiting..."
122+
esac
123+
124+
# Default for bigger boot partion on pinebookpro since it needs to fit
125+
# at least 2 Kernels + initramfs
126+
case "$PLATFORM" in
127+
pinebookpro*)
128+
: "${BOOT_FSSIZE:=256MiB}"
129+
;;
130+
esac
113131
# By default we build all platform images with a 64MiB boot partition
114132
# formated FAT16, and an approximately 1.9GiB root partition formated
115133
# ext4. More exotic combinations are of course possible, but this
@@ -123,11 +141,6 @@ fi
123141
readonly REQTOOLS="sfdisk partx losetup mount truncate mkfs.${BOOT_FSTYPE} mkfs.${ROOT_FSTYPE}"
124142
check_tools
125143

126-
# Setup the platform variable. Here we want just the name and
127-
# optionally -musl if this is the musl variant.
128-
PLATFORM="${ROOTFS_TARBALL#void-}"
129-
PLATFORM="${PLATFORM%-PLATFORMFS*}"
130-
131144
# This is an awful hack since the script isn't using privesc
132145
# mechanisms selectively. This is a TODO item.
133146
if [ "$(id -u)" -ne 0 ]; then
@@ -141,12 +154,6 @@ if [ -z "$FILENAME" ]; then
141154
FILENAME="void-${PLATFORM}-$(date +%Y%m%d).img"
142155
fi
143156

144-
# Be absolutely certain the platform is supported before continuing
145-
case "$PLATFORM" in
146-
bananapi|beaglebone|cubieboard2|cubietruck|odroid-c2|odroid-u2|rpi|rpi2|rpi3|GCP|pinebookpro|pinephone|*-musl);;
147-
*) die "The $PLATFORM is not supported, exiting..."
148-
esac
149-
150157
# Create the base image. This was previously accomplished with dd,
151158
# but truncate is markedly faster.
152159
info_msg "Creating disk image ($IMGSIZE) ..."

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" ;;

packer/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ packer_cache
33
crash.log
44
*.box
55
templates/
6+
cloud-generic

packer/Makefile

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

packer/fragments/base-qemu-glibc64.json

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

packer/fragments/base-vbox-glibc64.json

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

packer/fragments/platform-digitalocean.json

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

packer/fragments/platform-vagrant.json

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

0 commit comments

Comments
 (0)