mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Antony Pavlov <antonynpavlov@gmail.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH V2] startup: introduce global.endianness variable
Date: Tue, 14 Apr 2020 11:36:00 +0200	[thread overview]
Message-ID: <20200414093600.GE27288@pengutronix.de> (raw)
In-Reply-To: <20200406154404.6bbdb6564dc7db9c4e076e5f@gmail.com>

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@gmail.com> 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2020-04-14  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 12:13 Antony Pavlov
2020-04-06 12:44 ` Antony Pavlov
2020-04-14  9:36   ` Sascha Hauer [this message]
2021-05-11  8:36 [PATCH v2] " Antony Pavlov
2021-05-12  5:36 ` Sascha Hauer

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=20200414093600.GE27288@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=antonynpavlov@gmail.com \
    --cc=barebox@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox