Message ID | 20210705000951.53766-1-james.hilliard1@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/1] Kconfig: Add HAVE_LIBEXT2FS | expand |
Hi James, On 05.07.21 02:09, James Hilliard wrote: > Allow passing through the environment if libext2fs is available > for the build target. > > Defaults to yes because we do not do any library checking for now. > > Signed-off-by: James Hilliard <james.hilliard1@gmail.com> > --- > Kconfig | 4 ++++ > Makefile.deps | 4 ++++ > fs/Config.in | 5 +++++ > 3 files changed, 13 insertions(+) > > diff --git a/Kconfig b/Kconfig > index ece4537..e129ae5 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -61,6 +61,10 @@ config HAVE_LIBEBGENV > bool > option env="HAVE_LIBEBGENV" > > +config HAVE_LIBEXT2FS > + bool > + option env="HAVE_LIBEXT2FS" > + > config HAVE_LIBZEROMQ > bool > option env="HAVE_LIBZEROMQ" > diff --git a/Makefile.deps b/Makefile.deps > index 13ff29d..fd07c32 100644 > --- a/Makefile.deps > +++ b/Makefile.deps > @@ -62,6 +62,10 @@ ifeq ($(HAVE_LIBEBGENV),) > export HAVE_LIBEBGENV = y > endif > > +ifeq ($(HAVE_LIBEXT2FS),) > +export HAVE_LIBEXT2FS = y > +endif > + > ifeq ($(HAVE_LIBSSL),) > export HAVE_LIBSSL = y > endif > diff --git a/fs/Config.in b/fs/Config.in > index 1a3bc85..682d952 100644 > --- a/fs/Config.in > +++ b/fs/Config.in > @@ -12,6 +12,11 @@ config FAT_FILESYSTEM > config EXT_FILESYSTEM > bool "EXT2 / EXT3 / EXT4 file system creation support" > depends on DISKFORMAT > + depends on HAVE_LIBEXT2FS > default n > help > Enable support for creating EXT file systems. > + > +comment "EXT2 / EXT3 / EXT4 file system creation support needs libext2fs" > + depends on DISKFORMAT > + depends on !HAVE_LIBEXT2FS > Reviewed-by: Stefano Babic <sbabic@denx.de> Best regards, Stefano Babic
diff --git a/Kconfig b/Kconfig index ece4537..e129ae5 100644 --- a/Kconfig +++ b/Kconfig @@ -61,6 +61,10 @@ config HAVE_LIBEBGENV bool option env="HAVE_LIBEBGENV" +config HAVE_LIBEXT2FS + bool + option env="HAVE_LIBEXT2FS" + config HAVE_LIBZEROMQ bool option env="HAVE_LIBZEROMQ" diff --git a/Makefile.deps b/Makefile.deps index 13ff29d..fd07c32 100644 --- a/Makefile.deps +++ b/Makefile.deps @@ -62,6 +62,10 @@ ifeq ($(HAVE_LIBEBGENV),) export HAVE_LIBEBGENV = y endif +ifeq ($(HAVE_LIBEXT2FS),) +export HAVE_LIBEXT2FS = y +endif + ifeq ($(HAVE_LIBSSL),) export HAVE_LIBSSL = y endif diff --git a/fs/Config.in b/fs/Config.in index 1a3bc85..682d952 100644 --- a/fs/Config.in +++ b/fs/Config.in @@ -12,6 +12,11 @@ config FAT_FILESYSTEM config EXT_FILESYSTEM bool "EXT2 / EXT3 / EXT4 file system creation support" depends on DISKFORMAT + depends on HAVE_LIBEXT2FS default n help Enable support for creating EXT file systems. + +comment "EXT2 / EXT3 / EXT4 file system creation support needs libext2fs" + depends on DISKFORMAT + depends on !HAVE_LIBEXT2FS
Allow passing through the environment if libext2fs is available for the build target. Defaults to yes because we do not do any library checking for now. Signed-off-by: James Hilliard <james.hilliard1@gmail.com> --- Kconfig | 4 ++++ Makefile.deps | 4 ++++ fs/Config.in | 5 +++++ 3 files changed, 13 insertions(+)