From patchwork Sun Aug 12 09:47:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tzafrir Cohen X-Patchwork-Id: 1309421 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 CD8253FC23 for ; Sun, 12 Aug 2012 09:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751173Ab2HLJyY (ORCPT ); Sun, 12 Aug 2012 05:54:24 -0400 Received: from local.xorcom.com ([81.218.177.19]:36582 "EHLO local.xorcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953Ab2HLJyY (ORCPT ); Sun, 12 Aug 2012 05:54:24 -0400 X-Greylist: delayed 390 seconds by postgrey-1.27 at vger.kernel.org; Sun, 12 Aug 2012 05:54:23 EDT Received: from sweetmorn.in.xorcom.com (sweetmorn [192.168.0.134]) by local.xorcom.com (Postfix) with ESMTP id CAD0A138484; Sun, 12 Aug 2012 12:47:52 +0300 (IDT) From: Tzafrir Cohen To: Linux Kbuild Cc: Linux Kernel , Tzafrir Cohen Subject: [PATCH] Add mach-specific includes Date: Sun, 12 Aug 2012 12:47:23 +0300 Message-Id: <1344764843-2179-1-git-send-email-tzafrir.cohen@xorcom.com> X-Mailer: git-send-email 1.7.10.4 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..16f8c1a 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 q -v '*'; 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"