Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using CustomTarget as kconfig load() argument #5698

Closed
elmarco opened this issue Jul 23, 2019 · 3 comments
Closed

Using CustomTarget as kconfig load() argument #5698

elmarco opened this issue Jul 23, 2019 · 3 comments

Comments

@elmarco
Copy link
Contributor

elmarco commented Jul 23, 2019

Hi,

I would like to write something like:

kconfig = import('unstable-kconfig')
ct = custom_target()
config = kconfig.load(ct)

It currently fails with:
ERROR: List item must be one of (<class 'str'>, <class 'mesonbuild.mesonlib.File'>)

@elmarco
Copy link
Contributor Author

elmarco commented Jul 23, 2019

hmm, perhaps this is not possible because kconfig.load() is only meant for meson/configure-time.

@xclaesse
Copy link
Member

Because custom_target() will run at build time, and kconfig needs it at configure time, I think. Try with configure_file() instead.

@elmarco
Copy link
Contributor Author

elmarco commented Jul 24, 2019

I managed to use configure_file(), but I would need #5701 #5702 & #5703

@elmarco elmarco closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants