Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3932199ybx; Mon, 4 Nov 2019 05:13:08 -0800 (PST) X-Google-Smtp-Source: APXvYqx6AUn8mTySh9nU7tHUF5vaOgsMngMJaVDuCnRN89e2odFx39narDoccT5xQwUfzmC4lhOE X-Received: by 2002:a50:870c:: with SMTP id i12mr28680738edb.16.1572873188738; Mon, 04 Nov 2019 05:13:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572873188; cv=none; d=google.com; s=arc-20160816; b=W1AAXEZ2WuqPYB4s1a96PHkEZzoNESCmzZOZXfOw8/MfUVzdwkb1qEPT/9cKAs+gmZ anLyV7yEc2E1Wga1SIu5F30NPydsUUYhMTJF7MwZRQs5Vu6UcMlmRbQB3hNzKTDggmRv AgKLqdAcoVpQpmT8l+/8NGIjW7o9luSCz9ZaCESaX87EtfNsMf6Kk++c7fRMN4qL2QzQ 4sKcoQqgax9pITZd4ThRlmgRkKn2hPyae0HtqhS9MRlZRo3dfCO8Ssnz4tcFJqStPlg7 PksJQoRg2Hq/ygvFHZ8kPPdkGE8UkRBPxpWg28JorffBZ8eYXeUYIOJ/KssztiIUekn0 jOOg== 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=mEeFwMQ/ppa/j4TsLmopSIuCw8suIuDki26NbkIs/yI=; b=e7aUvfGyWj5n8n7xYQI1KCkbln4WIxF9l68pv9BK0tE39EhCD0dEHuUgUYm7n08pWe OzihrfRA2o1mX2Q2SA03XE9xoGUwTCgnBgjZqe48UVYBHowJwBq4NeDAoQ8fL1uphqGO 3WsM5gfn50eVrJAFEJUucINXFjNHYY88ZVsSlkT6H6z3mSZaSu3bmpjHxAFowAcZ/rRL Q77n6Moa654Txen1oMkMGWLlpSVoVAwSKmnnz7+UE8Nph1dLJNFxZ3NXkNO7yT63bojx YVrpkxF9AeLZN1u1KrqA+DQ0yskkIinHzcvpOZm/fdq6DbOiEsweCD9Wpx7v0upMcDB1 YiEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="YjWu5/BI"; 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 26si7493695edz.340.2019.11.04.05.12.45; Mon, 04 Nov 2019 05:13:08 -0800 (PST) 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="YjWu5/BI"; 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 S1729090AbfKDNMH (ORCPT + 99 others); Mon, 4 Nov 2019 08:12:07 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:48491 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729025AbfKDNMG (ORCPT ); Mon, 4 Nov 2019 08:12:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572873123; 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=mEeFwMQ/ppa/j4TsLmopSIuCw8suIuDki26NbkIs/yI=; b=YjWu5/BIaQJpbFNOrj+QtUOYfMaLAeGDFIon2L4mh6Lwg7H6Jl0v9z7EpyLNfNGd7igfwB eVDYUx6zmDQ/GzLn1HgTWQbifPSz04EC1d2aCPyg8Z7xIZn9St8giW3Rtxa0yySI3mQX6h eDV+B5wZCQ7vGoeVbwp+l6FGPCmp504= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-42-lGfyi6r-P_C3gnV3fPRSCQ-1; Mon, 04 Nov 2019 08:12:01 -0500 Received: by mail-wr1-f69.google.com with SMTP id v6so1097241wrm.18 for ; Mon, 04 Nov 2019 05:12:00 -0800 (PST) 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=w29442xfvO7j2EoGslKoTV7tRbFcx9AseEe7FfaZKW8=; b=JS3WxRrCnRSMiIdwG6xZ+NCfnVx+IECIS21TtS4XIIMEQDkgHoq9ZMqoo4SgoqlbLH TSbrRU0cJwuVu6wqvniIze/lQD70OvfR+FqWfxwi7DxPT1+M10xtbUFmRsOGbHRXBxRd c65jlFpjRIDVadTEPvwWSorA6LkK2FM5dRkHLgUMSAB5bRE4li2CfTDq9QhKIU//KYQc /KGBAnDgc/tmpqANCPu8k6QXcAZvAkufscgSddINcNWsRi1zfx8UWgIkGbMg3ZZ1yvxB NvqBp3npXjIu84Hrd5+/mQAjACrmZGoORx2GXh6ZQXRbPWttLCWVcK3ryLk+gHMLqPMv G8DQ== X-Gm-Message-State: APjAAAWeB2EXLtY9Pq0sCeVzVGP1bhxqdB7iAHbIXekphlKU3MgZzdVL 1PBAutWLflz5SV8OV8SRSNcR0ZfIncDhuO9IcfDTqn6jOJ75cr3YVPhhSkyMmvjz6SlIuqct9GD GYRX4XejYGC9Q1Ao1zmkV5We+ X-Received: by 2002:a7b:cae2:: with SMTP id t2mr5467098wml.161.1572873119559; Mon, 04 Nov 2019 05:11:59 -0800 (PST) X-Received: by 2002:a7b:cae2:: with SMTP id t2mr5467078wml.161.1572873119326; Mon, 04 Nov 2019 05:11:59 -0800 (PST) Received: from mcroce-redhat.mxp.redhat.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id q2sm15309813wmq.30.2019.11.04.05.11.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 05:11:58 -0800 (PST) From: Matteo Croce To: linux-kbuild@vger.kernel.org, Masahiro Yamada Cc: Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2] kbuild: Add make dir-pkg build option Date: Mon, 4 Nov 2019 14:11:44 +0100 Message-Id: <20191104131144.14333-1-mcroce@redhat.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-MC-Unique: lGfyi6r-P_C3gnV3fPRSCQ-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 | 8 ++++++-- 2 files changed, 8 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..77c7caefede1 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) @@ -125,6 +125,10 @@ case "${ARCH}" in =09=09;; esac =20 +if [ "${1}" =3D dir-pkg ]; then +=09echo "Kernel tree successfully created in $tmpdir" +=09exit 0 +fi =20 # # Create the tarball --=20 2.23.0