diff options
author | Baruch Siach <baruch@tkos.co.il> | 2017-02-09 21:50:18 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-09 21:39:15 +0100 |
commit | cc8c12345cf2ff6e154845f89d1ba65ea2bd3f49 (patch) | |
tree | 80f8fec53c1404cfa3f3e65274e27ccd42064b8c /package | |
parent | 037d06f2d7b896f5835e41041dc55f5adabdf310 (diff) |
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 <ps.report@gmx.net>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r-- | package/ddrescue/ddrescue.mk | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/package/ddrescue/ddrescue.mk b/package/ddrescue/ddrescue.mk index 23f03436e..145d0520d 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)) |