package/makedumpfile: pass all options through MAKEDUMPFILE_MAKE_OPTS
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 19 Sep 2020 12:37:10 +0000 (14:37 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 19 Sep 2020 12:37:10 +0000 (14:37 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/makedumpfile/makedumpfile.mk

index c949af9f71ecb33a5b44db3da3c94675fcfb6259..52a054e734e272d0458a0fff02176e143e6ffaf6 100644 (file)
@@ -10,20 +10,24 @@ MAKEDUMPFILE_DEPENDENCIES = bzip2 elfutils xz zlib
 MAKEDUMPFILE_LICENSE = GPL-2.0
 MAKEDUMPFILE_LICENSE_FILES = COPYING
 
-ifeq ($(BR2_PACKAGE_LZO),y)
-MAKEDUMPFILE_DEPENDENCIES += lzo
-MAKEDUMPFILE_MAKE_OPTS += USELZO=on
-endif
-
 ifeq ($(BR2_powerpc),y)
 MAKEDUMPFILE_TARGET = powerpc32
 else
 MAKEDUMPFILE_TARGET = $(BR2_ARCH)
 endif
 
+MAKEDUMPFILE_MAKE_OPTS = \
+       TARGET=$(MAKEDUMPFILE_TARGET) \
+       LINKTYPE=dynamic
+
+ifeq ($(BR2_PACKAGE_LZO),y)
+MAKEDUMPFILE_DEPENDENCIES += lzo
+MAKEDUMPFILE_MAKE_OPTS += USELZO=on
+endif
+
 define MAKEDUMPFILE_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
-               $(MAKEDUMPFILE_MAKE_OPTS) TARGET=$(MAKEDUMPFILE_TARGET) LINKTYPE=dynamic
+               $(MAKEDUMPFILE_MAKE_OPTS)
 endef
 
 define MAKEDUMPFILE_INSTALL_TARGET_CMDS