[LEDE-DEV] [PATCH 04/11] build: image.mk: don't install-images for devices not selected

Felix Fietkau nbd at nbd.name
Sun Jan 1 11:27:16 PST 2017


On 2017-01-01 19:07, Yousong Zhou wrote:
> If the default device profile is meant to be used to make a single
> image that can run on all device, then in the case of sunxi, it is not
> possible at least with regard to uboot.
> 
> Or if the default device profile is meant to be selected as the
> default just to implicitly enable all other profiles of the same
> target/subtarget, then again in the case of sunxi it has the
> dependency problem as illustrated above.  Besides, the build system
> can already select multiple devices and enable all profiles (devices)
> with explicit config symbols.  Can this goal of the default profile be
> dropped?
There are targets that have multiple default profiles for all devices
(with just different package selection). Because of that, I think for
now it is better to have one default profile as well.

> My current understanding is that the profiles/*.mk thing is part of
> the old code and is to be replaced with the Device/xxx thing.  Correct
> me if I am wrong ;)
> 
> The conclusion is that for sunxi at least, I do not know how to make a
> default profile or device to make it easier for users.  At the moment
> we have the alphabetically first one selected as the default but that
> is just a little bit not easy for all other devices' users ;)
You can do this like on other targets as well. Make a profile called
'Default', select all packages needed to build images for all devices,
set PROFILES:=Default and it should work.

- Felix




More information about the Lede-dev mailing list