[LEDE-DEV] [PATCH 2/2] Add script to build common platforms.

Ben Greear greearb at candelatech.com
Fri May 27 06:45:58 PDT 2016



On 05/27/2016 02:46 AM, Karl Palsson wrote:
>
> greearb at candelatech.com wrote:
>> From: Ben Greear <greearb at candelatech.com>
>>
>> The idea is to be able to allow newbies to easily build images
>> for common hardware. These images should be user-friendly,
>> including luci and other tools that may aid debugging and use
>> of the platform.
>>
>> Signed-off-by: Ben Greear <greearb at candelatech.com>
>> ---
>>   buildme.sh                            | 76 +++++++++++++++++++++++++++++++++++
>>   buildme_targets/x86_64/diffconfig.txt | 26 ++++++++++++
>>   2 files changed, 102 insertions(+)
>>   create mode 100755 buildme.sh
>>   create mode 100644 buildme_targets/x86_64/diffconfig.txt
>>
>
>
> While I've written similar scripts for helping colleagues
> bootstrap a build, I'm not entirely convinced that adding more
> piles of shell script to the build tree is necessarily an
> improvement, if the goal is helping people build an image that
> suits them.

My goal is more to have an easy way to build a useful image
that should work for most people.  Lots of people and organizations
have their own forks and scripts, and it seems much of the changes are just
tweaks how to the core project is built.  If we can bring some
of this into the main tree maybe that will help everyone work
closer to upstream code.

Extending the README would help, but I don't think a beginner should
have to go through menuconfig at all.  It can be overwhelming even for
those of us who have seen similar things before.  (Try to select 'igb'
as 'y' for instance, it takes manually enabling multiple obscure other
features before it will even work).

> lede, like openwrt before it, still has large piles of
> undocumented usage methods, only uncovered by digging through
> script after script. Adding more scripts to hide the
> complexity/flexibility/power of some of those other scripts
> doesn't seem like a net gain.

A well commented buildme.sh would be a good place to start understanding
the build process.  At least for me, just finding the other scripts is
often the hardest part...so if buildme.sh is adding a package with a feeds
cmd, then that is a very useful piece of knowledge.

Thanks,
Ben

-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Lede-dev mailing list