[LEDE-DEV] [PATCH v2 2/3] base-files: put board_name into separate file
Mathias Kresin
dev at kresin.me
Wed May 17 06:19:02 PDT 2017
Hey Roman.,
independent of the work done by you, I worked on exactly the same
topic. But I've pushed it a bit further by switching all targets to
the generic boardname function and a few targets to the generic board
detection in basefiles/preinit.
Furthermore I've converted some targets to get the boardname from the
device tree compatible string as suggested by John. Till now I wasn't
comfortable to push it somewhere, but with my latest changes it should
work in theory. You can find the changes at
https://git.lede-project.org/?p=lede/mkresin/staging.git;a=shortlog;h=refs/heads/boarddetection.
What is missing: testing!
2017-05-17 13:49 GMT+02:00 Roman Yeryomin <leroi.lists at gmail.com>:
> Hi John,
>
> the reasoning is that most scripts which need board_name, don't need
> anything else, and those which do need more, they need only a fraction
> of functions.sh
Due to the fact that I had to touch all scripts using the board name,
I feel confident enough to reply here. I don't see any benefit in
moving the board_name function into an extra script. Most of the
scripts include (and require) functions.sh anyway.
I would be happy I've you can review and runtime test the boardname
branch from my staging tree.
Mathias
More information about the Lede-dev
mailing list