summaryrefslogtreecommitdiffstats
path: root/include/magicvar.h
Commit message (Collapse)AuthorAgeFilesLines
* treewide: mark linker list elements with __ll_elemAhmad Fatoum2024-01-111-3/+4
| | | | | | | | | To fix build with clang while using ASAN, define all linker list elements with __ll_elem. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240103101748.2629927-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* magicvar: retire BAREBOX_MAGICVAR_NAMEDSascha Hauer2020-10-021-4/+0
| | | | | | BAREBOX_MAGICVAR_NAMED is no longer used, drop it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* magicvar: Use __UNIQUE_ID to generate nameSascha Hauer2020-10-021-5/+7
| | | | | | | | BAREBOX_MAGICVAR_NAME only exists to generate a unique identifier. We can generate that using __UNIQUE_ID. With this we can convert users from BAREBOX_MAGICVAR_NAME to the simpler BAREBOX_MAGICVAR macro. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: add SPDX GPL-2.0-only license tags for files without licensing ↵Roland Hieber2020-02-171-0/+1
| | | | | | | | | | | information According to our /README, GPL-2.0-only applies for the whole project except noted otherwise. Signed-off-by: Roland Hieber <rohieb@rohieb.name> Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* magicvar: Add magicvar macro with additional name argumentSascha Hauer2012-05-151-2/+6
| | | | | | | | Currently magicvar fails on variables containing a '.' because we can't use these as C names. Overcome this by adding a new macro which allows to specify a name seperately. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add magicvar commandSascha Hauer2011-11-291-0/+32
The magicvar command gives an overview about all environment variables with a special meaning. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>