Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754075AbbHSMus (ORCPT ); Wed, 19 Aug 2015 08:50:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:60591 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753093AbbHSMuq (ORCPT ); Wed, 19 Aug 2015 08:50:46 -0400 Subject: Re: [PATCH] scripts: Extract kernel headers for out of tree modules build To: Daniel Baluta References: <1439967036-18297-1-git-send-email-daniel.baluta@intel.com> Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, octavian.purdila@intel.com, bogdan.m.davidoaia@intel.com From: Michal Marek Message-ID: <55D47BA4.4040601@suse.com> Date: Wed, 19 Aug 2015 14:50:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1439967036-18297-1-git-send-email-daniel.baluta@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 730 Lines: 16 On 2015-08-19 08:50, Daniel Baluta wrote: > scripts/package/builddeb already creates a linux-keader .deb > package, but we need this feature also for non-Debian distros > (e.g. Android or LFS). Kbuild supports building out-of-tree modules by providing the /lib/modules/*/build and /lib/modules/*/source symlinks, pointing to the whole build/source trees. IMO, an optimization like your script should remain part of the distro packaging, which also takes care of the symlinks. Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/