Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3 V3b] Enable building modules on target
@ 2012-06-30  4:25 Darren Hart
  2012-06-30  4:25 ` [PATCH 1/3] kernel: Add kernel headers to kernel-dev package Darren Hart
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Darren Hart @ 2012-06-30  4:25 UTC (permalink / raw)
  To: Poky, Saul Wold, openembedded-core, Kishore Bodke; +Cc: Darren Hart

Note: As this is a major change that impacts every BSP, I suggest this
      spend some time in MUT before being included into master.

This series adds support for building modules on the target via an expanded
kernel-dev package.

Sending to both oe-core and poky as this series touches files in both
and I didn't want to confuse the intent or the dependency by splitting
them up (at least the original did, keeping it consistent).

V2:
o Add files to kernel-dev rather than create a new kernel-headers package
o Move the location to /usr/src/kernel from /usr/src/kernel-headers
o Eliminate the kernel-misc package as kernel-dev covers it now
o Fix a bug with linux-yocto-custom exposed during testing

V3b:
o Rebase on origin/master where 2 patches had already been applied
o Correct the bitbake.conf STAGING_KERNEL_DIR path which I missed in V2
o Move kernel-dev inclusion from task-core-sdk to the core-image*sdk recipes
  in order to avoid making task-core-sdk machine specific
o Kill the kernel_package_prepend() function which deleted the kernel headers
o Add a KERNEL_SRC_DIR variable to avoid missing one of the many hard-coded
  paths during an update

Testing Performed:
Built core-image-sato-sdk, core-image-lsb-sdk, and core-image-rt-sdk for
qemux86 and built the kernel scripts with:

  # make -C /usr/src/kernel scripts

For sato-sdk and lsb-sdk, copied over the hello-mod module sources and built the
hello-mod module on the target, insmod, rmmod, dmesg -n 2.  The output was
correct. rt-sdk didn't have dropbear or feasible way to quickly copy the files
across, but I'm confident knowing the scripts built.

The following changes since commit a5b2c1e4ce3ad4f2b9ea306c6d10f528c5ef8b66:

  bitbake: Hob: change 'run image' and 'deploy' Gui and work flow for building detail page (2012-06-29 14:46:47 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib dvhart/modules-v3
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=dvhart/modules-v3

Darren Hart (3):
  kernel: Add kernel headers to kernel-dev package
  linux-yocto-custom: Remove linux-tools
  core-image*sdk: Add kernel-dev to sdk images

 .../recipes-kernel/linux/linux-yocto-custom.bb     |    2 --
 meta/classes/kernel.bbclass                        |   27 +++++++++-----------
 meta/conf/bitbake.conf                             |    2 +-
 meta/recipes-extended/images/core-image-lsb-sdk.bb |    1 +
 meta/recipes-kernel/linux/linux-yocto.inc          |    2 +-
 meta/recipes-rt/images/core-image-rt-sdk.bb        |    2 +-
 meta/recipes-sato/images/core-image-sato-sdk.bb    |    3 +++
 7 files changed, 19 insertions(+), 20 deletions(-)

-- 
1.7.10.2




^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/3 V3] Enable building modules on target
@ 2012-06-30  4:20 Darren Hart
  2012-06-30  4:20 ` [PATCH 1/3] kernel: Add kernel headers to kernel-dev package Darren Hart
  0 siblings, 1 reply; 8+ messages in thread
From: Darren Hart @ 2012-06-30  4:20 UTC (permalink / raw)
  To: Poky, Saul Wold, openembedded-core, Kishore Bodke; +Cc: Darren Hart

Note: As this is a major change that impacts every BSP, I suggest this
      spend some time in MUT before being included into master.

This series simplifies the include mechanisms for the linux-yocto recipes
and adds support for a kernel-headers package which enables the building
of modules on the target.

Sending to both oe-core and poky as this series touches files in both
and I didn't want to confuse the intent or the dependency by splitting
them up.

V2:
o Add files to kernel-dev rather than create a new kernel-headers package
o Move the location to /usr/src/kernel from /usr/src/kernel-headers
o Eliminate the kernel-misc package as kernel-dev covers it now
o Fix a bug with linux-yocto-custom exposed during testing

V3:
o Fix tasl-core-sdk typo
o Rebase on origin/master where 2 patches had already been applied
o Correct the bitbake.conf STAGING_KERNEL_DIR path which I missed in V2

Testing Performed:
Built core-image-sato-sdk for qemux86 and copied over the hello-mod
module sources. Built the scripts dir in /usr/src/kernel, then built the
hello-mod module on the target, insmod, rmmod, dmesg -n 2.  The output was
correct.

The following changes since commit a5b2c1e4ce3ad4f2b9ea306c6d10f528c5ef8b66:

  bitbake: Hob: change 'run image' and 'deploy' Gui and work flow for building detail page (2012-06-29 14:46:47 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib dvhart/modules-v3
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=dvhart/modules-v3

Darren Hart (3):
  kernel: Add kernel headers to kernel-dev package
  task-core-sdk: Add kernel-dev to task-core-sdk RDEPENDS
  linux-yocto-custom: Remove linux-tools

 .../recipes-kernel/linux/linux-yocto-custom.bb          |    2 --
 meta/classes/kernel.bbclass                             |   15 +++++++--------
 meta/conf/bitbake.conf                                  |    2 +-
 meta/recipes-core/tasks/task-core-sdk.bb                |    5 +++--
 4 files changed, 11 insertions(+), 13 deletions(-)

-- 
1.7.10.2




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-02 13:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-30  4:25 [PATCH 0/3 V3b] Enable building modules on target Darren Hart
2012-06-30  4:25 ` [PATCH 1/3] kernel: Add kernel headers to kernel-dev package Darren Hart
2012-07-01  3:51   ` Bruce Ashfield
2012-07-02 13:32     ` Darren Hart
2012-06-30  4:25 ` [PATCH 2/3] linux-yocto-custom: Remove linux-tools Darren Hart
2012-06-30  4:25 ` [PATCH 3/3] core-image*sdk: Add kernel-dev to sdk images Darren Hart
2012-07-02 13:33   ` Darren Hart
  -- strict thread matches above, loose matches on Subject: below --
2012-06-30  4:20 [PATCH 0/3 V3] Enable building modules on target Darren Hart
2012-06-30  4:20 ` [PATCH 1/3] kernel: Add kernel headers to kernel-dev package Darren Hart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox