Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1054496ybp; Wed, 9 Oct 2019 08:12:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8wvUuCS+BqthNiU6LH2T9t7RjxNzRYYc8ib+1gJU5TL5wAQqB/9jbl9dQhuAJUgXyBdoF X-Received: by 2002:a17:906:6b88:: with SMTP id l8mr3344149ejr.26.1570633971859; Wed, 09 Oct 2019 08:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570633971; cv=none; d=google.com; s=arc-20160816; b=Gc2QG2lAtVwkCrKGuTi/7h7QPGJuHAWm9PYXxtQRsUWuS5Jglnc856/OPoOSJFWnSX MxdlWw41c7GHJy7gIoBEKNL15FxzRzuUOnq2F0co+pt8yhwkLoCOH/RO8BduBKfAnebn kEoSsBHdEHngg7SQP9AZt+3hb5q/MN5qbXhQB4Plm+vr2QFf/Nnd6S0uG5VBO2yu1GYX SghT7wo2LdlG71JPZ6gyasBuR19e07vKZBpXLf0M6dN/PbjLeH1IzrnUpWgqIEen8ahi PVm5hIYC5IcWJuAfAISOlDGblDaAVseN3qQbuqPGmShqNaOvWEyp7JLYQo7ttez7VidX w3lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=eHwEpktLjemhDVWBTEE5wdMKU4jlPm/MsrXeEwc5KjE=; b=BeGHx5IV0xq0BCj3POacIrqV+5KL3qXPlCdcC3GB4LgWlv5qd2uaSrBQKDfxXllniw QyOHfYH8+NUPm+Bx5YAyZIl1tdVcrLFwfOxW5exEFNhLKtltbQb9tARUyOfQIgX4mR7E W/PU39/7Li4X6+NUL9d6Qiu9mwxaFAWfKs8zFGCZq3LTMrRvc+YnSRHX7ZWOFEdRaYAX fWm/EdcLGNln+aLOq1SHTJ2XVXClc0M4ZBT4cSliKsoNMDyK5QhJb/mfizkLLfEYbMOQ oCspq0WrQmGw3vgRKOgMPS6Lx2gkPhLgoXO782IHGYW9kjbVSCYwwXprvce8tAxPjj+2 P/IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B2mxlj0l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26si1365110edy.108.2019.10.09.08.12.28; Wed, 09 Oct 2019 08:12:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=B2mxlj0l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731455AbfJIPKi (ORCPT + 99 others); Wed, 9 Oct 2019 11:10:38 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:29458 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729644AbfJIPKi (ORCPT ); Wed, 9 Oct 2019 11:10:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1570633837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=eHwEpktLjemhDVWBTEE5wdMKU4jlPm/MsrXeEwc5KjE=; b=B2mxlj0lnjrlG6zX49vE7p9bjUH3hj8GjGCEfEHxDiqXia1thAlDBX5f/qsMmUOAu4Qftc o4RuZXJnb9wrZl0W7YiDuZZyBg42Pw2ymKPavVsBhowpGvW9dbt3+NqGz32xmKq5yFwwF4 M4sO+X44fCxT6kgLeBxt6Og33awo4wo= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-371-viXaEt5iNF6tq0J-nUDL7A-1; Wed, 09 Oct 2019 11:10:33 -0400 Received: by mail-wm1-f72.google.com with SMTP id g67so799878wmg.4 for ; Wed, 09 Oct 2019 08:10:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LxNQTZ3YeufmomqfUHsgwjNWfLwpx4ZrPxKfNiHSTCQ=; b=RcrNIWuwxH67WYl5L067qF/tHTzHWzxH4ekXmvSpP9ynEsYEHvZ94ea8dCHqddVWWG baVXrIWH5OsUMX//g2eksCI55QzsrExyQSLwpxcPDzi2Ke8BiUSMMUzH7BtT/UPskyVs vTqz71H6hPC9uataBVWmrsf5n2D48quPLyL/Ygb8pUsaHFdPjrPFXzT5ufPCsuScklqx ipl4y9JlJM32qd1XTx/bN0ql+sf2B0mLcj/1hdFpg4T2kEfo/ueEwHxnjODV6MPEn01y aevpbkNcKcaJjJf7u1hlJ1btAeT0DkaOJueGIEzAWKqGo7oZq/cA/6CoePeqoxBGwTIZ 59Kg== X-Gm-Message-State: APjAAAV4RiDoTww+fCbqoviU4WVRkdE1RIoOvEgIBrK7TLh+aaapWosk N5KJR/1Obz/3YWvhjY52AyqC99vcvSziHx6ONt/Fh2ZDfr99A7zcJLmScu5wE9a8XiUvZfRfead VgwKkbHQdSA0u1vF0w45F5pWN X-Received: by 2002:a1c:a651:: with SMTP id p78mr3091154wme.53.1570633832723; Wed, 09 Oct 2019 08:10:32 -0700 (PDT) X-Received: by 2002:a1c:a651:: with SMTP id p78mr3091130wme.53.1570633832474; Wed, 09 Oct 2019 08:10:32 -0700 (PDT) Received: from mcroce-redhat.mxp.redhat.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id e3sm2708136wme.39.2019.10.09.08.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 08:10:31 -0700 (PDT) From: Matteo Croce To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: Add make dir-pkg build option Date: Wed, 9 Oct 2019 17:10:19 +0200 Message-Id: <20191009151019.13488-1-mcroce@redhat.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-MC-Unique: viXaEt5iNF6tq0J-nUDL7A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a 'dir-pkg' target which just creates the same directory structures as in tar-pkg, but doesn't package anything. Useful when the user wants to copy the kernel tree on a machine using ssh, rsync or whatever. Signed-off-by: Matteo Croce --- scripts/Makefile.package | 3 ++- scripts/package/buildtar | 9 +++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/Makefile.package b/scripts/Makefile.package index 56eadcc48d46..36600ad1d5e6 100644 --- a/scripts/Makefile.package +++ b/scripts/Makefile.package @@ -103,7 +103,7 @@ snap-pkg: =20 # tarball targets # ------------------------------------------------------------------------= --- -tar-pkgs :=3D tar-pkg targz-pkg tarbz2-pkg tarxz-pkg +tar-pkgs :=3D dir-pkg tar-pkg targz-pkg tarbz2-pkg tarxz-pkg PHONY +=3D $(tar-pkgs) $(tar-pkgs): =09$(MAKE) -f $(srctree)/Makefile @@ -147,6 +147,7 @@ help: =09@echo ' deb-pkg - Build both source and binary deb kernel = packages' =09@echo ' bindeb-pkg - Build only the binary kernel deb package= ' =09@echo ' snap-pkg - Build only the binary kernel snap packag= e (will connect to external hosts)' +=09@echo ' dir-pkg - Build the kernel as a plain directory st= ructure' =09@echo ' tar-pkg - Build the kernel as an uncompressed tarb= all' =09@echo ' targz-pkg - Build the kernel as a gzip compressed ta= rball' =09@echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed t= arball' diff --git a/scripts/package/buildtar b/scripts/package/buildtar index 2f66c81e4021..ca283079f652 100755 --- a/scripts/package/buildtar +++ b/scripts/package/buildtar @@ -2,7 +2,7 @@ # SPDX-License-Identifier: GPL-2.0 =20 # -# buildtar 0.0.4 +# buildtar 0.0.5 # # (C) 2004-2006 by Jan-Benedict Glaw # @@ -24,7 +24,7 @@ tarball=3D"${objtree}/linux-${KERNELRELEASE}-${ARCH}.tar" # Figure out how to compress, if requested at all # case "${1}" in -=09tar-pkg) +=09dir-pkg|tar-pkg) =09=09opts=3D =09=09;; =09targz-pkg) @@ -133,6 +133,11 @@ if tar --owner=3Droot --group=3Droot --help >/dev/null= 2>&1; then =09opts=3D"$opts --owner=3Droot --group=3Droot" fi =20 +if [ "${1}" =3D dir-pkg ]; then +=09echo "Kernel tree successfully created in $tmpdir" +=09exit 0 +fi + tar cf $tarball -C $tmpdir $opts $dirs =20 echo "Tarball successfully created in $tarball" --=20 2.21.0