generate_CODEOWNERS.sh: run post_family_config hooks

This commit is contained in:
hzy
2025-02-23 22:30:18 +08:00
committed by Igor
parent 342196a432
commit de3185dc30

View File

@@ -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}"