Hi, If you need to add something to several recipes, you can create a bbclass and make the recipes inherit it.
Ex: SUMMARY = "Enables/disables compile flags for builds" TARGET_CFLAGS:append = "${@ ' -DTEST_ENV' if not d.getVar('RELEASE') else ''}" The else is empty, maybe it is not entirely clear in the example. This kind of approach can be made for any you want. You can make an append of a task and things like that. Then the recipes would only need to have the line: inherit <bbclass_name> Sincerely, Jairo R. Mejia Aponte ________________________________ From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> on behalf of Jocelyn Meyron <jmey...@gmail.com> Sent: 24 October 2024 11:52 AM To: Quentin Schulz <quentin.sch...@cherry.de>; yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> Subject: [EXTERNAL] Re: [yocto] bitbake: enforce variables to be defined? External Message:Use caution before opening links or attachments Thanks Quentin for your answer. I know that I can do that but my question was more to know if there were systematic way to tell BitBake to insert "set -u" in all do_* tasks in my layer. ********************************************************************** DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64109): https://lists.yoctoproject.org/g/yocto/message/64109 Mute This Topic: https://lists.yoctoproject.org/mt/109185755/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-