From patchwork Sun Aug 22 20:05:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jos=C3=A9_Luis_Salvador_Rufo?= X-Patchwork-Id: 1519474 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=NKcgjPG6; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gt5xL5pj9z9sW8 for ; Mon, 23 Aug 2021 06:06:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 473A44027E; Sun, 22 Aug 2021 20:06:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VXiBtq6hm2xh; Sun, 22 Aug 2021 20:06:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 73E3340335; Sun, 22 Aug 2021 20:06:38 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 5FE281BF44C for ; Sun, 22 Aug 2021 20:06:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 5A4204017E for ; Sun, 22 Aug 2021 20:06:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sIOHwawiuVLf for ; Sun, 22 Aug 2021 20:06:33 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp2.osuosl.org (Postfix) with ESMTPS id D6F494000B for ; Sun, 22 Aug 2021 20:06:32 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id l6so3020277wmq.5 for ; Sun, 22 Aug 2021 13:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CdiPeIIby37tW+yWqBwCTbo51vQJOp/1Z9j10Ncgos0=; b=NKcgjPG6aEJdEYorO2azP2o6xq3R/3Q2IIAiMgqxLOUwuy0O8+NzwgFDSoIpg9Hlul IIVxQnsuc87ahXKUOeSLBD+P3hB0ycre76yPB32+sBxlVQffdF2cY6y3iD0vHI33i+t1 4cIka8J1uPTcJNKBbZn/8a9Bpg3h9lvaAL1H38N/xlmfNLvSuexLoCTOkbSNcnzFxp/e cw1KlrFQkFOt1i8U6FjzHkMgn1jM5JGDqQ6ZQTPnigFArZaR0EsJ0Ga4kEivn26+KjLS aE6GhZa0/HDSh1OhvBGhkblCUqSSQpfqTQ3uurJ1424uTDmQ929BYQLaPACjhXdpiRLt s5qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=CdiPeIIby37tW+yWqBwCTbo51vQJOp/1Z9j10Ncgos0=; b=HJ0lCSlyd2TKKAg0nJ6hkjWes+TRSweYJBsgGeQ9w9Z0y7xBwCmCD//ryZjXYkPyje Jp4Q3m3W0srspkC04znLWFMSXjP49lR6TCe0xdTCyfGOpRnmpQv2D+iRQBx6rRkDqsUe pSIHTXTgXj86xamv3/rJtWWsP5CAkjO3YAY00p18x4iZWxOr1yng8iFoRNAtqpeARW30 hzMYyahGBuSGQGKrA0sOVH2yYJ7JwiCF8KwCR+Ca0e8ML+5cMGk2sD38XCj/2MgioYjb W8Cj7cqz7PxQfczMN7RoF9gTvnwOWRm331eJOogeA/xUgudPsAQqa83iGfEyIBnazjWM OC9Q== X-Gm-Message-State: AOAM530JsRrMJOs1I+iVbBYY3EC0qdA65F3dnnXjtiPER99CcSdOATq1 82f85utJLecplQA2i+PitX76L1lVjzwyPA== X-Google-Smtp-Source: ABdhPJzcms0rnSL3GjoU64pIMmdzcr1cA24DWI1C5AZ3iLR4ZgcNo8Ga6638myd41Sagdk2GUtPHXg== X-Received: by 2002:a1c:1f8e:: with SMTP id f136mr6798786wmf.132.1629662791026; Sun, 22 Aug 2021 13:06:31 -0700 (PDT) Received: from localhost ([78.30.58.165]) by smtp.gmail.com with ESMTPSA id z2sm10922930wma.45.2021.08.22.13.06.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Aug 2021 13:06:29 -0700 (PDT) From: =?utf-8?q?Jos=C3=A9_Luis_Salvador_Rufo?= To: buildroot@buildroot.org, Romain Naour , Philippe Serbruyns Date: Sun, 22 Aug 2021 22:05:19 +0200 Message-Id: <20210822200519.1757151-1-salvador.joseluis@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/zfs: Fix cross-platform-compilations X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Jos=C3=A9_Luis_Salvador_Rufo?= , "Yann E . MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch fixes the `make` executed from the `kernel.m4` in cross-platform-compilations environments: https://github.com/openzfs/zfs/blob/zfs-2.0.5/config/kernel.m4#L588 Signed-off-by: José Luis Salvador Rufo Tested-by: Romain Naour --- Hello all. @Romain Naour, this patch will fix the buildroot gitlab CI. @Philippe Serbruyns, this patch will fix your issue with your rpi4. package/zfs/zfs.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package/zfs/zfs.mk b/package/zfs/zfs.mk index 3b1afb419a..24064cba82 100644 --- a/package/zfs/zfs.mk +++ b/package/zfs/zfs.mk @@ -13,6 +13,19 @@ ZFS_CPE_ID_PRODUCT = openzfs ZFS_AUTORECONF = YES +# cross compile environment for linux kernel module +ZFS_MAKE_ENV = \ + HOSTCC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS)" \ + ARCH=$(KERNEL_ARCH) \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + DEPMOD=$(HOST_DIR)/sbin/depmod +# `./configure` will execute a `make modules` test case +ZFS_CONF_ENV = \ + HOSTCC="$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS)" \ + ARCH=$(KERNEL_ARCH) \ + CROSS_COMPILE="$(TARGET_CROSS)" \ + DEPMOD=$(HOST_DIR)/sbin/depmod + ZFS_DEPENDENCIES = libaio openssl udev util-linux zlib # sysvinit installs only a commented-out modules-load.d/ config file