Skip to content

Commit 9b08054

Browse files
renatoaguiarJuan RP
authored andcommitted
Add support for Pinebook Pro (pinebookpro)
1 parent cc93f01 commit 9b08054

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

lib.sh.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ set_target_arch_from_platform() {
268268
i686*) XBPS_TARGET_ARCH="i686";;
269269
x86_64*) XBPS_TARGET_ARCH="x86_64";;
270270
GCP*) XBPS_TARGET_ARCH="x86_64";;
271+
pinebookpro*) XBPS_TARGET_ARCH="aarch64";;
271272
*) die "$PROGNAME: Unable to compute target architecture from platform";;
272273
esac
273274

mkimage.sh.in

Lines changed: 7 additions & 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|usbarmory|GCP|*-musl);;
146+
bananapi|beaglebone|cubieboard2|cubietruck|odroid-c2|odroid-u2|rpi|rpi2|rpi3|usbarmory|GCP|pinebookpro|*-musl);;
147147
*) die "The $PLATFORM is not supported, exiting..."
148148
esac
149149

@@ -282,6 +282,12 @@ ci20*)
282282
dd if="${ROOTFS}/boot/u-boot-spl.bin" of="${LOOPDEV}" obs=512 seek=1 >/dev/null 2>&1
283283
dd if="${ROOTFS}/boot/u-boot.img" of="${LOOPDEV}" obs=1K seek=14 >/dev/null 2>&1
284284
;;
285+
pinebookpro*)
286+
dd if="${ROOTFS}/boot/idbloader.img" of="${LOOPDEV}" seek=64 conv=notrunc,fsync >/dev/null 2>&1
287+
dd if="${ROOTFS}/boot/u-boot.itb" of="${LOOPDEV}" seek=16384 conv=notrunc,fsync >/dev/null 2>&1
288+
run_cmd_chroot "${ROOTFS}" "xbps-reconfigure -f pinebookpro-kernel"
289+
cleanup_chroot
290+
;;
285291
GCP*)
286292
# Google Cloud Platform image configuration for Google Cloud
287293
# Engine. The steps below are built in reference to the

mkplatformfs.sh.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Usage: $PROGNAME [options] <platform> <base-tarball>
5151
Supported platforms: i686, x86_64, GCP,
5252
dockstar, bananapi, beaglebone, cubieboard2, cubietruck,
5353
odroid-c2, odroid-u2, rpi, rpi2 (armv7), rpi3 (aarch64),
54-
usbarmory, ci20, pogoplugv4
54+
usbarmory, ci20, pogoplugv4, pinebookpro
5555
5656
Options
5757
-b <syspkg> Set an alternative base-system package (defaults to base-system)
@@ -127,6 +127,7 @@ case "$PLATFORM" in
127127
i686*) PKGS="$BASEPKG" ;;
128128
x86_64*) PKGS="$BASEPKG" ;;
129129
GCP*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
130+
pinebookpro*) PKGS="$BASEPKG ${PLATFORM%-*}-base" ;;
130131
*) die "$PROGNAME: invalid platform!";;
131132
esac
132133

0 commit comments

Comments
 (0)