<p></p>
<p>From memory only and without re-checking the current state.</p>
<p>Indeed your first solution is the simplest one and leaves it to the user.</p>
<p>For the second option, the "clean" way of doing it, is moving the USEMODULE that are in the application module in dedicated <code>Makefile.deps</code> and parse them at the dependency time. (same for a Makefile.include IIRC if there should be configuration depending on the dependencies).<br>
I did not do it as refactoring the features and moving dependency parsing before parsing Makefile.include took ages to get reviewed. I may not even have finished it myself, I am not sure.</p>
<p>For the third option, not sure if there are still any side-effects possible for this.<br>
It was at the beginning not possible because of the dependencies/cpu/board/Makefile.include inverse parsing order.<br>
For¬†USEMODULE it could be ok now that dependencies are parsed first if the application makefiles do not do weird things.<br>
But not be for all variables.</p>
<p>For BINDIRBASE and all these variables, I did some poc removing the "override" and ":= abspath" replaced by a check if the variables were absolute but I think never went to proposing the command line API change<br>
<a href="https://github.com/cladmi/RIOT/commits/wip/pr/make/remove_var_override">https://github.com/cladmi/RIOT/commits/wip/pr/make/remove_var_override</a></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/issues/14504#issuecomment-925808208">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYFZKJYUFMP3DE2GQILUDMSHTANCNFSM4OX7JJ3A">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYCUZAGHVRMFQKLMEQDUDMSHTA5CNFSM4OX7JJ3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG4XLMUA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/issues/14504#issuecomment-925808208",
"url": "https://github.com/RIOT-OS/RIOT/issues/14504#issuecomment-925808208",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>