]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Merge branch '2024-01-18-assorted-fixes'
authorTom Rini <trini@konsulko.com>
Fri, 19 Jan 2024 13:46:47 +0000 (08:46 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 19 Jan 2024 13:46:47 +0000 (08:46 -0500)
- A number of OS boot related cleanups, a number of TI platform
  fixes/cleanups, SMBIOS fixes, tweak get_maintainers.pl to report me
  for more places, fix the "clean the build" pytest and add a bootstage
  pytest, fix PKCS11 URI being omitted in some valid cases, make an iommu
  problem easier to debug on new platforms, nvme and pci improvements,
  refactor image-host code a bit, fix a typo in env setting, add a missing
  dependency for CMD_LICENSE, and correct how we call getchar() in some
  places.

1  2 
env/common.c

diff --combined env/common.c
index beebbd163bfb4eed223793102bb9af415d7bf3b5,26e5cbef53741c72b70f570f4c9aa938ae9d5a07..48a565107c1107d62ebe69e3242bc4e4c40a7587
@@@ -85,7 -85,7 +85,7 @@@ int env_do_env_set(int flag, int argc, 
        name = argv[1];
  
        if (strchr(name, '=')) {
-               printf("## Error: illegal character '='"
+               printf("## Error: illegal character '=' "
                       "in variable name \"%s\"\n", name);
                return 1;
        }
@@@ -351,24 -351,14 +351,24 @@@ bool env_get_autostart(void
   */
  char *env_get_default(const char *name)
  {
 -      if (env_get_from_linear(default_environment, name,
 -                              (char *)(gd->env_buf),
 -                              sizeof(gd->env_buf)) >= 0)
 +      int ret;
 +
 +      ret = env_get_default_into(name, (char *)(gd->env_buf),
 +                                 sizeof(gd->env_buf));
 +      if (ret >= 0)
                return (char *)(gd->env_buf);
  
        return NULL;
  }
  
 +/*
 + * Look up the variable from the default environment and store its value in buf
 + */
 +int env_get_default_into(const char *name, char *buf, unsigned int len)
 +{
 +      return env_get_from_linear(default_environment, name, buf, len);
 +}
 +
  void env_set_default(const char *s, int flags)
  {
        if (s) {