package/makedumpfile: add optional dependency on snappy
authorAlexander Egorenkov <egorenar-dev@posteo.net>
Sat, 19 Sep 2020 09:13:13 +0000 (11:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 19 Sep 2020 12:48:41 +0000 (14:48 +0200)
Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/makedumpfile/makedumpfile.mk

index 52a054e734e272d0458a0fff02176e143e6ffaf6..ad63e280e89ffd9ac0c0e70e7b474b39407c01ec 100644 (file)
@@ -25,6 +25,11 @@ MAKEDUMPFILE_DEPENDENCIES += lzo
 MAKEDUMPFILE_MAKE_OPTS += USELZO=on
 endif
 
+ifeq ($(BR2_PACKAGE_SNAPPY),y)
+MAKEDUMPFILE_DEPENDENCIES += snappy
+MAKEDUMPFILE_MAKE_OPTS += USESNAPPY=on
+endif
+
 define MAKEDUMPFILE_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
                $(MAKEDUMPFILE_MAKE_OPTS)