forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extensions: rk-panthor: mesa-oibaf +
DEFAULT_OVERLAYS="panthor-gpu"
- I had worked this before AF sent his oneliner, but I forgot to PR - Should be the same, except avoids sadness when trying with the wrong kernel/branch
- Loading branch information
1 parent
4487274
commit 7fe7dc1
Showing
1 changed file
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
declare -g DEFAULT_OVERLAYS=panthor-gpu | ||
# | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (c) 2024 Ricardo Pardini <ricardo@pardini.net> | ||
# This file is a part of the Armbian Build Framework https://github.com/armbian/build/ | ||
# | ||
|
||
# Enables panthor-gpu overlay and oibaf-mesa extension. Only meant for legacy/vendor branches of Rockchip boards. | ||
enable_extension "mesa-oibaf" # Enable OIBAF repo for mainline mesa | ||
|
||
function extension_prepare_config__rk_panthor() { | ||
display_alert "Preparing rk-panthor" "${EXTENSION}" "info" | ||
EXTRA_IMAGE_SUFFIXES+=("-panthor") # Add to the image suffix. # global array | ||
|
||
# Enable panthor overlay by default | ||
declare -g DEFAULT_OVERLAYS="panthor-gpu" | ||
|
||
[[ "${BUILDING_IMAGE}" != "yes" ]] && return 0 | ||
|
||
if [[ "${LINUXFAMILY}" != "rockchip-rk3588" && "${LINUXFAMILY}" != "rk35xx" ]]; then | ||
exit_with_error "${EXTENSION} only works on LINUXFAMILY=rockchip-rk3588/rk35xx, currently on '${LINUXFAMILY}'" | ||
fi | ||
|
||
if [[ "${BRANCH}" != "vendor" ]]; then | ||
exit_with_error "${EXTENSION} only works on BRANCH=vendor, currently on '${BRANCH}'" | ||
fi | ||
} |