Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp390029lqt; Mon, 18 Mar 2024 10:39:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZ95uSdQacfSJYrM5cEOHvfiFeyhbdBoiUHcKKcdEFiKxjIi+CBMqDN/v0zy9+e63HmrfNB/pp8hwOh8MbJHPHatHwYlHrS3teynek3Q== X-Google-Smtp-Source: AGHT+IHqMXvmU/p4vsn3MGKG7TJux7iaNWI24dZYJiCJRaby/pBMQA8mix8zpa3LDdSYeaKntOqN X-Received: by 2002:a05:6358:2249:b0:17e:69d4:ddbb with SMTP id i9-20020a056358224900b0017e69d4ddbbmr8337691rwc.14.1710783558885; Mon, 18 Mar 2024 10:39:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710783558; cv=pass; d=google.com; s=arc-20160816; b=pAr5oT/Rg6pfmxgSbWa0LU0fhWp5f+Xeqkm69bB9akWaKmrMEVIZyYtjL3tNk1hXKL GEDItT8RiGRn1/pdDQhbkoHfMexo5d9gML60I66tjWKzNXcS4xHEMrIBj5Sz77Uz+csc qQfvbvKrEoBF8gNdAWxFH/sRiz/Iob/a1VZE5HkW/Nogqq7LIQabliluncd2Gpi++Yxs Z0avee32L9fIei6aa3Co0lEnXf2o9wEnWuB15e+09i+vIE/0SRlg//eLd4R8Rx0vJEO8 40owPkNKjCIp9xwUuoDavQrZJKCEh4IDCwzunKnffI+NxztmI13yBYHhTO11zZn+Q2Xs qnBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=qXEfVoNPEmSPkbQ//RBEx2k6HLSnNGGkPn5kbQVBBqU=; fh=ShlWV9osGOAzuo2ENSJNnT91b0B/16ueyIWtPnqRZnM=; b=mzYPTeFAWJMULzvUdQaq69giqzeSNQD29zuEicjIHndXs3chJASIYDRjZnwP4Y9lcf qv3fFgJbSw+HhFwjDgbLBsNuKHcWmrSMMxEcQ7rN8svUT1aY2zSqtfiHCGBqaFxwd3Aj S5f0WwrzfPOpMLulSjXQF3lXM6GpdAYf+kmtZoJ28/JBMeXCrRwlVmj6fwGphSFhYM7U NTEenUeLswdj9x1WimrN8l4hLn+0f2817jOtzeafIQWlT2xvFlKS147Daac1TbT3ixR7 zQgqjq6+ZCmsl3UpKOsSPh53IYtFVSJ8T5wHgK1DYBM9aODEdg8Vcjhg8KwjFK7Pu22h Xckg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mPqQq6P9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d23-20020aa78697000000b006e6bfd60715si9334911pfo.18.2024.03.18.10.39.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:39:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mPqQq6P9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-106464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106464-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B5186B22BE3 for ; Mon, 18 Mar 2024 17:36:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B947E5A787; Mon, 18 Mar 2024 17:33:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mPqQq6P9" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD99356470; Mon, 18 Mar 2024 17:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710783237; cv=none; b=qPfSygKMCYJLETOsZQbYasTp3SIXOcGs/PGf0VUX7qhgqpC4ulSaLJ/YeYLuOb6+Y+OENQaAxr3x7ZEA0QgWO78Qq+XgK8+zYqeqUDEy8H7SwEeCFj3PwOD3DokThCaaNdrWdXhynPjhMqfOMMPGTImr8tgwbamJFiJ+bm5/pyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710783237; c=relaxed/simple; bh=qXEfVoNPEmSPkbQ//RBEx2k6HLSnNGGkPn5kbQVBBqU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=T1Ty5YNPd6hZFWpjsEfBlpTajV0hiT+mDupwf5sI7BOnEmD7QLSbqbrlbTcbvwWgmiHXxwKsa4cRx+Cq3mIbPzOaV4TxOX7qjewAZxW8Q1hlncc8rm3eGuFvy6cK4vPYp3GkEE81s+UlzJTDRrwVzQX6Y6Eb+OxbfHJ9GFKlhNs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mPqQq6P9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9371BC433F1; Mon, 18 Mar 2024 17:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710783236; bh=qXEfVoNPEmSPkbQ//RBEx2k6HLSnNGGkPn5kbQVBBqU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mPqQq6P9QDMb6xni6eZgg8K5ypJ6LS75uphp0NGEvV0R9VifF+CDEE3WtlRZrvTAj xrJf8odti7hYQXC7EiBwxs48p8esxZXmDQtloqdLA8BsJnWaSZtvsRKcO9vG9r312M FGUezZ0L99eZYbt+f3TG6M6fJyly0y0XKypMN9Hy0XHx0/TNexJBuG64PLgObN3ycH IfajfwsHgFrXAvYQoRHyy0u+36tRNoV2QyHzzPTNrP2KRXMNBYEemrcS5yBt2uNsUF SOJXortJNRftWuHv5ejfo2zSrz7Xgm2UIOKw1c6UfGhKjgUFrv5CBuiiO7wXX6q6A+ tvIhwOvVxalXw== Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d47a92cfefso62411701fa.1; Mon, 18 Mar 2024 10:33:56 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCV/t3WdRMsO683iAQ/PcidSecPO5QRAjXMRvyo6tssATIGc/FNtCNZeEahdRkMvwKcHCJg9tmcJTamkFhZ27U3SpNP2Sa0nyzxnhcJb X-Gm-Message-State: AOJu0Ywy0IqOLwWHpD5NYuDZvDcPQUEDHOG4Eeb66bMp9rZKYYFBWmb9 ykj7Unt9/KfFf6ISva57M2jDsWNdBI3kupdpmCQYhK9l5K0Nyz/Esvz9QonZVXqoEMsZCo848V4 vKAVrGJQKq0O1f154qPpercdlieI= X-Received: by 2002:a05:651c:c6:b0:2d4:2b05:a671 with SMTP id 6-20020a05651c00c600b002d42b05a671mr7088206ljr.32.1710783235330; Mon, 18 Mar 2024 10:33:55 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240311162238.1761147-1-jtornosm@redhat.com> In-Reply-To: <20240311162238.1761147-1-jtornosm@redhat.com> From: Masahiro Yamada Date: Tue, 19 Mar 2024 02:33:19 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2] kbuild: rpm-pkg: add dtb files in kernel rpm To: Jose Ignacio Tornos Martinez Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, nathan@kernel.org, nicolas@fjasle.eu Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Mar 12, 2024 at 1:22=E2=80=AFAM Jose Ignacio Tornos Martinez wrote: > > Some architectures, like aarch64 ones, need a dtb file to configure the > hardware. The default dtb file can be preloaded from u-boot, but the fina= l > and/or more complete dtb file needs to be able to be loaded later from > rootfs. > > Add the possible dtb files to the kernel rpm and mimic Fedora shipping > process, storing the dtb files in the module directory. These dtb files > will be copied to /boot directory by the install scripts, but add fallbac= k > just in case, checking if the content in /boot directory is correct. > > Mark the files installed to /boot as %ghost to make sure they will be > removed when the package is uninstalled. > > Tested with Fedora Rawhide (x86_64 and aarch64) with dnf and rpm tools. > In addition, fallback was also tested after modifying the install scripts= . > > Signed-off-by: Jose Ignacio Tornos Martinez > --- > V1 -> V2: > - Follow the suggestions from Masahiro Yamada to improve the checks and > avoid the loop to ghost the dtb files in /boot folder. Applied to linux-kbuild. Thanks. --=20 Best Regards Masahiro Yamada