Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2539258lqt; Mon, 22 Apr 2024 13:47:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPDyf5wEfzMDrYqVXtQk1oYc44eFYmWrIwm25SrpwNchM5R7cvrTbcBpr2dWPWmVM+FrhWaKPB7AF6kG12/05WYAQgCeqXvPTaLdTLjQ== X-Google-Smtp-Source: AGHT+IEiEpDfcf7/hAPMf7ZZw8VwR5HtSUJfaQ9A4lWOPSx/HbuFZDKfjx/MSNztwgwTw3M4Vk2w X-Received: by 2002:a05:6a00:995:b0:6ed:416d:f86 with SMTP id u21-20020a056a00099500b006ed416d0f86mr18296447pfg.15.1713818847052; Mon, 22 Apr 2024 13:47:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713818847; cv=pass; d=google.com; s=arc-20160816; b=gtHlJi/xcqYbalocBM2Pn5enbRo5RVFGvyn29Z0AScet2UNJIq5sFcKFlGrg6qv2A9 xVP3z2M2GDrNkBaXsEZpUrnOAQGAmRccpAJwcVYeBFAipjpTU5gU2um3Qn+GH1ln4amf EN1fyNHLiKcFi50iihN4fmHlrma8L1XtqzvEU0n5UMpYs9JJXeBi00H3YyU/RC3xsXIS Z7XEv+OqCTdu9nUnmhqLcyVpIge9QlvkMc7uL0+VmrgiYLZNfZRbQPxksTGRBZvmRxtA oA3GGlGx0CitNIPk+UsT0ZvR9Tn4nurVb5UA8+gtZwECKl0L9T4TUTQNyU6N1nCi9VgL 2ayg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=X4jIrEph2fEc9GLnN3UrkGqfhHM9dkus2DG6SIFVCxk=; fh=kzQbY2VWCNYHOBrv8n3HKFBQNH7Ctw9D+bVaT5LgeBo=; b=QMTrSMnhzDdWaE2tjMR/RnT0SbPdRKbDUu99QaI+mD6TxwAE0QwV0qAuuFkztSGhc6 IxRPysiocwzWf8DJuzl5qqCT3BoP5pD2FiFqBnUo/+lFbt+aU1S83G9OQwj6gjEJSvo7 w2Gl+pO3NZfLqqBwXhgn7DLP78kAtxgOTB0oxhnEREBfCjfkCIKgJ7heJmK4dZ3Uo07S QnskO6tfE/MSzhwfWeRFfYCfARmsPj05ahKiKAVspSwirnzdfaDxdg9LRzuQdm6bJiyX pUDiAeVPH9NyY+m3QXGclSEsqcwOsvmFrPpscUiLnN9fW6sCnfEuMYbHJs6q/zIQ2687 d20w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UJjMUgn0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154007-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. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ln15-20020a056a003ccf00b006e65d654afbsi8510573pfb.32.2024.04.22.13.47.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 13:47:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UJjMUgn0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-154007-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154007-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 B9925B2135D for ; Mon, 22 Apr 2024 20:46:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE4D81C2BE; Mon, 22 Apr 2024 20:45:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UJjMUgn0" 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 D6DCD1BC41; Mon, 22 Apr 2024 20:45:57 +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=1713818757; cv=none; b=a2MWEZjjqbxeUFdssexwJ7TkcCdX7dkXDzAwZhv3bJS+7ptnHDqH/OxdozmOtu8Z/2Me/4Q0uN2vugT/wWGMoxzLhzR4ctCARV59yN2DDduyZiI/5X63U5Othz2uRXY7COBjAEfFFvBGHbXrQhG3h71x266ZpGke+IBXcldJ6yI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713818757; c=relaxed/simple; bh=Sbq8AQxOxQUWYrB0cQCMBOHJrc2Bf8DYvwxjKQofJlo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SfcgwtULr/h86Oqk6hrdhxKsIhm/HDpO1Y8LvFynChd3tPBpvuNQPm3bXgAc52/JE6m68Vz5QA3Tmyu56pJNJNjMSu1kp9zGBS+zaqmh3lv5SvTKjtAdbxUFdqHkStZgBauJDVnMjJMEhs1SH+cZUu/vLWQfF75eHcQBJU4kPsI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UJjMUgn0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F8ACC2BD11; Mon, 22 Apr 2024 20:45:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713818757; bh=Sbq8AQxOxQUWYrB0cQCMBOHJrc2Bf8DYvwxjKQofJlo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=UJjMUgn0EWPR+XMQBeND8aT5mJrXbhcWEIC+L9PIqtQVkXJHp1XcFeCz+z+A2FhDk GEuAlp4VoZrWhfLSEaI3oPdDoDP3BfmI+TCuq97BgbmXOM42DVa/yrJCcoAF9Bhsn7 wroMdsKUJ18LZJkwwvVa42O5svFRj623IqCrqvLJ/9ebX9/8p7YE24ryOAEuaoraJ5 d8pOi0brRgddYclMPx53K9vs742r7A0LEhR5V59kyKJPU6fTHFp64eEMNyF62A0dNo JIPljxac/lpd8PxzMXAv3RZAtU745rvRCLs8frXVdM8VUO6xV4buD0Qo0ZI1gCf6AW GjqnKxWIKQs9Q== Date: Mon, 22 Apr 2024 13:45:55 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nicolas Schier Subject: Re: [PATCH] kbuild: buildtar: remove warning for the default case Message-ID: <20240422204555.GB770800@dev-arch.thelio-3990X> References: <20240422154610.2864941-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240422154610.2864941-1-masahiroy@kernel.org> On Tue, Apr 23, 2024 at 12:46:10AM +0900, Masahiro Yamada wrote: > Given KBUILD_IMAGE properly set in arch/*/Makefile, the default case > should work in most scenarios. The only oddity is the naming of the > copy destination, vmlinux-kbuild-${KERNELRELEASE}. Let's rename it > to vmlinuz-${KERNELRELEASE} because the kernel is often compressed. > Remove the warning to avoid unnecessary patch submissions when the > default case suffices. > > Remove the x86 case, which is now identical to the default. > > Signed-off-by: Masahiro Yamada Sounds good to me, the script is extensible enough that if this does not work by default for some architecture, a new case can be added, rather than penalizing architectures for which it does work. Reviewed-by: Nathan Chancellor > --- > > scripts/package/buildtar | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/scripts/package/buildtar b/scripts/package/buildtar > index ed8d9b496305..fe816f62a290 100755 > --- a/scripts/package/buildtar > +++ b/scripts/package/buildtar > @@ -59,9 +59,6 @@ cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}" > # build tree. > # > case "${ARCH}" in > - x86|i386|x86_64) > - cp -v -- "${objtree}/arch/x86/boot/bzImage" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" > - ;; > alpha) > cp -v -- "${objtree}/arch/alpha/boot/vmlinux.gz" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" > ;; > @@ -110,13 +107,6 @@ case "${ARCH}" in > done > ;; > *) > - cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinux-kbuild-${KERNELRELEASE}" > - echo "" >&2 > - echo '** ** ** WARNING ** ** **' >&2 > - echo "" >&2 > - echo "Your architecture did not define any architecture-dependent files" >&2 > - echo "to be placed into the tarball. Please add those to ${0} ..." >&2 > - echo "" >&2 > - sleep 5 > + cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}" > ;; > esac > -- > 2.40.1 >