73 lines
2.3 KiB
Plaintext
73 lines
2.3 KiB
Plaintext
# shellcheck shell=bash
|
|
|
|
# Armbian image identity and target.
|
|
BOARD="turing-rk1"
|
|
BRANCH="vendor"
|
|
RELEASE="trixie"
|
|
BUILD_MINIMAL="yes"
|
|
BUILD_DESKTOP="no"
|
|
KERNEL_CONFIGURE="no"
|
|
UBOOT_CONFIGURE="no"
|
|
INSTALL_HEADERS="no"
|
|
EXPERT="yes" # Turing RK1 is an Armbian community-supported board.
|
|
|
|
# Image layout and deterministic build choices.
|
|
ROOTFS_TYPE="ext4"
|
|
EXTRA_ROOTFS_MIB_SIZE="1536"
|
|
COMPRESS_OUTPUTIMAGE="sha,xz"
|
|
IMAGE_XZ_COMPRESSION_RATIO="6"
|
|
NETWORKING_STACK="systemd-networkd"
|
|
SHARE_LOGS="no"
|
|
BETA="no"
|
|
USE_CCACHE="no"
|
|
|
|
# Runtime defaults. The temporary build password is overwritten with an
|
|
# unusable shadow value by customize-image.sh; no password works in the image.
|
|
HOST="rk1-media"
|
|
VENDOR="RK1 Media"
|
|
VENDORURL="https://github.com/armbian/build"
|
|
ROOTPWD="RK1_IMAGE_LOGIN_DISABLED"
|
|
CONSOLE_AUTOLOGIN="no"
|
|
DESKTOP_AUTOLOGIN="no"
|
|
OPENSSHD_REGENERATE_HOST_KEYS="false"
|
|
|
|
# This file is copied with the rest of userpatches by build-image.sh.
|
|
# shellcheck source=source-lock.env
|
|
source "${BASH_SOURCE%/*}/source-lock.env"
|
|
|
|
# The board and family definitions intentionally use moving branches. Override
|
|
# them after those definitions have run while retaining Armbian's matching
|
|
# vendor patch directories.
|
|
function post_family_config__999_rk1_media_pin_boot_sources() {
|
|
[[ "${BOARD}" == "turing-rk1" ]] || exit_with_error "RK1 media config used with the wrong board" "${BOARD}"
|
|
[[ "${BRANCH}" == "vendor" ]] || exit_with_error "RK1 media config requires BRANCH=vendor" "${BRANCH}"
|
|
|
|
declare -g KERNELSOURCE="${RK1_MEDIA_KERNEL_URL}"
|
|
declare -g KERNELBRANCH="commit:${RK1_MEDIA_KERNEL_COMMIT}"
|
|
declare -g KERNEL_MAJOR_MINOR="${RK1_MEDIA_KERNEL_SERIES}"
|
|
declare -g KERNELPATCHDIR="${RK1_MEDIA_KERNEL_PATCHSET}"
|
|
|
|
declare -g BOOTSOURCE="${RK1_MEDIA_UBOOT_URL}"
|
|
declare -g BOOTBRANCH="commit:${RK1_MEDIA_UBOOT_COMMIT}"
|
|
declare -g BOOTPATCHDIR="${RK1_MEDIA_UBOOT_PATCHSET}"
|
|
}
|
|
|
|
function user_config__200_rk1_media_base_packages() {
|
|
[[ "${RELEASE}" == "trixie" ]] || exit_with_error "RK1 media config requires Debian Trixie" "${RELEASE}"
|
|
|
|
add_packages_to_image \
|
|
openssh-server \
|
|
sudo \
|
|
avahi-daemon \
|
|
libnss-mdns \
|
|
unattended-upgrades \
|
|
ca-certificates \
|
|
curl \
|
|
jq
|
|
|
|
# Do not inherit the build host's locale/time zone.
|
|
declare -g DEST_LANG="en_US.UTF-8"
|
|
declare -g TZDATA="Etc/UTC"
|
|
}
|
|
|