From patchwork Mon Jul 1 00:58:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11024713 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D309F1580 for ; Mon, 1 Jul 2019 01:01:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1C4E20008 for ; Mon, 1 Jul 2019 01:01:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B30EA27F9F; Mon, 1 Jul 2019 01:01:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5E7AB20008 for ; Mon, 1 Jul 2019 01:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=eEfask9h/5JdAhYpodzinD5wjjmHT97wz5NyLmtoBDY=; b=eCd 5Ye10Wy0UYEKiS8yKfU3PB2Hj86s5e5PQpl/PNJK9FF11XU4+Tb8Is6Ge1glE5a3UMpD4Wn7lm1T0 RbEBq2LulUiOdkrC7in4vR+5VaenxMIXBZnGeSBFqizCb5dwfwdOxq1eYAKGt4eqijD+ZJyNaDpry 3m9hmgxbmCtbt2NyogyyKIMplOr6wDlkizJIalAypR57zb9crvwPDAYHknSH2x8WRS1ANcL6I1sNt REFnVEIFLT4G/BmoXkz5sgEEh4rzQmFzgqljwH1hbLCDAWwAj/h7B8ken29VRaV2LpJyyGbTUOEBK PM33uTh7oH4mgMZIDuRUh5SF67JYePA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hhkhA-0005tD-09; Mon, 01 Jul 2019 01:01:24 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hhkgT-0005cQ-H0; Mon, 01 Jul 2019 01:00:43 +0000 Received: from grover.flets-west.jp (softbank126125154139.bbtec.net [126.125.154.139]) (authenticated) by conuserg-12.nifty.com with ESMTP id x610x4fr000634; Mon, 1 Jul 2019 09:59:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x610x4fr000634 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1561942746; bh=k6lypsY8EtklIWOXM9lo9DSpQkaOGO3EP2tLY2qrygs=; h=From:To:Cc:Subject:Date:From; b=RV7ivx/luT13tyKFQqp2bzeMpPuELrJCg9fzB9Izj3h9p/ZMwQ1dZT6LLW+TGOiia y7GXNUCQeMJvbLyYJp4c6896ESTp4uj92EuSL6k9rlafDuvM+I5/D/zuLKRV7aX5Mr hKleV/abWphBI55RVHfAyHVvem0AZalk/lBgfViVIVL2e3dI9lRxL0wq3+JfFGanC5 mv6ZNUnGJUBGxfJbiLw9xV/uRqek9ZvLivUrGDZ0JN/YI/Bxjikn/ddnD2lc99zBwI nic+be8jWSUlygiFUgs6kWl8faUFT40BXRNmZSzifX/qacxH8tCcUgk4os320VPQke eIRoc/XiFB7og== X-Nifty-SrcIP: [126.125.154.139] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Subject: [PATCH 0/7] Compile-test UAPI and kernel headers Date: Mon, 1 Jul 2019 09:58:38 +0900 Message-Id: <20190701005845.12475-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190630_180041_815117_6FBC1E05 X-CRM114-Status: UNSURE ( 7.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Song Liu , Jakub Kicinski , linux-doc@vger.kernel.org, Palmer Dabbelt , Alexei Starovoitov , Masahiro Yamada , Joel Fernandes , linux-riscv@lists.infradead.org, Sam Ravnborg , Kees Cook , xdp-newbies@vger.kernel.org, Daniel Borkmann , Jonathan Corbet , Anton Vorontsov , John Fastabend , Yonghong Song , Albert Ou , Jesper Dangaard Brouer , Michal Marek , linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org, Tony Luck , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Colin Cross , bpf@vger.kernel.org, Martin KaFai Lau MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 1/7: add CONFIG_CC_CAN_LINK to use it in 2/7 2/7: Compile-test exported headers 3/7: Do not generate intermediate wrappers. This will avoid header search path issue. 4/7: maybe useful for 7/7 and in some other places. Add header-test-pattern-y syntax. 5/7: Minor cleanup of gen_kheaders.sh 6/7: Exclude all files without ".h" extension from the kheaders_data.tar.xz This will be needed by 7/7 because we need to exclude "*.h.s" from the archive 7/7: Compile-test kernel-space headers in include/. Masahiro Yamada (7): init/Kconfig: add CONFIG_CC_CAN_LINK kbuild: compile-test exported headers to ensure they are self-contained kbuild: do not create wrappers for header-test-y kbuild: support header-test-pattern-y kheaders: remove meaningless -R option of 'ls' kheaders: include only headers into kheaders_data.tar.xz kbuild: compile-test kernel headers to ensure they are self-contained .gitignore | 1 - Documentation/dontdiff | 1 - Documentation/kbuild/makefiles.txt | 13 +- Makefile | 4 +- include/Kbuild | 1253 ++++++++++++++++++++++++++++ init/Kconfig | 24 + kernel/gen_kheaders.sh | 51 +- net/bpfilter/Kconfig | 2 +- scripts/Makefile.build | 10 +- scripts/Makefile.lib | 13 +- usr/.gitignore | 1 - usr/Makefile | 2 + usr/include/.gitignore | 3 + usr/include/Makefile | 131 +++ 14 files changed, 1462 insertions(+), 47 deletions(-) create mode 100644 include/Kbuild create mode 100644 usr/include/.gitignore create mode 100644 usr/include/Makefile