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

feat(Build): Add Ability to Selectively Introspect Build Variables #931

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

Jake-Carter
Copy link
Contributor

Pull Request Template

Description

Add the make query target. This allows IDEs and scripts to query the value of a specific build variable for a project by also setting QUERY_VARIABLE.

Useful for https://github.com/Analog-Devices-MSDK/MSDKGen/commit/17017774f9e7945a07e09f93f5ef0485287bc2e0

Ex:

~/repos/msdk/Examples/MAX78000/Hello_World (feat/query*) » make query QUERY_VAR=TARGET
Loaded project.mk
TARGET=MAX78000

The output must still be parsed, since other Makefiles might print extra $(info) statements. This could be improved in a future PR that implements some sort of log-level mechanism for suppressing all $(info) output.

@Jake-Carter Jake-Carter merged commit 47ac9e5 into analogdevicesinc:main Feb 27, 2024
7 of 8 checks passed
@Jake-Carter Jake-Carter deleted the feat/query branch February 27, 2024 01:22
EricB-ADI pushed a commit that referenced this pull request Aug 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants