From patchwork Tue Aug 27 17:28:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 270165 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id BAE452C0082 for ; Wed, 28 Aug 2013 03:28:48 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 658BA93306; Tue, 27 Aug 2013 17:29:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DKdVFNVdoJnC; Tue, 27 Aug 2013 17:29:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 58D029330A; Tue, 27 Aug 2013 17:29:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BD0B71CE606 for ; Tue, 27 Aug 2013 17:28:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BBC768A0B8 for ; Tue, 27 Aug 2013 17:28:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bn1ZiAP2QM49 for ; Tue, 27 Aug 2013 17:28:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id 3CD7C8A87D for ; Tue, 27 Aug 2013 17:28:37 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 7198984A; Tue, 27 Aug 2013 19:28:47 +0200 (CEST) Received: from localhost (AToulouse-651-1-237-65.w90-38.abo.wanadoo.fr [90.38.172.65]) by mail.free-electrons.com (Postfix) with ESMTPSA id 2FAB481B for ; Tue, 27 Aug 2013 19:28:47 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Tue, 27 Aug 2013 19:28:32 +0200 Message-Id: <1377624514-10510-3-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1377624514-10510-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1377624514-10510-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCHv2 2/4] kmod: allow to build a host variant X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Since module-init-tools is deprecated, we now want to use kmod instead for the installation of modules during the kernel build process. In order to do this, we need to be able to build a host variant of kmod, which is want this patch allows to do. Note that only the depmod tool is installed on the host, since that's the only one likely to be used on the host in a cross-compilation context. Signed-off-by: Thomas Petazzoni --- package/kmod/kmod.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk index 71a2632..4445fa8 100644 --- a/package/kmod/kmod.mk +++ b/package/kmod/kmod.mk @@ -54,4 +54,14 @@ else KMOD_CONF_OPT += --disable-tools endif +# We only install depmod, since that's the only tool used for the +# host. +define HOST_KMOD_INSTALL_TOOLS + mkdir -p $(HOST_DIR)/sbin/ + ln -sf ../usr/bin/kmod $(HOST_DIR)/sbin/depmod +endef + +HOST_KMOD_POST_INSTALL_HOOKS += HOST_KMOD_INSTALL_TOOLS + $(eval $(autotools-package)) +$(eval $(host-autotools-package))