mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-27 18:13:08 +02:00
build-system: define build functions in default config
This commit is contained in:
@@ -540,6 +540,10 @@ declare -A Yaml_default_config=(
|
|||||||
['use_flags']='' # !!seq
|
['use_flags']='' # !!seq
|
||||||
['use_overlays']='' # !!seq
|
['use_overlays']='' # !!seq
|
||||||
['variant']='' # !!str
|
['variant']='' # !!str
|
||||||
|
['target_funcs:prep']='pbuild::pre_prep pbuild::prep pbuild::post_prep'
|
||||||
|
['target_funcs:configure']='pbuild::pre_configure pbuild::configure pbuild::post_configure'
|
||||||
|
['target_funcs:compile']='pbuild::pre_compile pbuild::compile pbuild::post_compile'
|
||||||
|
['target_funcs:install']='pbuild::pre_install pbuild::install pbuild::post_install'
|
||||||
)
|
)
|
||||||
|
|
||||||
declare -A Yaml_valid_vk_keys=(
|
declare -A Yaml_valid_vk_keys=(
|
||||||
@@ -661,9 +665,6 @@ build_modules_yaml_v1(){
|
|||||||
get_build_functions(){
|
get_build_functions(){
|
||||||
local -n yaml_in="$1"
|
local -n yaml_in="$1"
|
||||||
local -a keys=()
|
local -a keys=()
|
||||||
for key in 'prep' 'configure' 'compile' 'install'; do
|
|
||||||
cfg[target_funcs:${key}]="pbuild::pre_${key} pbuild::${key} pbuild::post_${key}"
|
|
||||||
done
|
|
||||||
readarray -t keys < <( ${yq} -e ".|keys().[]" \
|
readarray -t keys < <( ${yq} -e ".|keys().[]" \
|
||||||
<<<"${yaml_in}" \
|
<<<"${yaml_in}" \
|
||||||
2>/dev/null ) || \
|
2>/dev/null ) || \
|
||||||
|
|||||||
Reference in New Issue
Block a user