public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/7] disk: don't compile in partition support for spl/tpl if not really necessary
@ 2022-04-19  1:01 AKASHI Takahiro
  2022-04-19  1:01 ` [PATCH 1/7] disk: include errno.h explicitly in part.h AKASHI Takahiro
                   ` (6 more replies)
  0 siblings, 7 replies; 19+ messages in thread
From: AKASHI Takahiro @ 2022-04-19  1:01 UTC (permalink / raw)
  To: trini, sjg, xypron.glpk; +Cc: u-boot, AKASHI Takahiro

This is a reworked version of my RFC[1].
When my patch[2] is applied, the size of SPL code on some platform might
exceed the limit of ROM size due to partition support code (disk/*) being
built in even if none of partition table types (CONFIG_*_PARTITION) is
enabled on that particular platform.

This is generally inconvenient and should be fixed.
The patch#7 is a core part to fix the issue and the rest of patches
are to fix related build errors revealed/caused by this change.

[1] https://lists.denx.de/pipermail/u-boot/2022-April/481531.html
[2] https://lists.denx.de/pipermail/u-boot/2022-April/481532.html

Test:
=====
* Azure CI passed[3]

[3] https://dev.azure.com/u-boot/u-boot/_build/results?buildId=4092&view=results


Change history:
===============
v1 (Apr, 18, 2022)
* split the original RFC into a set of patches
* remove hunks against CMD_PART and cortina_presidio-asic-emmc_defconfig
  which are no longer needed.
* use 'imply' rather than 'select' for dependency of PARTITION_UUIDS
  at EFI_LOADER, dropping DOS_PARTITON (patch#5)
* compile efi_disk.c even if BLK without PARTITION (patch#6)

RFC (Apr 15, 2021)
* initial RFC

AKASHI Takahiro (7):
  disk: include errno.h explicitly in part.h
  disk: enable function prototypes in part.h for SPL/TPL
  disk: define nullified functions for !PARTITIONS
  sandbox: move a function prototype
  efi_loader: PARTITION_UUIDS should be optional
  efi_loader: disk: compile efi_disk when CONFIG_BLK
  disk: don't compile in partition support for spl/tpl if not really
    necessary

 disk/Kconfig                     | 37 ++++++++++++++++----------------
 include/part.h                   | 15 ++++++++++---
 include/sandboxblockdev.h        |  2 ++
 lib/efi_loader/Kconfig           |  2 +-
 lib/efi_loader/Makefile          |  2 +-
 lib/efi_loader/efi_device_path.c | 11 +++++++++-
 6 files changed, 45 insertions(+), 24 deletions(-)

-- 
2.33.0


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

end of thread, other threads:[~2022-04-23 20:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-19  1:01 [PATCH 0/7] disk: don't compile in partition support for spl/tpl if not really necessary AKASHI Takahiro
2022-04-19  1:01 ` [PATCH 1/7] disk: include errno.h explicitly in part.h AKASHI Takahiro
2022-04-19  1:01 ` [PATCH 2/7] disk: enable function prototypes in part.h for SPL/TPL AKASHI Takahiro
2022-04-19  1:01 ` [PATCH 3/7] disk: define nullified functions for !PARTITIONS AKASHI Takahiro
2022-04-19  3:09   ` Tom Rini
2022-04-19  4:11     ` AKASHI Takahiro
2022-04-19 12:12       ` Tom Rini
2022-04-20  2:17         ` AKASHI Takahiro
2022-04-20  2:50           ` Tom Rini
2022-04-19  1:01 ` [PATCH 4/7] sandbox: move a function prototype AKASHI Takahiro
2022-04-19  1:01 ` [PATCH 5/7] efi_loader: PARTITION_UUIDS should be optional AKASHI Takahiro
2022-04-20  7:37   ` Heinrich Schuchardt
2022-04-21  0:57     ` AKASHI Takahiro
2022-04-21 13:13       ` Tom Rini
2022-04-19  1:01 ` [PATCH 6/7] efi_loader: disk: compile efi_disk when CONFIG_BLK AKASHI Takahiro
2022-04-20  7:42   ` Heinrich Schuchardt
2022-04-21  0:30     ` AKASHI Takahiro
2022-04-23 20:08       ` Heinrich Schuchardt
2022-04-19  1:01 ` [PATCH 7/7] disk: don't compile in partition support for spl/tpl if not really necessary AKASHI Takahiro

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