mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
fs: ext4: Fix building ext4 in SPL if write is enabled
If EXT4_WRITE is enabled, write capabilities will be compiled into SPL, but not CRC16. Add an option to enable CRC16 to avoid linker errors. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c39d22c337
commit
44071cd5a8
3 changed files with 8 additions and 0 deletions
|
@ -657,6 +657,7 @@ config SPL_ETH
|
|||
|
||||
config SPL_FS_EXT4
|
||||
bool "Support EXT filesystems"
|
||||
select SPL_CRC16 if EXT4_WRITE
|
||||
help
|
||||
Enable support for EXT2/3/4 filesystems with SPL. This permits
|
||||
U-Boot (or Linux in Falcon mode) to be loaded from an EXT
|
||||
|
|
|
@ -687,6 +687,12 @@ config SPL_CRC8
|
|||
checksum with feedback to produce an 8-bit result. The code is small
|
||||
and it does not require a lookup table (unlike CRC32).
|
||||
|
||||
config SPL_CRC16
|
||||
bool "Support CRC16 in SPL"
|
||||
depends on SPL
|
||||
help
|
||||
Enables CRC16 support in SPL. This is not normally required.
|
||||
|
||||
config CRC32
|
||||
def_bool y
|
||||
help
|
||||
|
|
|
@ -64,6 +64,7 @@ obj-$(CONFIG_TPM_V2) += tpm-v2.o
|
|||
endif
|
||||
|
||||
obj-$(CONFIG_$(SPL_TPL_)CRC8) += crc8.o
|
||||
obj-$(CONFIG_$(SPL_TPL_)CRC16) += crc16.o
|
||||
|
||||
obj-y += crypto/
|
||||
|
||||
|
|
Loading…
Reference in a new issue