From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx1.pokylinux.org (Postfix) with ESMTP id 428F94C80ABA for ; Wed, 2 Mar 2011 12:00:59 -0600 (CST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 02 Mar 2011 10:00:58 -0800 Message-Id: X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.62,254,1297065600"; d="scan'208";a="608305741" Received: from unknown (HELO localhost) ([10.255.12.138]) by orsmga002.jf.intel.com with ESMTP; 02 Mar 2011 10:00:58 -0800 Old-Date: Wed, 2 Mar 2011 09:28:39 -0800 Date: Wed, 02 Mar 2011 10:00:55 -0800 To: poky@yoctoproject.org From: Darren Hart Cc: Darren Hart Subject: [PATCH 0/2] RFC: enable building of out-of-tree modules X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2011 18:00:59 -0000 From: Darren Hart The following patches provide a mechanism to address [BUGID #241] through two additions to module.bbclass which build and clean the hostprogs. The second patch adds an example kernel module. When building with the hello-world-mod, the resulting rootfs is missing all the other kernel modules (/lib/modules/KERNEL_VER/extras contains hello-world.ko, but /lib/modules/KERNEL_VER/kernel is missing). The sysroots has all the modules, but the rootfs generated by the image recipe only has the hello-world module. This is the last wrinkle to iron out, any ideas on how to address this would be appreciated. Gary, can you try the module.bbclass with your module to see if it builds successfully? Thanks, Darren Hart (2): module: build and clean hostprogs for each module hello-world-mod: add a module for testing module.bbclass meta/classes/module.bbclass | 21 ++- meta/recipes-kernel/hello-world-mod/files/COPYING | 340 ++++++++++++++++++++ meta/recipes-kernel/hello-world-mod/files/Makefile | 14 + .../hello-world-mod/files/hello_world.c | 33 ++ .../hello-world-mod/hello-world-mod.bb | 15 + 5 files changed, 422 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-kernel/hello-world-mod/files/COPYING create mode 100644 meta/recipes-kernel/hello-world-mod/files/Makefile create mode 100644 meta/recipes-kernel/hello-world-mod/files/hello_world.c create mode 100644 meta/recipes-kernel/hello-world-mod/hello-world-mod.bb