From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7368858787350839296 X-Received: by 2002:a2e:81d6:0:b0:2e4:45a6:cdcf with SMTP id 38308e7fff4ca-2e5205ec95bmr129727971fa.43.1715840007701; Wed, 15 May 2024 23:13:27 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:3311:0:b0:2e2:bb0f:38c8 with SMTP id 38308e7fff4ca-2e4b6e5651dls2439741fa.1.-pod-prod-09-eu; Wed, 15 May 2024 23:13:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWeSqPT21qIeL+KOLJcCAPOBlKCb814K4v18UE75+BT07Fk7CGZiidkR+FAtmscAWZQhKK X-Received: by 2002:a2e:7306:0:b0:2d8:b2e:7bf3 with SMTP id 38308e7fff4ca-2e51f263691mr113345461fa.0.1715840005300; Wed, 15 May 2024 23:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715840005; cv=none; d=google.com; s=arc-20160816; b=WW69atVWp+4LlQn4W8WkUEZ+5Qp2Qjs6kobe5s4X7TyUo2JzO8uj+f0W22Upu8t6LK 4ccEy3QTlTG+7ArWq4ZjhLE0QhAngzNM3jgc7MzWdKU9rc6tLFp4e3ZgV0AEAogq5Sdf tpk8md7exJypij+JNXMdx4wLgwzaoF2HHligkAK98s36rJpGZjDbo+g5VEYco2XO/VCx kpIuVVt0goo0sPhSEF9uGKG9KqrUUB5CmOmOf/ewgsr761BAvH9PszzKakkCyFmNCzx7 wWVE1GYQET+EkAst2Zs61uRfn+0D3Nlan/8d7T2fd09JCVsvFJjE/nOzWArxnaxBiPga 23UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=4IS3k1yeEYtR55I0gwm7hEo26HjyalJLSG0/1VeNRZc=; fh=qxj0qH++O2CSqXuHk1zmqR74UpYndUvoWfavR7y1BqY=; b=wpxZ+LemGneLv7+8JtssSZE9YlUUZzwQEzWlMvHzm0Dr0ZJzzAQKC7sMinz/YlkYfp XkOH5F3+RvIpW6OITSfVcYzro71QaHRUc9eXZ9R/Y70OczuklmxQFt5LsSYe1YiJ2pI9 1VrjifKWSu5bGWrmSonnWBZqF05JqBkBifhgTJyzBxZAfkMdyXyO7PF2j03efLHDmu4L lLSENpqy6TWIB7lwkziM/LHyjSvWyuMIaKLNHZ7dwyL45/TAmWVYAL7zZXBIrqhgiK/r jMb2PXN1/4zEugZ1cUGpEyBf/CGpxn5Ox6ZLWPU9Pkok7f0xjiI0tEoJ26weTwSrH05g 0fdQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=G2WLmOZu; spf=pass (google.com: domain of fm-526363-20240516061324ff8004da2327c005ec-sti9eg@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-20240516061324ff8004da2327c005ec-stI9Eg@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Return-Path: Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net. [185.136.64.227]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-2e4d16228d5si4544511fa.5.2024.05.15.23.13.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 May 2024 23:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-526363-20240516061324ff8004da2327c005ec-sti9eg@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) client-ip=185.136.64.227; Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=G2WLmOZu; spf=pass (google.com: domain of fm-526363-20240516061324ff8004da2327c005ec-sti9eg@rts-flowmailer.siemens.com designates 185.136.64.227 as permitted sender) smtp.mailfrom=fm-526363-20240516061324ff8004da2327c005ec-stI9Eg@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20240516061324ff8004da2327c005ec for ; Thu, 16 May 2024 08:13:24 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=adriaan.schmidt@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc; bh=4IS3k1yeEYtR55I0gwm7hEo26HjyalJLSG0/1VeNRZc=; b=G2WLmOZuM5cQnLsqBg13RsFrPNUuTBlw3bSb1z1KBSHbiNvAGEqN4ZgmyuVfa7rnfSQ0w/ YPPEy0LtLFIx8EX4CNCafThRx78ypbhEMjJAvgm9b6QBNr4gRLxIrQY4+kXQak3psyb2Zkro Ua2EBBtmIn7vmbAbEV6bXF295A4zE=; From: Adriaan Schmidt To: isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, stefan-koch@siemens.com, Adriaan Schmidt Subject: [PATCH v5 0/3] kbuild follow-up Date: Thu, 16 May 2024 08:13:17 +0200 Message-Id: <20240516061320.3015697-1-adriaan.schmidt@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-526363:519-21489:flowmailer X-TUID: N1AcVWr3XydW Ok, this is indeed a tricky one... It's based on the code from Stefan's "[PATCH] linux-module: Support emulated module build with cross-compiled kernel" (replacing that patch), and on the result of staring at dependency graphs with Jan. This mainly addresses corner cases of the refactored kbuild packaging when cross-compiling. I've tested - cross-compiled custom kernel and cross module build - cross-compiled custom kernel and emulated module build - distro kernel and emulated module build - distro kernel and native module build Let me know if one of your use-cases is still missing. Also including some fixups (p2-3) brought up in recent reviews on the ML. Adriaan changes since v4: - Added "inherit multiarch" to linux-distro, so that dummy recipe PROVIDES "-native" packages in native build cases. changes since v3: - (almost) restored the old API, where a module recipe only depends on linux-headers-*. Now it's linux-headers-*-native. - Removed the -native suffix from all PROVIDES and DEPENDS because I realized that those are added automatically by the multiarch logic. Only exception is the pseudo target used to pull in the base variant (which builds the headers) into the native one (which builds the kbuild tools). This still needs to be named "-native". changes since v2: - removed a forgotten line of testing code changes since v1: - always use linux-kbuild-native as build dependency, even for emulated builds, because the multiarch logic will select the correct package Adriaan Schmidt (3): module.inc: fix kbuild dependency linux-custom: use to_boolean when checking ISAR_CROSS_COMPILE kbuildtarget.bbclass: add missing license header meta/recipes-kernel/linux-module/module.inc | 2 +- .../linux/classes/kbuildtarget.bbclass | 5 ++++ meta/recipes-kernel/linux/linux-custom.inc | 27 ++++++++++++------- meta/recipes-kernel/linux/linux-distro.bb | 3 +++ 4 files changed, 27 insertions(+), 10 deletions(-) -- 2.39.2