Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/zfs: fix autotools crosscompilations
@ 2023-06-08 17:55 José Luis Salvador Rufo
  2023-06-09 19:05 ` Alexander Mukhin
  2023-07-26 21:30 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 8+ messages in thread
From: José Luis Salvador Rufo @ 2023-06-08 17:55 UTC (permalink / raw)
  To: buildroot
  Cc: Alexander Mukhin, Michael Zimmermann,
	José Luis Salvador Rufo, Yann E . MORIN

Signed-off-by: José Luis Salvador Rufo <salvador.joseluis@gmail.com>
---
 package/zfs/zfs.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/zfs/zfs.mk b/package/zfs/zfs.mk
index 97e9442cf8..e99413e611 100644
--- a/package/zfs/zfs.mk
+++ b/package/zfs/zfs.mk
@@ -58,6 +58,14 @@ else
 ZFS_CONF_OPTS += --disable-pam
 endif
 
+# Sets the environment for the `make` that will be run ZFS autotools checks.
+ZFS_CONF_ENV += \
+	ARCH=$(KERNEL_ARCH) \
+	CROSS_COMPILE="$(TARGET_CROSS)"
+ZFS_MAKE_ENV += \
+	ARCH=$(KERNEL_ARCH) \
+	CROSS_COMPILE="$(TARGET_CROSS)"
+
 # ZFS userland tools are unfunctional without the Linux kernel modules.
 ZFS_MODULE_SUBDIRS = \
 	module/avl \
-- 
2.41.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-11-30  8:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-08 17:55 [Buildroot] [PATCH] package/zfs: fix autotools crosscompilations José Luis Salvador Rufo
2023-06-09 19:05 ` Alexander Mukhin
2023-06-12 17:57   ` Arnout Vandecappelle via buildroot
2023-07-26 21:30 ` Thomas Petazzoni via buildroot
2023-11-12 22:11   ` [Buildroot] [PATCH] package/zfs: fix zfs autotools cross-compilation José Luis Salvador Rufo
2023-11-26 16:21     ` Yann E. MORIN
2023-11-30  8:17     ` Peter Korsgaard
2023-11-12 22:17   ` [Buildroot] [PATCH] package/zfs: fix autotools crosscompilations José Luis Salvador Rufo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox