Skip to contentSkip to conversation

package/makedumpfile: fix passing of make opts and add snappy dep

PATCH New Alexander Egorenkov 2 participants 2 messages Sep 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/makedumpfile: fix passing of make opts and add snappy dep

---
 package/makedumpfile/makedumpfile.mk | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
package/makedumpfile/makedumpfile.mk +6 -1
index 8077664892..9d67853ef5 100644
@@ -15,6 +15,11 @@ MAKEDUMPFILE_DEPENDENCIES += lzo
 MAKEDUMPFILE_MAKE_OPTS += USELZO=on
 endif
 
+ifeq ($(BR2_PACKAGE_SNAPPY),y)
+MAKEDUMPFILE_DEPENDENCIES += snappy
+MAKEDUMPFILE_MAKE_OPTS += USESNAPPY=on
+endif
+
 ifeq ($(BR2_powerpc),y)
 MAKEDUMPFILE_TARGET = powerpc32
 else
@@ -24,7 +29,7 @@ endif
 
 define MAKEDUMPFILE_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
-		TARGET=$(MAKEDUMPFILE_TARGET) LINKTYPE=dynamic
+		$(MAKEDUMPFILE_MAKE_OPTS) TARGET=$(MAKEDUMPFILE_TARGET) LINKTYPE=dynamic
 endef
 
 define MAKEDUMPFILE_INSTALL_TARGET_CMDS
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/makedumpfile: fix passing of make opts and add snappy dep

Hello,

Quoted 1 line · On Sat, 19 Sep 2020 11:13:13 +0200 Alexander Egorenkov…

Since this patch was doing two different things, I split it into two patches, which I applied. I also did two other minor fixes/improvements as separate patches.

See:

5b05b0c82ba835282f5b27eb6427faa5fc6514fd package/makedumpfile: add optional dependency on snappy 301f746629de3c01fa5ad4290c273043a49df69f package/makedumpfile: pass all options through MAKEDUMPFILE_MAKE_OPTS 24ed3fef9d07ae5695cc631600eca421a21330b8 package/makedumpfile: remove consecutive empty lines 660692939cf6bd13fd0c822083f1fd4b0fafca1c package/makedumpfile: fix passing of MAKEDUMPFILE_MAKE_OPTS

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com