fs: Kconfig: Add a separate config for FS_CBFSRather than using CMD_CBFS for both the filesystem and its command, weshould have a separate option for each. This allows us to enable CBFSsupport wi
fs: Kconfig: Add a separate config for FS_CBFSRather than using CMD_CBFS for both the filesystem and its command, weshould have a separate option for each. This allows us to enable CBFSsupport without the command, if desired, which reduces U-Boot's sizeslightly.Signed-off-by: Simon Glass <sjg@chromium.org>[trini: imply FS_CBFS on SYS_COREBOOT]Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
cbfs: Fix incorrect CBFS file header size being usedThis fixes incorrect filenames in cbfsls output.Signed-off-by: Yaroslav K. <yar444@gmail.com>Reviewed-by: Simon Glass <sjg@chromium.org>[clea
cbfs: Fix incorrect CBFS file header size being usedThis fixes incorrect filenames in cbfsls output.Signed-off-by: Yaroslav K. <yar444@gmail.com>Reviewed-by: Simon Glass <sjg@chromium.org>[clean up checkpatch errors and warnings]Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bitFix the following build errors when building sandbox on x86 32-bit: In file included from fs/cbfs/cbfs.c:8:0: incl
fs: cbfs: Fix build of fs/cbfs/cbfs.c when building u-boot sandbox on x86 32-bitFix the following build errors when building sandbox on x86 32-bit: In file included from fs/cbfs/cbfs.c:8:0: include/malloc.h:364:7: error: conflicting types for 'memset' void* memset(void*, int, size_t); ^ In file included from include/compiler.h:123:0, from include/cbfs.h:10, from fs/cbfs/cbfs.c:7: include/linux/string.h:78:15: note: previous declaration of 'memset' was here extern void * memset(void *,int,__kernel_size_t); ^ In file included from fs/cbfs/cbfs.c:8:0: include/malloc.h:365:7: error: conflicting types for 'memcpy' void* memcpy(void*, const void*, size_t); ^ In file included from include/compiler.h:123:0, from include/cbfs.h:10, from fs/cbfs/cbfs.c:7: include/linux/string.h:81:15: note: previous declaration of 'memcpy' was here extern void * memcpy(void *,const void *,__kernel_size_t); ^ scripts/Makefile.build:280: recipe for target 'fs/cbfs/cbfs.o' failedSigned-off-by: Guillaume GARDET <guillaume.gardet@free.fr>Cc: Tom Rini <trini@konsulko.com>Reviewed-by: Simon Glass <sjg@chromium.org>
fs: descend into sub directories when it is necessarySigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
fs: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Add GPL-2.0+ SPDX-License-Identifier to source filesSigned-off-by: Wolfgang Denk <wd@denx.de>[trini: Fixup common/cmd_io.c]Signed-off-by: Tom Rini <trini@ti.com>
cbfs: Remove mention of CREDITS filesAs requested by Wolfgang, remove references to CREDITS in the CBFSfiles.Signed-off-by: Simon Glass <sjg@chromium.org>
fs: Add a Coreboot Filesystem (CBFS) driver and commandsThis change adds CBFS support and some commands to use it to u-boot. Thesecommands are:cbfsinit - Initialize CBFS support and pull all met
fs: Add a Coreboot Filesystem (CBFS) driver and commandsThis change adds CBFS support and some commands to use it to u-boot. Thesecommands are:cbfsinit - Initialize CBFS support and pull all metadata into RAM. The end ofthe ROM is an optional parameter which defaults to the standard 0xffffffff andcan be used to support multiple CBFSes in a system. The last one set up withcbfsinit is the one that will be used.cbfsinfo - Print information from the CBFS header.cbfsls - Print out the size, type, and name of all the files in the currentCBFS. Recognized types are translated into symbolic names.cbfsload - Load a file from CBFS into memory. Like the similar command for fatfilesystems, you can optionally provide a maximum size.Support for CBFS is compiled in when the CONFIG_CMD_CBFS option is specified.The CBFS driver can also be used programmatically from within u-boot.If u-boot needs something out of CBFS very early before the heap isconfigured, it won't be able to use the normal CBFS support which caches someinformation in memory it allocates from the heap. Thecbfs_file_find_uncached function searches a CBFS instance without touchingthe heap.Signed-off-by: Gabe Black <gabeblack@google.com>Signed-off-by: Stefan Reinauer <reinauer@chromium.org>Signed-off-by: Simon Glass <sjg@chromium.org>