[OpenWrt-Devel] [PATCH 2/3] build: use options to add kernels/dtbs in rootfs

Jonas Gorski jogo at openwrt.org
Tue Aug 12 07:12:50 EDT 2014


On Mon, Aug 11, 2014 at 10:48 PM, Luka Perkov <luka at openwrt.org> wrote:
> On Mon, Aug 11, 2014 at 10:06:27PM +0200, Felix Fietkau wrote:
>> On 2014-08-11 10:47, Luka Perkov wrote:
>> > Use support for options to enable targets and profiles select kernel or dtb
>> > inclusion by default.
>> >
>> > Signed-off-by: Luka Perkov <luka at openwrt.org>
>> What's the rationale for having this stuff as config options in the
>> first place? It seems to me that it makes a lot more sense to control
>> this from the target's image/Makefile.
>
> Here are the reasons:
>
> * Simplified image/Makefile for targets, no extra ifdefs

.. which makes it impossible to build images for both a device needing
it and a device not needing it at the same time.

> * Users can select if they want to include kernel/dtb or not - it is not
> hardcoded in the image/Makefile. For example, if one is building ramdisk
> image only no need to include kernel in rootfs.

As a user, I would not want to have to make that decision. Either the
device needs the kernel in the rootfs, then it should be automatically
included, or it does not, then it shoudn't be there. If it isn't
needed for initramfs kernels, then selection state shouldn't have any
effect on the ramdisk contents.

> * Introduces ground work for including other options which can not be
> built as modules. Such as lxc/kexec support by default.

As I said on 1/3, lxc/kexec is a bad example. An IB built with profile
A selected and an IB built with profile B selected should be able to
create identical* images, regardless of which profile was selected
while building the IB.


Jonas
* apart from time stamps
_______________________________________________
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