public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] env_embedded related fixes/improvements
@ 2017-07-28 21:46 Thomas Petazzoni
  2017-07-28 21:46 ` [U-Boot] [PATCH 1/3] arch/sh: don't bring common/env_embedded.o into the link Thomas Petazzoni
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2017-07-28 21:46 UTC (permalink / raw)
  To: u-boot

Hello,

Here is a small patch series that fixes the build on SuperH when
CONFIG_ENV_IS_NOWHERE is set (first patch) and then does some
follow-up cleanups in common/env_embedded.c.

However, I would like to ask for a careful review to be made here,
since the whole environment handling logic is still not clear to me.

For example, I don't quite get why common/Makefile looks like this:

obj-$(CONFIG_ENV_IS_IN_DATAFLASH) += env_dataflash.o
obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_eeprom.o
extra-$(CONFIG_ENV_IS_EMBEDDED) += env_embedded.o
obj-$(CONFIG_ENV_IS_IN_EEPROM) += env_embedded.o
extra-$(CONFIG_ENV_IS_IN_FLASH) += env_embedded.o

Why when CONFIG_ENV_IS_IN_FLASH is used, env_embedded is built, but
not integrated at link time ? Is it the responsibility of the linker
script to include it ? Why is it done so ? Very few linker scripts in
U-Boot actually include env_embedded.o.

Thanks,

Thomas

Thomas Petazzoni (3):
  arch/sh: don't bring common/env_embedded.o into the link
  common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV
  common/env_embedded.c: rename PPCENV/PPCTEXT macros

 arch/sh/cpu/u-boot.lds |  4 ----
 common/env_embedded.c  | 23 +++++++----------------
 include/env_default.h  |  2 +-
 3 files changed, 8 insertions(+), 21 deletions(-)

-- 
2.9.4

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

end of thread, other threads:[~2017-08-15 20:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-28 21:46 [U-Boot] [PATCH 0/3] env_embedded related fixes/improvements Thomas Petazzoni
2017-07-28 21:46 ` [U-Boot] [PATCH 1/3] arch/sh: don't bring common/env_embedded.o into the link Thomas Petazzoni
2017-08-02 23:20   ` Nobuhiro Iwamatsu
2017-08-15 20:54     ` Thomas Petazzoni
2017-07-28 21:46 ` [U-Boot] [PATCH 2/3] common/env_embedded.c: drop support for CONFIG_SYS_USE_PPCENV Thomas Petazzoni
2017-08-07 13:57   ` [U-Boot] [U-Boot, " Tom Rini
2017-07-28 21:46 ` [U-Boot] [PATCH 3/3] common/env_embedded.c: rename PPCENV/PPCTEXT macros Thomas Petazzoni
2017-08-07 13:57   ` [U-Boot] [U-Boot, " Tom Rini

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