2020-09-05 21:47:49 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# makedumpfile
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-05-23 12:35:08 +02:00
|
|
|
MAKEDUMPFILE_VERSION = 1.6.9
|
2020-11-28 10:50:50 +01:00
|
|
|
MAKEDUMPFILE_SITE = $(call github,makedumpfile,makedumpfile,$(MAKEDUMPFILE_VERSION))
|
2020-09-05 21:47:49 +02:00
|
|
|
MAKEDUMPFILE_DEPENDENCIES = bzip2 elfutils xz zlib
|
|
|
|
MAKEDUMPFILE_LICENSE = GPL-2.0
|
|
|
|
MAKEDUMPFILE_LICENSE_FILES = COPYING
|
|
|
|
|
2020-09-10 09:09:05 +02:00
|
|
|
ifeq ($(BR2_powerpc),y)
|
|
|
|
MAKEDUMPFILE_TARGET = powerpc32
|
|
|
|
else
|
|
|
|
MAKEDUMPFILE_TARGET = $(BR2_ARCH)
|
|
|
|
endif
|
|
|
|
|
2020-09-19 14:37:10 +02:00
|
|
|
MAKEDUMPFILE_MAKE_OPTS = \
|
|
|
|
TARGET=$(MAKEDUMPFILE_TARGET) \
|
|
|
|
LINKTYPE=dynamic
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LZO),y)
|
|
|
|
MAKEDUMPFILE_DEPENDENCIES += lzo
|
|
|
|
MAKEDUMPFILE_MAKE_OPTS += USELZO=on
|
|
|
|
endif
|
|
|
|
|
2020-09-19 11:13:13 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_SNAPPY),y)
|
|
|
|
MAKEDUMPFILE_DEPENDENCIES += snappy
|
|
|
|
MAKEDUMPFILE_MAKE_OPTS += USESNAPPY=on
|
|
|
|
endif
|
|
|
|
|
2020-09-05 21:47:49 +02:00
|
|
|
define MAKEDUMPFILE_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
2020-09-19 14:37:10 +02:00
|
|
|
$(MAKEDUMPFILE_MAKE_OPTS)
|
2020-09-05 21:47:49 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define MAKEDUMPFILE_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
|
|
|
|
DESTDIR="$(TARGET_DIR)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|