public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/5] tools/env: pass arguments as parameters not global structure
@ 2016-04-19 20:43 Andreas Fenkart
  2016-04-19 20:43 ` [U-Boot] [PATCH v2 1/5] tools/env: pass key as argument to env_aes_cbc_crypt Andreas Fenkart
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andreas Fenkart @ 2016-04-19 20:43 UTC (permalink / raw)
  To: u-boot

u-boot tools can be built as a library (libubootenv.a). Passing arguments
to the library using global structures is a bad interface.

v2:
- fix env_aes_cbc_crypt prototype
- check opts pointer for not NULL

Andreas Fenkart (5):
  tools/env: pass key as argument to env_aes_cbc_crypt
  tools/env: remove 'extern' from function prototype in fw_env.h
  tools/env: fw_printenv pass value_only as argument
  tools/env: compute size of usable area only once
  tools/env: replace global variables by parameter passing

 tools/env/fw_env.c      | 111 ++++++++++++++++++++++++++++--------------------
 tools/env/fw_env.h      |  31 +++++---------
 tools/env/fw_env_main.c |  28 +++++++-----
 3 files changed, 94 insertions(+), 76 deletions(-)

-- 
2.8.0.rc3

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-05-30 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 20:43 [U-Boot] [PATCH v2 0/5] tools/env: pass arguments as parameters not global structure Andreas Fenkart
2016-04-19 20:43 ` [U-Boot] [PATCH v2 1/5] tools/env: pass key as argument to env_aes_cbc_crypt Andreas Fenkart
2016-05-30 17:55   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-04-19 20:43 ` [U-Boot] [PATCH v2 2/5] tools/env: remove 'extern' from function prototype in fw_env.h Andreas Fenkart
2016-05-30 17:55   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-04-19 20:43 ` [U-Boot] [PATCH v2 3/5] tools/env: fw_printenv pass value_only as argument Andreas Fenkart
2016-05-30 17:55   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-04-19 20:43 ` [U-Boot] [PATCH v2 4/5] tools/env: compute size of usable area only once Andreas Fenkart
2016-05-30 17:55   ` [U-Boot] [U-Boot, v2, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox