2023-03-09 18:30:40 +01:00
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
|
|
|
|
#
|
|
|
|
|
# This file is a part of the Armbian Build Framework
|
|
|
|
|
# https://github.com/armbian/build/
|
|
|
|
|
#
|
2020-04-27 18:03:48 +02:00
|
|
|
source "${BASH_SOURCE%/*}/include/meson64_common.inc"
|
2020-08-08 17:20:00 +02:00
|
|
|
ASOUND_STATE="asound.state.meson64"
|
2020-04-30 21:08:26 +02:00
|
|
|
CPUMIN=667000
|
2020-11-22 13:47:41 +01:00
|
|
|
CPUMAX=2100000
|
2020-04-30 21:08:26 +02:00
|
|
|
GOVERNOR=ondemand
|
|
|
|
|
|
2021-09-26 20:47:33 +02:00
|
|
|
family_tweaks() {
|
2020-04-27 18:03:48 +02:00
|
|
|
:
|
|
|
|
|
}
|
|
|
|
|
|
2021-07-28 14:12:53 +02:00
|
|
|
uboot_custom_postprocess() {
|
2021-07-07 17:34:40 +02:00
|
|
|
# FIP trees for C4 and HC4 are identical as of 30/06/2021
|
2021-07-28 14:12:53 +02:00
|
|
|
if [[ $BOARD == odroidc4 ]]; then
|
2020-04-27 18:03:48 +02:00
|
|
|
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/odroid-c4 g12a
|
2021-07-28 14:12:53 +02:00
|
|
|
elif [[ $BOARD == odroidhc4 ]]; then
|
2021-07-05 15:05:43 -04:00
|
|
|
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/odroid-hc4 g12a
|
2021-07-28 14:12:53 +02:00
|
|
|
elif [[ $BOARD == khadas-vim3l ]]; then
|
2021-07-05 15:05:43 -04:00
|
|
|
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/khadas-vim3l g12a
|
2022-10-04 10:50:00 +02:00
|
|
|
elif [[ $BOARD == bananapim5 ]]; then
|
2022-10-08 13:18:00 +02:00
|
|
|
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/bananapi-m5 g12a
|
2023-02-12 00:46:58 +01:00
|
|
|
elif [[ $BOARD == bananapim2pro ]]; then
|
|
|
|
|
uboot_g12_postprocess $SRC/cache/sources/amlogic-boot-fip/bananapi-m5 g12a # Attention: bananapim2pro uses the same blobs as bananapim5
|
2021-07-28 14:12:53 +02:00
|
|
|
else
|
|
|
|
|
display_alert "uboot_custom_postprocess meson-sm1" "Unknown BOARD: $BOARD - not using FIP trees" "wrn"
|
2021-07-05 15:05:43 -04:00
|
|
|
fi
|
2020-04-27 18:03:48 +02:00
|
|
|
}
|