Changed module loading to use arch tuple instead of regular target.module

This commit is contained in:
Mario Melara 2016-02-17 14:45:53 -08:00
parent 2a79537ba1
commit 2c20fc2ebf

View File

@ -226,8 +226,8 @@ def set_build_environment_variables(pkg):
pkg_config_dirs.append(pcdir)
path_put_first("PKG_CONFIG_PATH", pkg_config_dirs)
if pkg.spec.target.module_name:
load_module(pkg.spec.target.module_name)
if pkg.spec.architecture.target.module_name:
load_module(pkg.spec.architecture.target.module_name)
def set_module_variables_for_package(pkg):
"""Populate the module scope of install() with some useful functions.