Skip to content

Commit

Permalink
Add aarch64 build scripts for pi-gen OS image creator
Browse files Browse the repository at this point in the history
  • Loading branch information
awawa-dev committed Sep 25, 2021
1 parent 976e5e5 commit f8ab225
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
4 changes: 4 additions & 0 deletions image_builder/build_v8.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -e

CLEAN=1 ./build.sh -c config_v8
mv deploy/armv8/image*HyperHDR-lite.zip deploy/armv8/SD-card-image-rpi234-aarch64.zip
6 changes: 6 additions & 0 deletions image_builder/config_v8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
IMG_NAME='HyperHDR'
DEPLOY_DIR="${BASE_DIR}/deploy/armv8"
STAGE_LIST='stage0 stage1 stage2 stage-hyperhdr'
TARGET_HOSTNAME='HyperHDR'
APT_PROXY='http://127.0.0.1:3142'
ENABLE_SSH=1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ if [ "$DEPLOY_DIR" != "${DEPLOY_DIR/v7/}" ]; then
wget https://github.com/awawa-dev/HyperHDR/releases/download/v${HYPERHDR_VERSION}/HyperHDR-${HYPERHDR_VERSION}-Linux-armv7l.deb
apt install ./HyperHDR-${HYPERHDR_VERSION}-Linux-armv7l.deb
rm HyperHDR-${HYPERHDR_VERSION}-Linux-armv7l.deb
elif [ "$DEPLOY_DIR" != "${DEPLOY_DIR/v8/}" ]; then
echo 'BUILDING ARM aarch64 RELEASE............................'
wget https://github.com/awawa-dev/HyperHDR/releases/download/v${HYPERHDR_VERSION}/HyperHDR-${HYPERHDR_VERSION}-Linux-aarch64.deb
apt install ./HyperHDR-${HYPERHDR_VERSION}-Linux-aarch64.deb
rm HyperHDR-${HYPERHDR_VERSION}-Linux-aarch64.deb
else
echo 'BUILDING ARM v6 RELEASE............................'
wget https://github.com/awawa-dev/HyperHDR/releases/download/v${HYPERHDR_VERSION}/HyperHDR-${HYPERHDR_VERSION}-Linux-armv6l.deb
Expand All @@ -21,3 +26,7 @@ fi

echo 'Registering HyperHdr service........................'
systemctl -q enable [email protected]

sed -i "s/^#dtparam=spi=on.*/dtparam=spi=on/" /boot/config.txt
sed -i "s/^#hdmi_force_hotplug=1.*/hdmi_force_hotplug=1/" /boot/config.txt

5 changes: 0 additions & 5 deletions image_builder/stage-hyperhdr/00-install-hyperhdr/00-run.sh

This file was deleted.

0 comments on commit f8ab225

Please sign in to comment.