[OE-core] [PATCH] native.bbclass: clear MACHINE_FEATURES

Andre McCurdy armccurdy at gmail.com
Thu Mar 23 18:59:09 UTC 2017


On Thu, Mar 23, 2017 at 2:06 AM, Mike Looijmans <mike.looijmans at topic.nl> wrote:
> On 22-03-17 23:47, Andre McCurdy wrote:
>>
>> Try to avoid native recipes accidentally being dependent on
>> MACHINE_FEATURES. This simple change doesn't prevent MACHINE_FEATURES
>> set via MACHINE_FEATURES_BACKFILL sneaking through, but it's better
>> than nothing.
>
> Maybe this would work:
>
> MACHINE_FEATURES_BACKFILL_CONSIDERED = "${MACHINE_FEATURES_BACKFILL}"

I guess it doesn't work if MACHINE_FEATURES_BACKFILL_CONSIDERED is set
elsewhere using _append.

The real solution would probably be to skip backfilling
MACHINE_FEATURES entirely for class-native?

>>
>> Signed-off-by: Andre McCurdy <armccurdy at gmail.com>
>> ---
>>  meta/classes/native.bbclass | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
>> index 6becf82..1919fbc 100644
>> --- a/meta/classes/native.bbclass
>> +++ b/meta/classes/native.bbclass
>> @@ -112,6 +112,7 @@ PKG_CONFIG_SYSTEM_INCLUDE_PATH[unexport] = "1"
>>  LIBCOVERRIDE = ""
>>  CLASSOVERRIDE = "class-native"
>>  MACHINEOVERRIDES = ""
>> +MACHINE_FEATURES = ""
>>
>>  PATH_prepend = "${COREBASE}/scripts/native-intercept:"
>>
>>
>
>
>
> Kind regards,
>
> Mike Looijmans
> System Expert
>
> TOPIC Products
> Materiaalweg 4, NL-5681 RJ Best
> Postbus 440, NL-5680 AK Best
> Telefoon: +31 (0) 499 33 69 79
> E-mail: mike.looijmans at topicproducts.com
> Website: www.topicproducts.com
>
> Please consider the environment before printing this e-mail
>
>
>
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list