From cc8c12345cf2ff6e154845f89d1ba65ea2bd3f49 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Thu, 9 Feb 2017 21:50:18 +0200 Subject: [PATCH] ddrescue: fix target build ddrescue is not an autotools package. Convert to generic package to make it build correctly for target architecture. Cc: Peter Seiderer Signed-off-by: Baruch Siach Signed-off-by: Thomas Petazzoni --- package/ddrescue/ddrescue.mk | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/package/ddrescue/ddrescue.mk b/package/ddrescue/ddrescue.mk index 23f03436e9..145d0520d6 100644 --- a/package/ddrescue/ddrescue.mk +++ b/package/ddrescue/ddrescue.mk @@ -16,4 +16,20 @@ define DDRESCUE_EXTRACT_CMDS tar --strip-components=1 -C $(@D) $(TAR_OPTIONS) - endef -$(eval $(autotools-package)) +define DDRESCUE_CONFIGURE_CMDS + (cd $(@D); \ + $(TARGET_MAKE_ENV) ./configure \ + --prefix=/usr \ + $(TARGET_CONFIGURE_OPTS) \ + ) +endef + +define DDRESCUE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) +endef + +define DDRESCUE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install +endef + +$(eval $(generic-package)) -- 2.30.2