lvm2: add host variant
PATCH 1/2 lvm2: add host variant
This is only for the device-mapper library, so a user selectable Config.in.host option isn't needed.
--- package/lvm2/lvm2.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+)
package/lvm2/lvm2.mk +12 -0
@@ -51,4 +51,16 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no endif +HOST_LVM2_CONF_OPTS = \ + --enable-write_install \ + --enable-pkgconfig \ + --disable-cmdlib \ + --disable-dmeventd \ + --disable-applib \ + --disable-fsadm \ + --disable-readline +HOST_LVM2_MAKE_OPTS = device-mapper +HOST_LVM2_INSTALL_OPTS = install_device-mapper + $(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
2.11.0
PATCH 2/2 cryptsetup: add host variant
E.G. for generating dm-verity hashes or dm-crypt data at build time in a post-image script.
--- package/Config.in.host | 1 + package/cryptsetup/Config.in.host | 8 ++++++++ package/cryptsetup/cryptsetup.mk | 10 ++++++++++ 3 files changed, 19 insertions(+) create mode 100644 package/cryptsetup/Config.in.host
package/Config.in.host +1 -0
@@ -6,6 +6,7 @@ menu "Host utilities" source "package/checkpolicy/Config.in.host" source "package/cmake/Config.in.host" source "package/cramfs/Config.in.host" + source "package/cryptsetup/Config.in.host" source "package/dfu-util/Config.in.host" source "package/dos2unix/Config.in.host" source "package/dosfstools/Config.in.host"
package/cryptsetup/Config.in.host new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_HOST_CRYPTSETUP + bool "host-cryptsetup" + select BR2_PACKAGE_HOST_UTIL_LINUX + help + This tool helps manipulate dm-crypt and luks partitions for + on-disk encryption. + + https://gitlab.com/cryptsetup/cryptsetup
package/cryptsetup/cryptsetup.mk +10 -0
@@ -28,4 +28,14 @@ else CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel endif +HOST_CRYPTSETUP_DEPENDENCIES = \ + host-pkgconf \ + host-lvm2 \ + host-popt \ + host-util-linux \ + host-openssl + +HOST_CRYPTSETUP_CONF_OPTS = --with-crypto-backend=openssl + $(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 1 line
2.11.0
PATCH 1/2 lvm2: add host variant
In reply to Peter KorsgaardQuoted 4 lines · Peter Korsgaard
This is only for the device-mapper library, so a user selectable Config.in.host option isn't needed.
Signed-off-by Peter Korsgaard <[email protected]>
I was going to apply, but...
Quoted 9 lines
--- package/lvm2/lvm2.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+)package/lvm2/lvm2.mk +0
-0
package/lvm2/lvm2.mk ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) · line 56
Quoted 6 lines
package/lvm2/lvm2.mk +3
-0@@ -51,4 +51,16 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no endif +HOST_LVM2_CONF_OPTS = \ + --enable-write_install \ + --enable-pkgconfig \
... this made me think: shouldn't it depend on host-pkgconf? The target package
depends on host-pkgconf, even though it doesn't depend on anything else (except optionally readline but that doesn't have a .pc file). It's probably OK but I'd like an explanation just to be sure.
Regards,
Arnout
Quoted 11 lines
package/lvm2/lvm2.mk +9
-0+ --disable-cmdlib \ + --disable-dmeventd \ + --disable-applib \ + --disable-fsadm \ + --disable-readline +HOST_LVM2_MAKE_OPTS = device-mapper +HOST_LVM2_INSTALL_OPTS = install_device-mapper + $(eval $(autotools-package)) +$(eval $(host-autotools-package))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH 1/2 lvm2: add host variant
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Arnout" == Arnout Vandecappelle <[email protected]> writes:
Quoted 4 lines · Peter Korsgaard
This is only for the device-mapper library, so a user selectable Config.in.host option isn't needed.
Signed-off-by Peter Korsgaard <[email protected]>I was going to apply, but...
Quoted 12 lines
---
package/lvm2/lvm2.mk| 12 ++++++++++++1 file changed, 12 insertions(+)package/lvm2/lvm2.mk +0
-0@@ -51,4 +51,16 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),)
LVM2_CONF_ENV+= ac_cv_flag_HAVE_PIE=no
endif
Quoted 9 lines
package/lvm2/lvm2.mk ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) · line 56
Quoted 3 lines
package/lvm2/lvm2.mk +3
-0+HOST_LVM2_CONF_OPTS = \ + --enable-write_install \ + --enable-pkgconfig \... this made me think: shouldn't it depend on host-pkgconf? The
target package depends on host-pkgconf, even though it doesn't depend on anything else (except optionally readline but that doesn't have a .pc file). It's probably OK but I'd like an explanation just to be sure.
--enable-pkgconfig is about if lvm2 should install .pc files, not if it should use pkg-config to find dependencies. I had missed the host-pkgconf dependency on the target variant (because of the +=). The device-mapper library doesn't strictly need pkg-config, but yeah, it makes sense to keep in sync with the target version.
I'll add it when applying, thanks!
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 lvm2: add host variant
In reply to Peter KorsgaardQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
This is only for the device-mapper library, so a user selectable Config.in.host option isn't needed.
Signed-off-by Peter Korsgaard <[email protected]>
Committed after adding the host-pkgconf dependency as pointed out by Arnout, thanks.
Quoted 27 lines
--- package/lvm2/lvm2.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+)package/lvm2/lvm2.mk +12
-0@@ -51,4 +51,16 @@ ifeq ($(BR2_TOOLCHAIN_SUPPORTS_PIE),) LVM2_CONF_ENV += ac_cv_flag_HAVE_PIE=no endif +HOST_LVM2_CONF_OPTS = \ + --enable-write_install \ + --enable-pkgconfig \ + --disable-cmdlib \ + --disable-dmeventd \ + --disable-applib \ + --disable-fsadm \ + --disable-readline +HOST_LVM2_MAKE_OPTS = device-mapper +HOST_LVM2_INSTALL_OPTS = install_device-mapper + $(eval $(autotools-package)) +$(eval $(host-autotools-package))Signature · 1 line
2.11.0
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/2 cryptsetup: add host variant
In reply to Peter KorsgaardQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
E.G. for generating dm-verity hashes or dm-crypt data at build time in a post-image script.
Signed-off-by Peter Korsgaard <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard