-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
load board config again to allow overwrite family config #4643
Conversation
@rpardini This is another NEXT topics :) We used to have this override and once we let it go. In NEXT? |
Including a script twice in different stages of the build is raising another level of confusion and hidden dependencies.
For backward compatibility we should check the existence of those functions and log a warning, if those are not there to motivate for according re-factoring of the board scripts over time. |
I don't think spilting into two parts is a good idea.
The first include only require one varable - So if we refactor, we can group the boards in folder which named as its family. So we can solve this problem and make struct more clean. |
Sounds good to me as well - the simpler the better! |
Folks, we've the extensions mechanism to address this and others. build/config/boards/orangepi5.wip Lines 17 to 22 in e9fea8a
Docs (a bit outdated): https://docs.armbian.com/Developer-Guide_Extensions/
|
plus https://docs.armbian.com/Developer-Guide_Extensions-Hooks/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rather move this to extensions.
Still relevant? |
2f381c5
to
15de9cf
Compare
…config Fix media current and edge which hasn't been addressed in #6605
Follow-up PR: #6801 |
Description
The board config is only contain some variable assignments, so it should be safe to be sourced twice. If it doesn't, we can fix easily.
With this, we can overwrite the family config. So we don't need to check
BOARD
in family config ( e.g. the u-boot config ) . Just define it in board config.How Has This Been Tested?
[ ] Build and run test for all board
Checklist: