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: 102051 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1584057qgy; Mon, 4 Jul 2016 07:37:11 -0700 (PDT) X-Received: by 10.66.52.11 with SMTP id p11mr23558246pao.155.1467643031804; Mon, 04 Jul 2016 07:37:11 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si4547752pal.94.2016.07.04.07.37.11; Mon, 04 Jul 2016 07:37:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753777AbcGDOhE (ORCPT + 30 others); Mon, 4 Jul 2016 10:37:04 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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) \