[U-Boot] [RFC PATCH 0/1] sunxi board-specific options

Bernhard Nortmann bernhard.nortmann at web.de
Sat Aug 22 13:52:43 CEST 2015


I'm looking for ideas/comments on how to best integrate configuration
tweaks for specific sunxi boards into the U-Boot (build) ecosystem.
An example would be adding U-Boot support for GPIO-driven LEDs (and
the "led" command), which I'm demonstrating here for the Banana Pi.

My current line of thought is: Have sunxi-common.h include a separate
sunxi-boards.h, to prevent pollution of the "master" include (in case
the file later grows to accomodate multiple configurations).
sunxi-boards.h in turn could tweak configuration settings as needed, or
pull in further includes, depending on board-specific definitions.
The latter would probably originate from the boards' *_defconfig files.

Regards, B. Nortmann


Bernhard Nortmann (1):
  sunxi: support board-specific configuration options

 configs/Bananapi_defconfig     |  2 +-
 include/configs/bananapi.h     | 23 +++++++++++++++++++++++
 include/configs/sunxi-boards.h |  5 +++++
 include/configs/sunxi-common.h |  1 +
 4 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 include/configs/bananapi.h
 create mode 100644 include/configs/sunxi-boards.h

-- 
2.4.6



More information about the U-Boot mailing list