From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7368858787350839296 X-Forwarded-Encrypted: i=2; AJvYcCVFs419Wgkkmygn0BcfV2/b+1bm9aVTyt7iw9VH+NgqF6zVJuPesqsyesCFV5WAnZwLtExjOen6ok2/VlsUx+lDLQ6nPVjn6bA+NTA= X-Received: by 2002:a05:6512:3da9:b0:528:4841:e4a1 with SMTP id 2adb3069b0e04-5284841e5cbmr431707e87.40.1716444506664; Wed, 22 May 2024 23:08:26 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:4c4e:0:b0:520:5261:9cbb with SMTP id 2adb3069b0e04-523e0da8b81ls506412e87.2.-pod-prod-06-eu; Wed, 22 May 2024 23:08:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXonSetshtHyY1bPiL5f0cDJwSNq37KBEt/60Pf3xOoQuIjyks7FSihAw7tE/POEaWM/J9fgQNkfheaiof3hWvlNaZGooHZaOK338A= X-Google-Smtp-Source: AGHT+IFJt9E8eYBPpRSoNJhxpUH7OCGNnqjD7x734GH/PNqe1bf00knZqcMx3ajD9SVwES6ZrTqJ X-Received: by 2002:a05:6512:14c:b0:51d:998e:e0c1 with SMTP id 2adb3069b0e04-526bebb45c5mr2490945e87.13.1716444504427; Wed, 22 May 2024 23:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716444504; cv=none; d=google.com; s=arc-20160816; b=YaCztVP9+DyqgXsjTDjBmrV5RksFfu3KzE5kQsrb44Tinrx1slLZS3CkuM3w+h65v+ l+B75CFGVeswMmQUvaR8It1uRUzjZ8rR7Vd9EwUdyZJ7lNDMmFkidSxH45fdJnOO86Au EY0vUAZeh+VkS2COR/z50DuP5MbPcDWAfSTW3pJY7nsoa1SkQ+p9KfJ4xvAfiRlZvjRm 7OaaCp89SiP1rwlHn+Cv6hwEEI6O+uIJQoyN5R+nI0i8xorP9l0nSRLfOXInj3hcefBL WAsB6uZgY2ZQ/u8HMvMtJ37wkrhM3eUD4KcSTAg8sC8PkhwN/LD+JLJEG7hEoEL8jZlP g01w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id; bh=T7RWbwdO08RmH3ygKoNhSOfKthuQNAk5NZxxx50BJGE=; fh=6ePdb0TDT8sODIECLB3vu3BI6ttp9dEprriULZKyDTc=; b=ADfenDQPmwae+NIs7WLy+kjcvWD+izcHfLBV4yUGrfBsQZrVYNVNmZzja7g4ZnyK76 83YRokEBodWchuEYhlcXLhZ3bFIlA3ScuiPAgxHrKJr0uptR8cWWQL4VsjJSm9ouKy6R rzB/pFWTa8T8xiwnOIki7RoxSO/Fdp4kxxhpGuT5eKQX18QZGv/lGx6Yp6VVzJRLLT7u BG+uSX8G0Yp7T50ekoGHfFXp/B4yK7UotfXiWUXTmRBecpFx9M50R5efL+SMr9LD/c82 Twp1Kitqj7sN75yIGRDLgUYnj9ENGYrytkE5YP+J+uA8eokn/ls/i1gfjwoU4zEK+zq2 ZVWg==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 2adb3069b0e04-521f38d4585si780531e87.10.2024.05.22.23.08.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 May 2024 23:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from [127.0.0.1] (host-80-81-17-52.static.customer.m-online.net [80.81.17.52]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 44N68LFr012620 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 May 2024 08:08:22 +0200 Message-ID: <2b6f1ab2-8c3f-4453-8114-a3c69e5dc498@ilbers.de> Date: Thu, 23 May 2024 09:08:19 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/3] kbuild follow-up Content-Language: en-US, ru-RU To: Adriaan Schmidt , isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, stefan-koch@siemens.com References: <20240516061320.3015697-1-adriaan.schmidt@siemens.com> From: Anton Mikanovich In-Reply-To: <20240516061320.3015697-1-adriaan.schmidt@siemens.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED 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-TUID: A1fT3ly01q58 16/05/2024 09:13, 'Adriaan Schmidt' via isar-users wrote: > 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(-) > Applied to next, thanks.