package/makedumpfile: fix build for powerpc target
authorAlexander Egorenkov <egorenar-dev@posteo.net>
Thu, 10 Sep 2020 07:09:05 +0000 (09:09 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 19 Sep 2020 06:56:14 +0000 (08:56 +0200)
Fixes:
 - http://autobuild.buildroot.net/results/e480858d63285e9bf79a4a96dae802ef2ce605c2

Signed-off-by: Alexander Egorenkov <egorenar-dev@posteo.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/makedumpfile/makedumpfile.mk

index 1876e1158a88afbe50da95b2ffb02beccc49158f..80776648926d869a32644693cc7b2e5763249d0d 100644 (file)
@@ -15,9 +15,16 @@ MAKEDUMPFILE_DEPENDENCIES += lzo
 MAKEDUMPFILE_MAKE_OPTS += USELZO=on
 endif
 
+ifeq ($(BR2_powerpc),y)
+MAKEDUMPFILE_TARGET = powerpc32
+else
+MAKEDUMPFILE_TARGET = $(BR2_ARCH)
+endif
+
+
 define MAKEDUMPFILE_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
-               TARGET=$(BR2_ARCH) LINKTYPE=dynamic
+               TARGET=$(MAKEDUMPFILE_TARGET) LINKTYPE=dynamic
 endef
 
 define MAKEDUMPFILE_INSTALL_TARGET_CMDS