aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-08-16 11:29:43 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-08-21 11:47:10 +0200
commitc2cbaa1babcdbde90527f38f41ee8ee42bdefd45 (patch)
tree69e8cc2797608fab729dc77ac6509d79a153de4d
parentd9b061f1f82bc6cdd7771bb84b9ef64ee3a33774 (diff)
downloadbuildroot-c2cbaa1babcdbde90527f38f41ee8ee42bdefd45.tar.gz
buildroot-c2cbaa1babcdbde90527f38f41ee8ee42bdefd45.tar.bz2
libaio: add host variant
Since the bump of lvm2 to 2.02.180 in commit 8e666bf29e762f3c7681a48d0ee350f8396d798f, lvm2 needs libaio. This was properly taken into account for the target lvm2 variant, but not the host lvm2 variant. In order to build the host lvm2, we now need host-libaio, so this patch adds support for building libaio for the host. Part of fixing: http://autobuild.buildroot.net/results/f95dd353c17bdfd00fde6762e58aa32e6830b52b/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/libaio/libaio.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/libaio/libaio.mk b/package/libaio/libaio.mk
index 03029d84d8..76e6937cc2 100644
--- a/package/libaio/libaio.mk
+++ b/package/libaio/libaio.mk
@@ -35,4 +35,13 @@ define LIBAIO_INSTALL_TARGET_CMDS
$(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
endef
+define HOST_LIBAIO_BUILD_CMDS
+ $(HOST_CONFIGURE_OPTS) $(HOST_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define HOST_LIBAIO_INSTALL_CMDS
+ $(HOST_CONFIGURE_OPTS) $(HOST_MAKE_ENV) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))