All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Clayton Casciato" <ccasciato@21sw.us>
To: proffesionaladdress2@duck.com, yocto@lists.yoctoproject.org
Subject: Re: [yocto] warn if a variable is not used
Date: Tue, 08 Apr 2025 06:18:54 -0700	[thread overview]
Message-ID: <6565.1744118334592061080@lists.yoctoproject.org> (raw)
In-Reply-To: <DC0C7CC4-DC00-435D-AF68-749C79388DDD.1@smtp-inbound1.duck.com>

[-- Attachment #1: Type: text/plain, Size: 582 bytes --]

In case you weren't aware, you can explicitly set default values:
W ??= "x"
A ?= "aval"

https://docs.yoctoproject.org/bitbake/2.0/bitbake-user-manual/bitbake-user-manual-metadata.html#setting-a-default-value

--

Variables can be queried as to how they are set:
$ bitbake-getvar --recipe rpi-u-boot-scr MY_VARIABLE

--

Also note:

> 
> The scripts are executed by /bin/sh , which may not be a bash shell but
> might be something such as dash.
> 

https://docs.yoctoproject.org/bitbake/2.0/bitbake-user-manual/bitbake-user-manual-metadata.html#shell-functions

[-- Attachment #2: Type: text/html, Size: 5086 bytes --]

  parent reply	other threads:[~2025-04-08 13:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-04  8:15 Yocto on AMD Zen target ? Joel GUITTET
2025-04-04  9:17 ` [yocto] " Khem Raj
2025-04-04  9:34   ` Alexander Kanavin
2025-04-04  9:36     ` Joel GUITTET
     [not found] ` <E63C2FBD-D303-4686-B29D-D8306CB27A80.1@smtp-inbound1.duck.com>
2025-04-08  8:23   ` warn if a variable is not used proffesionaladdress2
2025-04-08  8:58   ` proffesionaladdress2
2025-04-08  8:59   ` proffesionaladdress2
2025-04-08 12:56     ` [yocto] " Gyorgy Sarvari
     [not found]       ` <7A2D6367-3CD1-460F-9655-69A8B0D980A7.1@smtp-inbound1.duck.com>
     [not found]         ` <05B9C867-74DD-4A91-9A1B-1BD33302248A.1@smtp-inbound1.duck.com>
2025-04-08 13:09           ` Gyorgy Sarvari
2025-04-08 13:12         ` proffesionaladdress2
2025-04-14 10:58           ` Quentin Schulz
     [not found]             ` <8417B008-2B4E-42D4-B5A6-E7D31B7D6D3D.1@smtp-inbound1.duck.com>
2025-04-14 13:57               ` proffesionaladdress2
2025-04-08 13:18     ` Clayton Casciato [this message]
     [not found]       ` <4C0F3047-0C25-4038-BA0C-FE81491D89E5.1@smtp-inbound1.duck.com>
2025-04-09 15:32         ` proffesionaladdress2

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6565.1744118334592061080@lists.yoctoproject.org \
    --to=ccasciato@21sw.us \
    --cc=proffesionaladdress2@duck.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.