Re: [PATCH V2] startup: introduce global.endianness variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 06, 2020 at 03:44:04PM +0300, Antony Pavlov wrote:
> On Mon,  6 Apr 2020 15:13:25 +0300
> Antony Pavlov <antonynpavlov@xxxxxxxxx> wrote:
> 
> Hi Sascha,
> 
> The global.version (and global.endianness) variable can
> be easely modified by user.
> Can we make it immutable?

There's currently no way to make variables registered with
globalvar_add_* readonly. What you can do is:

	dev_add_param_fixed(&global_device, "version", UTS_RELEASE);

It would be nice to have a little globalvar_add_fixed() function which
does that. Besides the endianess it would be good to use it for the
version string as well.

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux