From patchwork Mon Jul 4 14:39:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9212763 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2A5B460752 for ; Mon, 4 Jul 2016 14:37:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 18F62286F3 for ; Mon, 4 Jul 2016 14:37:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0AF472871F; Mon, 4 Jul 2016 14:37:04 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DF192871E for ; Mon, 4 Jul 2016 14:37:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751113AbcGDOhC (ORCPT ); Mon, 4 Jul 2016 10:37:02 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:60852 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750805AbcGDOhB (ORCPT ); Mon, 4 Jul 2016 10:37:01 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0LaJMk-1biwAA33ug-00m4fA; Mon, 04 Jul 2016 16:36:48 +0200 From: Arnd Bergmann To: Michal Marek , Michal Marek Cc: linux-kbuild@vger.kernel.org, Peter Foley , Jiri Kosina , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: make samples depend on headers_install Date: Mon, 4 Jul 2016 16:39:35 +0200 Message-Id: <20160704143949.2357806-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:3OUIBDOIuvBQQT0pvaqlqt/6nOpQOpVVazJ7TRrUU5FL5hAdBsX kvKxx432YgdECTvPpgZQM5Yi07WweAp/bLRPb69S9r1flMS3v+SqKk0GwU1lmgaGe3vTpDp qYuuYv9sgkUxhCUTQySYlV5UUNXHDqfGsSU0dSut8HvbQ2C6JygeuwU7i/i1QBPxVeuXi3D SPfjozyOKsjG8YYFasr7Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:dbnLT8jrXFg=:NHFUTgeXEiV812uphaJnml 3K9K3nvUB5a5PutleUHu+gIYKKBC5MBGz333IwgpS4Imeiq4IdYjQQBTkhE3riqKAmtcWtDW5 Bq5etjv6yqlwQbuGX5M2X8crRiPbFKRrFfijX/nACXAlMqTwAB91acSKq/ty5Ksh368Muhqh5 ruB1t/QryPdTitppqRxGxn1EaB1/QbEtZ8isWyWyDMYnR4dR5u5x25Sen9OosGX4jGAKogaY0 0ijOLMBmV+0wypq90EXORUrNJ/vSwvllotpRG/BbmmnFmmorsuaBMSOCwpl9Ct4vlHibKMRvg pb7ZpVyKBfjImZEngVF/ZtzDbST+WvUWFuayvHRXWevvYUj8SM95aoU8Y1FDUYf1YXWrYazd4 FBfo4pjkBSCHawqV54E8EwSVnfvy935eD+kVToWpQ9F5W6B1nVEW4CNMmg0h9xf+il5nJBK1Z nS+6V85OQr9Cn/JFnFmZRnVX2WLZTaBaRQA0U+C9nWU2A7DQt3O9JZpseb33sGQY3nCZTocan QdJHJDu4Uq8Ri6nDKJJlk3+XlTpWQ+A4vgLMdQ7VcVdq4GF0aO+dwopKakyfB988T7cGQGkRv fMH3/yiOvJlEKW78/bsgkJcOJWK26vqKBsHqxRRFOxmhbfiBBpgpRFK5MCo0jRgxREHWAE6ue TpS2cjzUuxnQr/roJp5e+tb6/9K9Ld43fWuqhKvEDpwPncKiszNqZK++hy/oVd41JmhQ= Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Olof's build test setup keeps failing to compile arm64 kernels because of a toolchain that uses outdated kernel headers: /work/build/batch/samples/seccomp/bpf-fancy.c:13:27: fatal error: linux/seccomp.h: No such file or directory This is of course something he could change, but it also indicates that others may run into the same problem. Running 'make headers_install' avoids the issue by ensuring that the kernel headers are put into the $(objdir)/usr/include path before we build the samples. The same problem happened for the Documentation build in the past and was fixed up with commit 8e2faea877eb ("Make Documenation depend on headers_install"). This adds an identical Makefile dependency for the samples/ subdirectory. Signed-off-by: Arnd Bergmann --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec355167cf36..4a44055e3433 100644 --- a/Makefile +++ b/Makefile @@ -1633,7 +1633,7 @@ endif $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ $(build)=$(build-dir) # Make sure the latest headers are built for Documentation -Documentation/: headers_install +Documentation/ samples/: headers_install %/: prepare scripts FORCE $(cmd_crmodverdir) $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \