IDEA: optional fw build

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

IDEA: optional fw build

Post by kamikaze » Thu Jan 19, 2017 1:43 pm

As I see there are always so many fights with MicroPython firmware size growth. That's why some ideas might not pass into codebase.
But how about adding such feature for build process that could define which parts to include into build and which not? For example some projects don't need framebuffer and graphics at all. Some do not need wifi. Some others do not need something else but need graphics. Some of them need just one framebuffer mode. It's like Linux kernel`s menuconfig (or command line options at least).
As a result fw build size may decrease even now for most of users.

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: IDEA: optional fw build

Post by deshipu » Thu Jan 19, 2017 3:12 pm


User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: Latvia
Contact:

Re: IDEA: optional fw build

Post by kamikaze » Thu Jan 19, 2017 3:28 pm

deshipu wrote:You mean something like this? https://github.com/micropython/micropyt ... nfigport.h
Yeah, but something more user(and/or script)-friendly. This headerfile could be modified as a result of option processing

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: IDEA: optional fw build

Post by deshipu » Thu Jan 19, 2017 3:44 pm

You can already override those settings by passing options to the make command, I think.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: IDEA: optional fw build

Post by dhylands » Thu Jan 19, 2017 5:47 pm

There are some options that can be modified via make, but most of the options in mpconfigport.h need to come in through your board definition file.

Currently, the simplest way to have a customized build is to create a new board definition.

Post Reply