From patchwork Wed Sep 5 13:30:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzafrir Cohen X-Patchwork-Id: 1409311 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9286B40220 for ; Wed, 5 Sep 2012 13:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751495Ab2IENeM (ORCPT ); Wed, 5 Sep 2012 09:34:12 -0400 Received: from local.xorcom.com ([81.218.177.19]:61145 "EHLO local.xorcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906Ab2IENeK (ORCPT ); Wed, 5 Sep 2012 09:34:10 -0400 Received: from sweetmorn.in.xorcom.com (sweetmorn [192.168.0.134]) by local.xorcom.com (Postfix) with ESMTP id DE8EC138484; Wed, 5 Sep 2012 16:34:08 +0300 (IDT) From: Tzafrir Cohen To: Michal Marek Cc: Maximilian Attems , Linux Kbuild , Linux Kernel , Tzafrir Cohen Subject: [PATCH] Add mach-specific includes Date: Wed, 5 Sep 2012 16:30:36 +0300 Message-Id: <1346851836-18284-1-git-send-email-tzafrir.cohen@xorcom.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <5040BFF3.6050705@suse.cz> References: <5040BFF3.6050705@suse.cz> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org When building a deb package, the linux-headers package should also add arch/$ARCH/mach-*/include Required for arm and probably some other architectures: avr32 and blackfin. This is needed to allow building modules using the headers package. Signed-off-by: Tzafrir Cohen --- scripts/package/builddeb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/package/builddeb b/scripts/package/builddeb index acb8650..811a53a 100644 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -245,6 +245,9 @@ fi # Build header package (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles") (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles") +if echo arch/$SRCARCH/mach-*/include | grep -v '*' >/dev/null; then + (cd $srctree; find arch/$SRCARCH/mach-*/include -type f >> "$objtree/debian/hdrsrcfiles") +fi (cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles") destdir=$kernel_headers_dir/usr/src/linux-headers-$version mkdir -p "$destdir"