Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1112955rwb; Thu, 6 Oct 2022 08:35:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7aZB3zcuBYQOcM5/y8AU8aWCuCh4vi6TK1GBykxGhfw/wOCKvz1UJ1eeeHClnJORbJtBOJ X-Received: by 2002:a17:90b:38cb:b0:200:aaa6:6428 with SMTP id nn11-20020a17090b38cb00b00200aaa66428mr11343917pjb.47.1665070535295; Thu, 06 Oct 2022 08:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665070535; cv=none; d=google.com; s=arc-20160816; b=n+u1gbSvNh4L1FECtOTS6CXtaL75irTlOtu79SmuuAJsbVU5yd7NOvEmvrW16k8C5p pjAQXwYgdw+Yw1JQjMexZNb0mAyXgNdXgzY0TCQEx2epM70LeeHsyj/HBsnQhBQ7b+8T mjuiBMLOncSLgGgNHKTFcGLYIFn3QN4j7w9FRstIjJcirIelksUTLj99ztB5Ey/nCePp /ZiiOVWQqFYKrlHbkMVNqzc6L2sMy6/rhMZoD6d9FK/nowi3Zquwj8PUkGHmQWjnF8Uo Uduz917NFON7Q5IER7iCs4vrRIaGTl+Fl0xXXarX2+I0W/YE3U+CtUYvQPtMooiMmyNE 7guQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LzCW97odh7pu0RlVHSlZ7ZsFhUmcRmuT4QaeAcOWs9I=; b=Hg9RYWVA4C5fXO1mSl4ly1jcNsomtkneHzef0ChQt7AI0U8D6vgBnbLEyYblB1ogmV 1RgNxB9fhkE+SL0td5ioFVwxrCNrK+CBu57dFVyzAlt6//D78p2RtBB3ZXv/zwB6KQPQ g9wXbEpV2wIWs3xOprjskaJ99iLR+oYQx8zl8Uiigc/Gluhfxl3b+5n/f7rMWncb8M+3 74wFBnZi9dLYUrxpnjNkFrCpLe+l/kJpiCzCgXujJMz1XrciqsR/JM7DuvHYcWM/bR+v fQ28L90qKS5USxvHxHtnnRf+Rze+xSvXaINeXczR+GQo3kT3ctxgZgQUQTW/Bx/uv9s8 xAcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kde.org header.s=users header.b=K0d7ZatQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p20-20020a170902a41400b00178849314a3si10448759plq.358.2022.10.06.08.35.20; Thu, 06 Oct 2022 08:35:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kde.org header.s=users header.b=K0d7ZatQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbiJFOdi (ORCPT + 99 others); Thu, 6 Oct 2022 10:33:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbiJFOdd (ORCPT ); Thu, 6 Oct 2022 10:33:33 -0400 Received: from letterbox.kde.org (letterbox.kde.org [46.43.1.242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17A357B1CE; Thu, 6 Oct 2022 07:33:31 -0700 (PDT) Received: from vertex.vmware.com (pool-173-49-113-140.phlapa.fios.verizon.net [173.49.113.140]) (Authenticated sender: zack) by letterbox.kde.org (Postfix) with ESMTPSA id 97D0232CAA7; Thu, 6 Oct 2022 15:33:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kde.org; s=users; t=1665066809; bh=LzCW97odh7pu0RlVHSlZ7ZsFhUmcRmuT4QaeAcOWs9I=; h=From:To:Cc:Subject:Date:From; b=K0d7ZatQ9wJhIQtz7wFBE9wL6WFzIq+MuEVbvd01irXkGZ1+sHUc73ujY/S1RjN/i v+4iNmDshQtr5Dq/R7LBAbZv14kRKWr5isBgnwT9n/5xKtVMwbH2nk9LGhAa7+Sc0M KQbVW9onqkp2F5tIDmFl3keB6ZDW3Eu5LlevxGH4ghYG6ArcOcN0i6r0CoV80I0wmn 1phlM0U/oAn/zF6vXvgVR501YIAKH5fvpCLUnOHjK+kdwPXgEqKIFExNWI1QZ7hvH9 at1XGHhD6kjNEF7Mk6Z1LdpGA6UagOqHv9JoiebTdRSYvZCpzzNQ8ocefnLWpSFSO/ 4g8d8YwIxv2Qg== From: Zack Rusin To: Masahiro Yamada Cc: Zack Rusin , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: Stop including vmlinux.bz2 in the rpm's Date: Thu, 6 Oct 2022 10:33:19 -0400 Message-Id: <20221006143319.264657-1-zack@kde.org> X-Mailer: git-send-email 2.34.1 Reply-To: Zack Rusin MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zack Rusin vmlinux.bz2 was added to the rpm packages in 2009 in the fc370ecfdb37 ("kbuild: add vmlinux to kernel rpm") but seemingly hasn't been used since. Originally this should have been split up in a seperate debugging package because it massively increases the size of the generated rpm's e.g. kernel rpm built using binrpm-pkg on Fedora 36 default 5.19.8 kernel config and localmodconfig is ~255MB with vmlinux.bz2 and only ~65MB without it. Make the kernel built rpms about 4x smaller by not including the unused vmlinux.bz2 in them. Signed-off-by: Zack Rusin Cc: Masahiro Yamada Cc: Michal Marek Cc: Nick Desaulniers Cc: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- scripts/package/mkspec | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 8fa7c5b8a1a1..af06d03fe7e2 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -97,8 +97,6 @@ $M $MAKE %{?_smp_mflags} INSTALL_MOD_PATH=%{buildroot} modules_install $MAKE %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr headers_install cp System.map %{buildroot}/boot/System.map-$KERNELRELEASE cp .config %{buildroot}/boot/config-$KERNELRELEASE - bzip2 -9 --keep vmlinux - mv vmlinux.bz2 %{buildroot}/boot/vmlinux-$KERNELRELEASE.bz2 $S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/build $S$M rm -f %{buildroot}/lib/modules/$KERNELRELEASE/source $S$M mkdir -p %{buildroot}/usr/src/kernels/$KERNELRELEASE -- 2.34.1