Message ID | 20210704235503.53211-1-james.hilliard1@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/1] Kconfig: Add HAVE_LIBRSYNC | expand |
Hi James, On 05.07.21 01:55, James Hilliard wrote: > Allow passing through the environment if librsync 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 ++++ > handlers/Config.in | 4 ++++ > 3 files changed, 12 insertions(+) > > diff --git a/Kconfig b/Kconfig > index ece4537..1cd57f0 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -101,6 +101,10 @@ config HAVE_LIBWEBSOCKETS > bool > option env="HAVE_LIBWEBSOCKETS" > > +config HAVE_LIBRSYNC > + bool > + option env="HAVE_LIBRSYNC" > + > config HAVE_URIPARSER > bool > option env="HAVE_URIPARSER" > diff --git a/Makefile.deps b/Makefile.deps > index 13ff29d..e58f308 100644 > --- a/Makefile.deps > +++ b/Makefile.deps > @@ -90,6 +90,10 @@ ifeq ($(HAVE_LIBWEBSOCKETS),) > export HAVE_LIBWEBSOCKETS = y > endif > > +ifeq ($(HAVE_LIBRSYNC),) > +export HAVE_LIBRSYNC = y > +endif > + > ifeq ($(HAVE_URIPARSER),) > export HAVE_URIPARSER = y > endif > diff --git a/handlers/Config.in b/handlers/Config.in > index bca7219..a0cc5a3 100644 > --- a/handlers/Config.in > +++ b/handlers/Config.in > @@ -150,11 +150,15 @@ config RAW > > config RDIFFHANDLER > bool "rdiff" > + depends on HAVE_LIBRSYNC > default n > help > Add support for applying librsync's rdiff patches, > see http://librsync.sourcefrog.net/ > > +comment "rdiff support needs librsync" > + depends on !HAVE_LIBRSYNC > + > config READBACKHANDLER > bool "readback" > depends on HASH_VERIFY > Reviewed-by: Stefano Babic <sbabic@denx.de> Best regards, Stefano Babic
diff --git a/Kconfig b/Kconfig index ece4537..1cd57f0 100644 --- a/Kconfig +++ b/Kconfig @@ -101,6 +101,10 @@ config HAVE_LIBWEBSOCKETS bool option env="HAVE_LIBWEBSOCKETS" +config HAVE_LIBRSYNC + bool + option env="HAVE_LIBRSYNC" + config HAVE_URIPARSER bool option env="HAVE_URIPARSER" diff --git a/Makefile.deps b/Makefile.deps index 13ff29d..e58f308 100644 --- a/Makefile.deps +++ b/Makefile.deps @@ -90,6 +90,10 @@ ifeq ($(HAVE_LIBWEBSOCKETS),) export HAVE_LIBWEBSOCKETS = y endif +ifeq ($(HAVE_LIBRSYNC),) +export HAVE_LIBRSYNC = y +endif + ifeq ($(HAVE_URIPARSER),) export HAVE_URIPARSER = y endif diff --git a/handlers/Config.in b/handlers/Config.in index bca7219..a0cc5a3 100644 --- a/handlers/Config.in +++ b/handlers/Config.in @@ -150,11 +150,15 @@ config RAW config RDIFFHANDLER bool "rdiff" + depends on HAVE_LIBRSYNC default n help Add support for applying librsync's rdiff patches, see http://librsync.sourcefrog.net/ +comment "rdiff support needs librsync" + depends on !HAVE_LIBRSYNC + config READBACKHANDLER bool "readback" depends on HASH_VERIFY
Allow passing through the environment if librsync 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 ++++ handlers/Config.in | 4 ++++ 3 files changed, 12 insertions(+)