From patchwork Thu May 16 06:13:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 179 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Thu, 16 May 2024 08:13:35 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f187.google.com (mail-lj1-f187.google.com [209.85.208.187]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 44G6DYqr008700 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 16 May 2024 08:13:34 +0200 Received: by mail-lj1-f187.google.com with SMTP id 38308e7fff4ca-2e2f739decasf68084641fa.2 for ; Wed, 15 May 2024 23:13:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715840008; cv=pass; d=google.com; s=arc-20160816; b=gN2ieU/8y/gHta+9vz3GEtp1uEDa/XM6BoxD2ALyyNmE/MWFvbtWRBuVgCapg3n8KC do2OWDcJPmxeClMSLKh5tGYTe6WhEY/2eLV4lum7k/jAVzGTjYBkBrCI0+zKRLGlw9FG tq2S28piHFomz32g6PN+3DCyDTkVzJQaTTbPGnGHqjfZZxiBHGhvw0Qs/2rc+YoolVQP lzS9vuPvZwiQnpdo8MO8HRwrOqfl6HzNVT+o9DpsljZPwjSIaZL8Q/mzhCCEff2OWhly tt2d6zhxTdTQ309iOYroex4ANjMa8KqBuPvnRd4GX8xFfJbGLu7RTIEm+X0KkTdfKwEQ FNeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/rnRTsmIahyPn/3dNfNQ/RBomJ0bPe9yWc6hGNg257A=; fh=pcjc+H5xknSbNg1rOcmlp/uciV2wulYHrF+Dx8Jh82Q=; b=MRHLt0rz2NzhwKDUkP4+sNku8IGs/dG0LAVaQLRui5IDu+x2P5d5rK15xNq1VjBpzX 63y3yAVY0dRjE0pr42Pu7i4JlXlzbiI8R4SrB/SFMZZlqnJlOeNXz+B4jnCWNgPNl/XG HHFLO290D1GjHlo4pm6br/t7E+lwCh3BVxqlFM8axWLnt1rhlP03ZN9iJin0NuikBIJd du1EKQGlowlskUDeWpmtNuQA8DUItz6yDzmcNfov7FEml952cujoQhY+JavHyQBFTM2Z Gk4aXuir9p/7gTLaNFFNQz/794aeYyO+oL+RwEIM01u7OJZdqcNr9xU9YJvsSOmWX+4M TR8g==; darn=isar-build.org ARC-Authentication-Results: i=2; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1715840008; x=1716444808; darn=isar-build.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=/rnRTsmIahyPn/3dNfNQ/RBomJ0bPe9yWc6hGNg257A=; b=a0DdEbOxEibkcl7TZ3HIpETAK+WD22RHXRlBno3SB1y45x3+4h/Zd4fUDrw5z48MNG 4PKlVOETS4xMs416iATEWpR90WnFcEO48Y2CjtZYDd71+Mgy38SwkZx402CUkhpl/aI6 5gKI+B0l2XHp+8o+DxXacJkNR8H2Z4nfhEyFk9g8HBpb/kmlfaKF/mcP7wp7igrF0sRf tvE0gwaZTJDDa/+FkunFVkXfpEPiwg+VbF4aBuGp3Yi21ebzzf2V2gfM71P2RADEeGVu 7tDkrezRVWZSVn/epwiXxQueljgJWVROH3yT3aLYiIe4LY03CjAWQGucdAAhnrNzZlMv ENYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715840008; x=1716444808; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/rnRTsmIahyPn/3dNfNQ/RBomJ0bPe9yWc6hGNg257A=; b=jtgLhKanA92Ej3sy0ef2axcc75aKIWSAkSNgB8WF/tW0Bz0Jb3qwkWrOYAX3/kCe6r TT8QAw9M53UEwDb/Iz8r2zSRh9QHQG3MUn00aYjEvGektB/y0/BYsa2/3kBPlvBxovnp LTFrndRLxJUwRcoqpzrDABDeT04gPL9T6EIMBExxzw+ERvrWfqLZjH7NWmsj0DbtUqy/ wU+a/kuBJOyniIijGcTzsTL2VkLOElgwF09KkC0ZHCPycAga7b4b3cLhO2hdaGYEWsrG cFSZiiP4Ec4x4KnhMxXJhLN7Z/hSzjnhY6qHkp6aPMSbX2NiCC/OWCU8LwwcmRfSofKk IIPg== X-Forwarded-Encrypted: i=2; AJvYcCUBDb7ajzcH+pzZ2GC7AOnRfNTC1UkI7ULg8SN9iWIm1UwzxWnLgta+JKrMj/hzDATJQkMxN0+w9D5PM/3eFOUtjuunVBA= X-Gm-Message-State: AOJu0YwoA721XeDT8qEBqRNo0fo13GvnK8O5Qg+eKqtDE+JHc7xvGU98 h7hfPWp20IG6jS/taH9ujmO5cWmnmRW/MzroNGoQdYaFm+1jcvXJ X-Google-Smtp-Source: AGHT+IEyrxnCfFtdYBLEOBmRMEouNEg3z/bL88Bi4rc0+dPOzNgHpyWubbUqyOlEAfzMo675uQ6UJw== X-Received: by 2002:a05:651c:2114:b0:2df:76ab:4e69 with SMTP id 38308e7fff4ca-2e5205ec99amr122901551fa.46.1715840007578; 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-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 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; Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20240516061324ff8004da2327c005ec for ; Thu, 16 May 2024 08:13:24 +0200 X-Patchwork-Original-From: "'Adriaan Schmidt' via isar-users" From: "Schmidt, Adriaan" 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 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-526363:519-21489:flowmailer X-Original-Sender: adriaan.schmidt@siemens.com X-Original-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 X-Original-From: Adriaan Schmidt Reply-To: Adriaan Schmidt Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= 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(-)