Re: [U-Boot] [PATCH v2 1/6] cbfs: Allow CBFS to be used in SPL

2019-08-18 Thread Bin Meng
On Fri, Aug 16, 2019 at 10:42 PM Bin Meng  wrote:
>
> On Thu, Aug 15, 2019 at 9:56 AM Simon Glass  wrote:
> >
> > Add a new Kconfig option to enable CBFS in SPL. This can be useful when
> > the memory-init code is in CBFS.
> >
> > Signed-off-by: Simon Glass 
> > Reviewed-by: Bin Meng 
> > ---
> >
> > Changes in v2:
> > - Fix typo in Kconfig help
> >
> >  fs/Makefile |  1 +
> >  fs/cbfs/Kconfig | 12 
> >  2 files changed, 13 insertions(+)
> >
>
> Tested-by: Bin Meng 

applied to u-boot-x86, thanks!
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v2 1/6] cbfs: Allow CBFS to be used in SPL

2019-08-16 Thread Bin Meng
On Thu, Aug 15, 2019 at 9:56 AM Simon Glass  wrote:
>
> Add a new Kconfig option to enable CBFS in SPL. This can be useful when
> the memory-init code is in CBFS.
>
> Signed-off-by: Simon Glass 
> Reviewed-by: Bin Meng 
> ---
>
> Changes in v2:
> - Fix typo in Kconfig help
>
>  fs/Makefile |  1 +
>  fs/cbfs/Kconfig | 12 
>  2 files changed, 13 insertions(+)
>

Tested-by: Bin Meng 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v2 1/6] cbfs: Allow CBFS to be used in SPL

2019-08-14 Thread Simon Glass
Add a new Kconfig option to enable CBFS in SPL. This can be useful when
the memory-init code is in CBFS.

Signed-off-by: Simon Glass 
Reviewed-by: Bin Meng 
---

Changes in v2:
- Fix typo in Kconfig help

 fs/Makefile |  1 +
 fs/cbfs/Kconfig | 12 
 2 files changed, 13 insertions(+)

diff --git a/fs/Makefile b/fs/Makefile
index 2ed4aeac0e..42e669c40c 100644
--- a/fs/Makefile
+++ b/fs/Makefile
@@ -8,6 +8,7 @@ ifdef CONFIG_SPL_BUILD
 obj-$(CONFIG_FS_LOADER) += fs.o
 obj-$(CONFIG_SPL_FS_FAT) += fat/
 obj-$(CONFIG_SPL_FS_EXT4) += ext4/
+obj-$(CONFIG_SPL_FS_CBFS) += cbfs/
 else
 obj-y  += fs.o
 
diff --git a/fs/cbfs/Kconfig b/fs/cbfs/Kconfig
index 16089547a5..03980d830d 100644
--- a/fs/cbfs/Kconfig
+++ b/fs/cbfs/Kconfig
@@ -6,3 +6,15 @@ config FS_CBFS
  on systems that use coreboot as the first boot-loader and then load
  U-Boot to actually boot the Operating System. You can also enable
  CMD_CBFS to get command-line access.
+
+config SPL_FS_CBFS
+   bool "Enable CBFS (Coreboot Filesystem) in SPL"
+   help
+ Define this to enable support for reading from a Coreboot
+ filesystem. This is a ROM-based filesystem used for accessing files
+ on systems that use coreboot as the first boot-loader and then load
+ U-Boot to actually boot the Operating System.
+
+ Note that most functions in the CBFS API do not work with SPL. Only
+ those which accept a cbfs_priv * can be used, since BSS is not
+ available.
-- 
2.23.0.rc1.153.gdeed80330f-goog

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot