[OpenWrt-Devel] [PATCH RFC 3/5] target: Add board notion support

Felix Fietkau nbd at openwrt.org
Tue Dec 16 04:15:41 EST 2014


On 2014-12-12 16:21, Maxime Ripard wrote:
> Even though we always build all the board images for a given target, some
> options widely differ from one board to another when it comes to hardware
> configuration.
> 
> Such an option for example is the NAND setup, which depends on the NAND chip
> itself, that obviously varies from one board to another.
> 
> This kind of options used to be declared either globally for one platform,
> which would enforce a fragile default, or through alternate profiles, that
> would result in an unusable image that would still be compiled if we chose the
> wrong one.
> 
> Introduce a new notion of boards, that would be defined in the
> $(PLATFORM_DIR)/boards directory, to set up this kind of board specific
> options, that we always want to be in-use, no matter what profile is used.
> 
> Signed-off-by: Maxime Ripard <maxime.ripard at free-electrons.com>
The current image building code and the various hacks that different
platforms use to match images to profiles is a complete mess.
I've started implementing a new set of templates for declaring images,
which will be simpler, more coherent and will allow better control over
which images will be built with which subtarget/profile. It will also
support parallel building.
I would like to avoid adding more API stuff that depends on the current
bad design. Since this patch seems to be adding nothing but a simple
include statement and a wrapper for appending stuff to a variable, I'd
like to leave it out and open code that stuff in the target image
makefile instead, until the new image code is ready.

- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list