mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-10-09 20:06:39 +07:00
Support Raspberry Pi OS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user