From patchwork Fri May 10 10:36:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Schmidt, Adriaan" X-Patchwork-Id: 175 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 10 May 2024 12:37:09 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f57.google.com (mail-lf1-f57.google.com [209.85.167.57]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 44AAb77s010069 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 10 May 2024 12:37:07 +0200 Received: by mail-lf1-f57.google.com with SMTP id 2adb3069b0e04-51f7c8c7d85sf1473857e87.2 for ; Fri, 10 May 2024 03:37:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715337422; cv=pass; d=google.com; s=arc-20160816; b=Wka39vPyLB2+rMPGQSpKCJx447goWKk/4G4zPbMoT+g4jh2bufrR8LMT0p+FmkoVOz JYGolqs9Lbg7asBMP/ZoKlkHB00i2gNBfIRHtLrN9lRjBt3FVT/dspEMwwUKST8YWwJJ bC15oNfWD7M3sg0v+3+ys9FzrVbSGqWMn337wFDv4kHcxviFNhv/o2l8k01tcKyZPaqt epg4YL7FjktcXZ0r3hnAzcdLIcWMjMFaAVG8/mnq4vEIA64Oxgrnr/eXjho1/zw+yUIo CmuWPREfhwudxXDpsJ/Bl3fkCFGLFjyDIxG31rKL7yqp1s7BDBgNCmeASTpnHme331mO ThUA== 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=L2L76PQH9v10ZdafqYlRKjFqbSKioL6T22Up3tM5ntE=; fh=H/1Z6XjUq5gMsQ/tGAk3zzYudrlKePMcXpudOIKzVc8=; b=MnLibJX+GwlcMbm4lAMUM+qkOM9LBj79iuSAAJNm0o6Bs+0U6pUufSsXTb7+Ph+azv bY3Gm/uu1H3/LiXU+GbWWmlax73CwZwxTkID7SlP56qoBAwwTX+ARl3hoqibhnLuiBku FbBczXVkbsljpa/kaE9oXO+LtZwYaqRAP4ox9yggtM+RVGHzKZIMaC7NxVFzfpI0fpEv cUNr0xvsMNclJZrF6PRT5xRHffKvYgfa2N+FFQGW0qZxf/XUHCCMKeSr6IVbJid9VwpU X8Qcxa/xf+phXHI21QDntkWS2GHssdllCPEzsw5QuJv5bXqG5bQEy+/VesA9is33DC0G DTgA==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=RNze4dyc; spf=pass (google.com: domain of fm-526363-202405101036585f894e96af0ca90814-mjoajr@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-526363-202405101036585f894e96af0ca90814-mjoaJr@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=1715337422; x=1715942222; 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=L2L76PQH9v10ZdafqYlRKjFqbSKioL6T22Up3tM5ntE=; b=TX3ARD02dXi6fqpbXruwCpCFiNMXlZxmFd09tWiyEfUIasWJ2XfWzES6O+bJsfegfb 4in9KbSjtbOHSLVrileTgj/xrFvgfjSTuewNl1k38UZjQpq0Ge/G79VGDN6SK+WCwkdE znkkPcRLOjXJsXDRFBkaIxgyY8AHptciN1K3K4hDsyQpHEbSfggPGrU1VyYfkGYST6+q BzCrl/bffAJmpimcvxxn1DlDhcrzbApZQdpDI+mAHfu87fGkc4pBgOwT1BpIQhweyOe5 guu4AaYVOm9W8oMX26j5NMeyuXOr9ycvid5jv5oEoSYe9g2RiIUfDszL4SOw7tGcTpnY 9wnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715337422; x=1715942222; 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=L2L76PQH9v10ZdafqYlRKjFqbSKioL6T22Up3tM5ntE=; b=elcp1UENODl+eoZ6YFIiiD78fl/K6AyiOd1n3LLQPZm/AldaaC/ydFCg1Kgw2EaINy COB5NfIztzLz2vCw4bVTPrXzzGe57UtAU55T/BlntG+e4oZFOSzIuYw122B00ckED7nn cU/VMEpHrW3pejI69D1qnYw5hIUETf+w62v4HzqABQw/59Ucuak+Q9zcbjWygjfnoH3v z07NZRLNE3HfceYpGCsl06hp+Cj4jKIhMMyBOOUk2iElOVfeV6AaN03pgGHoaYYsGbqu xGVvmOFOC9avBBJF9FN3OsxYXCr2MLMm5wpEzA1/ErTc08vjuvC+nMxvaRrswVQO49On 7+UQ== X-Forwarded-Encrypted: i=2; AJvYcCUEqJGXqrVnHFg2ChDQdJ7VPbs5pao+By9/o8260aNsbhj1Da1BMdxOrOoc/koVUXxafuTpF3YL5n9yG6s25fQBy8vjeks= X-Gm-Message-State: AOJu0YwgyimKfBhOutum5ZpvMRXqv7G5nJv1bT5bYCrhoHo0nqDauG0s eJf2x/W/uZPdl6cp9Q+Qr9FJiNDsYLVnIkk4jG65QpWvd4WZF8DO X-Google-Smtp-Source: AGHT+IH2LRMx1RxiBVTBUBH/wQZ9dlML9VqdII0mX7JKXQMcY+kKOSRP149hzVbwHB/IMShbf+W6ng== X-Received: by 2002:a05:6512:12c2:b0:51b:fc6c:cbf6 with SMTP id 2adb3069b0e04-5220fc78168mr1885379e87.16.1715337421517; Fri, 10 May 2024 03:37:01 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:12cc:b0:515:d5dd:7505 with SMTP id 2adb3069b0e04-521e4433cb5ls619366e87.1.-pod-prod-03-eu; Fri, 10 May 2024 03:36:59 -0700 (PDT) X-Received: by 2002:a2e:8ed1:0:b0:2e1:f297:c76d with SMTP id 38308e7fff4ca-2e5203a4af0mr12842261fa.49.1715337419028; Fri, 10 May 2024 03:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1715337419; cv=none; d=google.com; s=arc-20160816; b=Y9gKPa2FDk0jNsE6F/lWIRR7z/TxODtcH5EiZDJ5DESkO81VDUbX0PsS1t6GLal+WX a9Qls63lrmpQk3Gu+L37biTB83GuRzReAdkAjiJXTBro6tXXV4f4StoCBH+6l2ox6rNf FT05clJLVOoh+pgz5fShF0zqJHnF/pKP1vZETOcpHdBJEnYuEsjWqoNLFCWDhTJTUoLQ RAHra+ntdmpFfbP9ToxCVXB/17BRpuVvO/A2tV4P2DPEdYIhYRNWUSFKmYlVu9Ju4ly2 QtqSqqmt/sjXEM0qe4/S5DT5mX8zO7bNUNV3DhyRgSgsQmUNn4wP45h37U6lAvZnUqUD H3UQ== 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=FWLDvmFqBCk96Iz3pLsww7pofiN+6HmbN3Uq2ojEmPs=; fh=qxj0qH++O2CSqXuHk1zmqR74UpYndUvoWfavR7y1BqY=; b=MC0lQzUIOnMi6b3j0IQ6kr0vdtPiMNyMMcT8pOQmH1kgz+ivMSVa/ept1eTjx57t3d c4/+yhRjxjhh72qOSr+c338cmTWg4AWGx4ZH6V23TtsBmRh0R3vZgXnwLBReo6LnrIZ/ ThoJXX9ZAwXxeAfIeoPEsPeWlRdPNiAeu6b7dQdqt3IrcoPCz7o1ZuDzRfY2J84rJBrU 6iCFAtc0rDyUsxG8vBWjFnfsd3QXfYY2HIXFsPymNiFtKQ2VQnGH/EihYKbt/QnWGLfW JcV+HAz0prcd+stwxsYsVYGWC+7/a72L0yrGy9FOHgTmzynfPKcIaT590sEu6CI46uJF Dw8A==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=RNze4dyc; spf=pass (google.com: domain of fm-526363-202405101036585f894e96af0ca90814-mjoajr@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-526363-202405101036585f894e96af0ca90814-mjoaJr@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-2e4cff3d0fcsi990731fa.0.2024.05.10.03.36.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2024 03:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-526363-202405101036585f894e96af0ca90814-mjoajr@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 202405101036585f894e96af0ca90814 for ; Fri, 10 May 2024 12:36:58 +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 v2 0/3] Kbuild follow-up Date: Fri, 10 May 2024 12:36:50 +0200 Message-Id: <20240510103653.3364162-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=RNze4dyc; spf=pass (google.com: domain of fm-526363-202405101036585f894e96af0ca90814-mjoajr@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-526363-202405101036585f894e96af0ca90814-mjoaJr@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?= Based on the Stefan's "[PATCH] linux-module: Support emulated module build with cross-compiled kernel", 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 Let me know if one of your use-cases is still missing. Also including some fixups brought up in recent reviews on the ML. Adriaan 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-isar/recipes-kernel/example-module/example-module.bb | 2 ++ meta/recipes-kernel/linux-module/module.inc | 3 ++- meta/recipes-kernel/linux/classes/kbuildtarget.bbclass | 5 +++++ meta/recipes-kernel/linux/linux-custom.inc | 5 +---- meta/recipes-kernel/linux/linux-distro.bb | 1 + 5 files changed, 11 insertions(+), 5 deletions(-)