mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-07-15 09:30:49 +02:00
modbuild: better support for build modules in overlays
A new configuration file has been added to map human readable overlay
names to the corresponding directory. The overlay can be specified
with the --overlay option. The passed string can be either a name or a
directory. If a name is passed, this name must map to directory in the
configuration file ${PMODULES_ROOT}/config/overlays.conf. The name is
also used as to select the variant files 'files/variants.name'. The
selection of variant files can be overriden with the --system
option.
This commit is contained in:
@@ -764,12 +764,12 @@ pbuild::make_all() {
|
||||
fi
|
||||
|
||||
modulefile_dir=$(join_by '/' \
|
||||
"${overlay}/${GROUP}/${PMODULES_MODULEFILES_DIR}" \
|
||||
"${overlay_dir}/${GROUP}/${PMODULES_MODULEFILES_DIR}" \
|
||||
"${names[@]}" \
|
||||
"${module_name}")
|
||||
modulefile_name="${modulefile_dir}/${module_version}"
|
||||
|
||||
PREFIX="${overlay}/${GROUP}/${module_name}/${module_version}"
|
||||
PREFIX="${overlay_dir}/${GROUP}/${module_name}/${module_version}"
|
||||
local -i i=0
|
||||
for ((i=${#names[@]}-1; i >= 0; i--)); do
|
||||
PREFIX+="/${names[i]}"
|
||||
@@ -1479,7 +1479,7 @@ pbuild.bootstrap() {
|
||||
|
||||
MODULECMD=$(which true)
|
||||
GROUP='Tools'
|
||||
PREFIX="${overlay}/${GROUP}/Pmodules/${PMODULES_VERSION}"
|
||||
PREFIX="${overlay_dir}/${GROUP}/Pmodules/${PMODULES_VERSION}"
|
||||
|
||||
C_INCLUDE_PATH="${PREFIX}/include"
|
||||
CPLUS_INCLUDE_PATH="${PREFIX}/include"
|
||||
|
||||
Reference in New Issue
Block a user