Support Raspberry Pi OS

This commit is contained in:
orangepi-xunlong
2023-08-17 09:39:58 +08:00
parent 0af822981b
commit 09bb7ec1a0
107 changed files with 2813 additions and 20 deletions

View File

@@ -347,7 +347,7 @@ fi
# "-z ${VAR+x}" allows to check for unset variable
# Technically, someone might want to build a desktop with no additional
# appgroups.
if [[ $BUILD_DESKTOP == "yes" && -z ${DESKTOP_APPGROUPS_SELECTED+x} ]]; then
if [[ $BUILD_DESKTOP == "yes" && -z ${DESKTOP_APPGROUPS_SELECTED+x} && ${RELEASE} != "raspi" ]]; then
options=()
for appgroup_path in "${DESKTOP_APPGROUPS_DIR}/"*; do
@@ -418,6 +418,8 @@ BOOTCONFIG_VAR_NAME=BOOTCONFIG_${BRANCH^^}
if [[ "$RELEASE" =~ ^(xenial|bionic|focal|hirsute|impish|jammy)$ ]]; then
DISTRIBUTION="Ubuntu"
elif [[ "$RELEASE" == raspi ]]; then
DISTRIBUTION="Bullseye"
else
DISTRIBUTION="Debian"
fi
@@ -575,6 +577,7 @@ unset LOG_OUTPUT_FILE
DEBIAN_MIRROR='deb.debian.org/debian'
DEBIAN_SECURTY='security.debian.org/'
UBUNTU_MIRROR='ports.ubuntu.com/'
RASPI_MIRROR='archive.raspberrypi.org/debian/'
if [[ $DOWNLOAD_MIRROR == "china" ]] ; then
@@ -590,6 +593,8 @@ if [[ $DOWNLOAD_MIRROR == "china" ]] ; then
UBUNTU_MIRROR='repo.huaweicloud.com/ubuntu-ports/'
fi
RASPI_MIRROR='mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/'
fi
if [[ $DOWNLOAD_MIRROR == "bfsu" ]] ; then