From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7368858787350839296 X-Forwarded-Encrypted: i=2; AJvYcCVAwp9XAhfQoPh0iCTYhoR54FXMlbvC1no5UCjjkL8jS9zhZVIdajOp90yBePejECJ2fQ+BLDD9GEwqS1IVmX/n0y2w+IWQ+Y9hVmk= X-Received: by 2002:a05:651c:21a:b0:2ec:4e05:8d99 with SMTP id 38308e7fff4ca-2ee5e6c5e60mr20785141fa.20.1719902483130; Mon, 01 Jul 2024 23:41:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:651c:1188:b0:2ec:5130:5664 with SMTP id 38308e7fff4ca-2ee51e06294ls7884771fa.1.-pod-prod-00-eu; Mon, 01 Jul 2024 23:41:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUYP1l2dZW9NLqsFoqstG4UoVz8OLVEPqham1Ofts/5g4FxQQjl4B1QB/r4avLKdXqJG8SLAYd1L/5sWGgDz+9J2i+CURngWngaCEM= X-Google-Smtp-Source: AGHT+IFcpbPu0nZOCb/lEML0S+D8Gp28rl7dMe9ulXY/5Xlb7m17fapRzzDdj7iWCrfEWrvhkqFh X-Received: by 2002:a2e:8ed8:0:b0:2ec:347a:b020 with SMTP id 38308e7fff4ca-2ee5e37fff2mr19679691fa.12.1719902480494; Mon, 01 Jul 2024 23:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719902480; cv=none; d=google.com; s=arc-20160816; b=gjP4nqi6j7lxBxcc9VPqcla6C6WrPDpUzxATH1LNXLgOX00TZbv4QPTm9lziIUjGJm 79wYf6U9g5pKzkBpGe3f1fFxUzzQ9nfBtTlFwdZgye6VNfnwmLxF+eIxLd0rVOIbQ1lF KYxtQ2HL60rI1NiGy4tH5PHSpj+t4ZoxYDkKC0qu7gdDAdjv8sxLGoWHND42znF+CQaZ 4n7ga963BY+t+3dP+n0Kyv3VthrAO4blAALWFNrd/MeQGmwt10rEsNO/TkApHU28zZZS FYnwUVL41yAM/PT8BwY4lwByCjaoeAtCYKO5FUru4VGsHspDVee6TrnuAwtoTHJlaUce BpeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id; bh=4eZCjuv23Mkkphz0+sk6wcm7jLgIfpctp7xJ499kgJU=; fh=6ePdb0TDT8sODIECLB3vu3BI6ttp9dEprriULZKyDTc=; b=kA1NXPP5EOGwQnXgNFLAFHt0Kh8uFeG1iyglHdQIdYwzDTtn+5f2aq0gFFhdRna1M8 CllLWWsEQzPlviNSoA5FDeLLPubPHt1kKal8ZVs9b0HLOOtrGvMAbTwrSnJZpwsrHdKQ k8LoDcctxc8J3Tb3A5pgzNIE+FRHtCbcv+9GjGs7l3rpnnA3DPxn4SZgwZ0lhLVaAb+E GCDBpPBoyhz9CwWXBKJyqk0hxyO/GvpYIWfjt1rYFRsjRz3Olp9dcSfMqC5PBxbQ6NG3 oERnzWKTLXucgG3WfJlLSqd0vlvDQEk6oOVGYVcNuOCGhLRJCfa8o26lDl+T6LDEUQ4h RbGQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-2ee51332804si1996221fa.0.2024.07.01.23.41.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Jul 2024 23:41:20 -0700 (PDT) Received-SPF: pass (google.com: domain of ubely@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 ubely@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=ubely@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 4626fGq4027661 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 2 Jul 2024 08:41:17 +0200 Message-ID: Subject: Re: [PATCH v5 0/3] kbuild follow-up From: Uladzimir Bely To: Adriaan Schmidt , isar-users@googlegroups.com Cc: jan.kiszka@siemens.com, stefan-koch@siemens.com Date: Tue, 02 Jul 2024 09:41:16 +0300 In-Reply-To: <20240516061320.3015697-1-adriaan.schmidt@siemens.com> References: <20240516061320.3015697-1-adriaan.schmidt@siemens.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (by Flathub.org) MIME-Version: 1.0 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: pu66BJbHCz8Z On Thu, 2024-05-16 at 08:13 +0200, 'Adriaan Schmidt' via isar-users wrote: > Ok, this is indeed a tricky one... >=20 > 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. >=20 > I've tested >=20 > - 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 >=20 > Let me know if one of your use-cases is still missing. >=20 > Also including some fixups (p2-3) brought up in recent reviews on the > ML. >=20 > Adriaan >=20 This might need some additional cosmetic changes. I was debugging other (not related) issues and just noted that the patchset brought some messages bitbake prints during parsing stage, when amd64/arm64 targets (having "compat" alternative) are selected: ``` beagleplay, hikey: NOTE: Multiple providers are available for linux-mainline-pseudo-native (linux-mainline, linux-mainline-compat) qemuarm64: NOTE: Multiple providers are available for linux-image-arm64 (linux- distro, linux-distro-compat) NOTE: Multiple providers are available for linux-headers-arm64 (linux- distro, linux-distro-compat) qemuamd64, virtualbox: NOTE: Multiple providers are available for linux-image-amd64 (linux- distro, linux-distro-compat) ``` This doesn't make builds fail, but a bit messy. It's possible to suppress the messages by specifying PREFERRED_PROVIDER in machine configs. E.g., for qemuarm64.conf: ``` PREFERRED_PROVIDER_linux-image-${KERNEL_NAME} =3D "linux-distro" PREFERRED_PROVIDER_linux-headers-${KERNEL_NAME} =3D "linux-distro" ``` But is thare probably some better place for this that would not require editing multiple machine configs? --=20 Best regards, Uladzimir.