]> git.baikalelectronics.ru Git - uboot.git/commit
disk: define nullified functions for !PARTITIONS
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 19 Apr 2022 01:01:54 +0000 (10:01 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 23 Apr 2022 20:05:33 +0000 (22:05 +0200)
commitb500b9a122200ae1836d4f19b5995d12eca8efe3
treeab6a2148acd026c90739bbc1a5557f138e8e809d
parent0df87df1049d6778d6a104af0c9227d5207cc419
disk: define nullified functions for !PARTITIONS

Some defconfig enables CMD_PART even if none of any partition table
types (CONFIG_*_PARTITION) are enabled.
This will lead to the size growth in SPL/TPL code since disk/part.c
will be compiled in any way.
We will change disk/Kconfig later so that CONFIG_PARTITIONS is only
enabled when, at least, one of CONFIG_*_PARTITION is enabled.

To make the build work (in particular, "part" command) correctly,
a few functions should be defined as void functions in case of
!CONFIG_PARTITIONS.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
include/part.h