From patchwork Wed Jan 15 16:25:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11335289 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7A7D614B4 for ; Wed, 15 Jan 2020 16:26:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5995F206D7 for ; Wed, 15 Jan 2020 16:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579105576; bh=EO+lbnTl8JD9KU9HVqHVfPTrZrSDTWy4iAB8c1tG5vA=; h=From:To:Cc:Subject:Date:List-ID:From; b=B05F2zPKx9MAhooi9zs5Ni28zOp8KOVJGd9CB59WfGu9LzOsrG2vIwg37+lGxXxph VWWE+ecTGAyAbFei4hXaP/1c4Ff3ZU2WmkpsiztCTATDuGnTBcKJLNJLRhgFou7aQj s+YTnhpf2swbU0xDqe4I4FnJGuuT89EwosvQm1RE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbgAOQ0M (ORCPT ); Wed, 15 Jan 2020 11:26:12 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:58429 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgAOQ0L (ORCPT ); Wed, 15 Jan 2020 11:26:11 -0500 Received: from grover.flets-west.jp (softbank126093102113.bbtec.net [126.93.102.113]) (authenticated) by conuserg-07.nifty.com with ESMTP id 00FGPX3A015075; Thu, 16 Jan 2020 01:25:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com 00FGPX3A015075 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1579105534; bh=fouf2erZu2zlCkdO4KBDKaCsNgyUUXqd28gkzb62sDQ=; h=From:To:Cc:Subject:Date:From; b=2jYDSnqaNaNLiGKL9a3+LeixR2nydWYpWyaOzexh5Fl4No7EzQEPBW6thW7SaE74S IWAKY3tIhP9MXAbLlX7jJc6COJrQeRCXcSL40kztlR8Q2dIfzTtadrlPRNk4mQJJmc dJZUO0CNVzs5qHlBOuvgPeBIzbV6WnWHq1xcp+HEyRv4EtHMaLQ7Qk2wpcwtvIBcIu Dwv+t5ctbsFQexwnjpIJIOb4YEid8YCbB49h0jr7tjRPII9WXy0Yipp6zdsXXoBNKE 9tpo3NStFusR8Q+HoYlsLt/pwRPjB+kJdeqvQSe9qKseFY5xXR7KBUvmHLhN3aGWdk hErpZcH+i5DlA== X-Nifty-SrcIP: [126.93.102.113] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Riku Voipio , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH v2 1/7] builddeb: remove unneeded files in hdrobjfiles for headers package Date: Thu, 16 Jan 2020 01:25:23 +0900 Message-Id: <20200115162529.11089-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org - We do not need tools/objtool/fixdep or tools/objtool/sync-check.sh for building external modules. Including tools/objtool/objtool is enough. - gcc-common.h is a check-in file. I do not see any point to search for it in objtree. Signed-off-by: Masahiro Yamada --- Changes in v2: None scripts/package/builddeb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index b60388051c7f..eb067d6f1370 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -170,11 +170,11 @@ done (cd $srctree; find arch/$SRCARCH -name module.lds -o -name Kbuild.platforms -o -name Platform) >> "$objtree/debian/hdrsrcfiles" (cd $srctree; find $(find arch/$SRCARCH -name include -o -name scripts -type d) -type f) >> "$objtree/debian/hdrsrcfiles" if is_enabled CONFIG_STACK_VALIDATION; then - (cd $objtree; find tools/objtool -type f -executable) >> "$objtree/debian/hdrobjfiles" + echo tools/objtool/objtool >> "$objtree/debian/hdrobjfiles" fi (cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f) >> "$objtree/debian/hdrobjfiles" if is_enabled CONFIG_GCC_PLUGINS; then - (cd $objtree; find scripts/gcc-plugins -name \*.so -o -name gcc-common.h) >> "$objtree/debian/hdrobjfiles" + (cd $objtree; find scripts/gcc-plugins -name \*.so) >> "$objtree/debian/hdrobjfiles" fi destdir=$kernel_headers_dir/usr/src/linux-headers-$version mkdir -p "$destdir"