From patchwork Wed Nov 10 23:19:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kirill A. Shutemov" X-Patchwork-Id: 315972 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAANKFBV003420 for ; Wed, 10 Nov 2010 23:20:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757284Ab0KJXUO (ORCPT ); Wed, 10 Nov 2010 18:20:14 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:52747 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757279Ab0KJXUN (ORCPT ); Wed, 10 Nov 2010 18:20:13 -0500 Received: by bwz15 with SMTP id 15so1296225bwz.19 for ; Wed, 10 Nov 2010 15:20:12 -0800 (PST) Received: by 10.204.76.130 with SMTP id c2mr276547bkk.26.1289431211857; Wed, 10 Nov 2010 15:20:11 -0800 (PST) Received: from shutemov.name (shutemov.name [188.40.19.243]) by mx.google.com with ESMTPS id 4sm642161bki.13.2010.11.10.15.20.07 (version=SSLv3 cipher=RC4-MD5); Wed, 10 Nov 2010 15:20:08 -0800 (PST) From: "Kirill A. Shutsemov" To: Sam Ravnborg , David Woodhouse Cc: Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Am=C3=A9rico=20Wang?= , "Kirill A. Shutemov" Subject: [PATCH] kbuild: introduce HDR_ARCH_LIST for headers_install_all Date: Thu, 11 Nov 2010 01:19:40 +0200 Message-Id: <1289431180-30562-1-git-send-email-kirill@shutemov.name> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <20101107075841.GM3046@hack> References: <20101107075841.GM3046@hack> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Wed, 10 Nov 2010 23:20:15 +0000 (UTC) diff --git a/Documentation/make/headers_install.txt b/Documentation/make/headers_install.txt index f2481ca..951eb9f 100644 --- a/Documentation/make/headers_install.txt +++ b/Documentation/make/headers_install.txt @@ -39,8 +39,9 @@ INSTALL_HDR_PATH indicates where to install the headers. It defaults to The command "make headers_install_all" exports headers for all architectures simultaneously. (This is mostly of interest to distribution maintainers, who create an architecture-independent tarball from the resulting include -directory.) Remember to provide the appropriate linux/asm directory via "mv" -or "ln -s" before building a C library with headers exported this way. +directory.) You also can use HDR_ARCH_LIST to specify list of architectures. +Remember to provide the appropriate linux/asm directory via "mv" or "ln -s" +before building a C library with headers exported this way. The kernel header export infrastructure is maintained by David Woodhouse . diff --git a/scripts/headers.sh b/scripts/headers.sh index 1ddcdd3..978b42b 100755 --- a/scripts/headers.sh +++ b/scripts/headers.sh @@ -13,7 +13,7 @@ do_command() fi } -archs=$(ls ${srctree}/arch) +archs=${HDR_ARCH_LIST:-$(ls ${srctree}/arch)} for arch in ${archs}; do case ${arch} in