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

Avoid overriding DISTRO_NAME in tn-base.inc #29

Open
lgrosz opened this issue Sep 11, 2024 · 1 comment
Open

Avoid overriding DISTRO_NAME in tn-base.inc #29

lgrosz opened this issue Sep 11, 2024 · 1 comment

Comments

@lgrosz
Copy link

lgrosz commented Sep 11, 2024

Assumedly, tn-base.inc is supposed to be included to support any Technexion board/SOM (correct me if I'm wrong). Setting DISTRO_NAME:tn and performing OVERRIDES_append = ":tn" in this file causes distributions setting DISTRO_NAME expectedly to have the wrong DISTRO_NAME after parsing.

Since tn-base.inc is machine configuration, not distro configuration, can this line be removed from this layer?

@lgrosz
Copy link
Author

lgrosz commented Sep 11, 2024

For now a work around is to perform an unset after including tn-base.inc, but this isn't ideal since it pollutes machine configuration with distro variables:

meta-my-bsp/conf/machine/my-tn-based-machine.conf

# includes not located in expected place
# require conf/machine/include/tn-base.inc
require conf/machine/tn-base.inc

# distro name shouldn't be set by machine configuration
unset DISTRO_NAME:tn

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

1 participant