mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
generate_CODEOWNERS.sh: run post_family_config hooks
This commit is contained in:
10
.github/generate_CODEOWNERS.sh
vendored
10
.github/generate_CODEOWNERS.sh
vendored
@@ -7,6 +7,13 @@ function display_alert() { :; }
|
||||
function enable_extension() { :; }
|
||||
function add_packages_to_image() { :; }
|
||||
|
||||
function run_hook() {
|
||||
local hook_point="$1"
|
||||
while read -r hook_point_function; do
|
||||
"${hook_point_function}"
|
||||
done < <(compgen -A function | grep "^${hook_point}__" | LC_ALL=C.UTF-8 sort)
|
||||
}
|
||||
|
||||
# $1: board config
|
||||
function generate_for_board() {
|
||||
local board_config="$1"
|
||||
@@ -23,6 +30,9 @@ function generate_for_board() {
|
||||
source "${SRC}/config/sources/common.conf"
|
||||
source "${SRC}/config/sources/${ARCH}.conf"
|
||||
|
||||
run_hook "post_family_config"
|
||||
run_hook "post_family_config_branch_${BRANCH,,}"
|
||||
|
||||
[[ -z $LINUXCONFIG ]] && LINUXCONFIG="linux-${LINUXFAMILY}-${BRANCH}"
|
||||
[[ -z $KERNELPATCHDIR ]] && KERNELPATCHDIR="archive/${LINUXFAMILY}-${KERNEL_MAJOR_MINOR}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user