Skip to content

OELint: Inconsisten behaviour when including files with variable in name #627

Answered by priv-kweihmann
pasweistorz asked this question in Q&A
Discussion options

You must be logged in to vote

MACHINE expansion is tricky, as it's not a fixed value.
The require here would fail the build if no matching file can be found - which is in itself an error.

My personal take would be to change it to the following

# nooelint: oelint.file.requireinclude
include ${MACHINE}.inc

as include doesn't have that limitation, meaning it skips silently on missing files

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by priv-kweihmann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
wontfix This will not be worked on
2 participants
Converted from issue

This discussion was converted from issue #624 on October 13, 2024 07:13.