All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 0/1][for-denzil] kernel: cherry-pick header fix
  2012-10-10 22:18 [PATCH 0/1][for-denzil] kernel: cherry-pick header fix Chase Maupin
@ 2012-10-10 21:54 ` Denys Dmytriyenko
  2012-10-10 22:11   ` Maupin, Chase
  2012-10-10 22:18 ` [PATCH 1/1][for-denzil] kernel: Add kernel headers to kernel-dev package Chase Maupin
  1 sibling, 1 reply; 5+ messages in thread
From: Denys Dmytriyenko @ 2012-10-10 21:54 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chase Maupin

On Wed, Oct 10, 2012 at 05:18:38PM -0500, Chase Maupin wrote:
> All,
> 
> This patch is a cherry-pick of the change made in meta-openembedded
> master to fix the kernel header staging location.  Without this
> change builds of external modules using the denzil branch will fail
> to find the staged headers because they will be looking in the
> "kernel" directory instead of the "usr/src/kernel" directory.
> 
> The STAGING_KERNEL_DIR set in bitbake.conf of oe-core in the
> denzil branch of the repository has already been updated to use
> ${STAGING_DIR_HOST}/usr/src/kernel
> 
> I hope I got this patch formatted right since I just did a
> cherry-pick into my denzil branch and created the patch.  If this
> is not the correct format please let me know.  The commit I
> cherry-picked was 8c724c4ab8e946763c813e5174dbfd5ac8a5ddda
> 
> Darren Hart (1):
>   kernel: Add kernel headers to kernel-dev package
> 
>  meta-oe/classes/kernel.bbclass |   27 ++++++++++++---------------
>  1 files changed, 12 insertions(+), 15 deletions(-)

FYI, it is already in the queue with other related patches. See my earlier 
email.

-- 
Denys



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

* Re: [PATCH 0/1][for-denzil] kernel: cherry-pick header fix
  2012-10-10 21:54 ` Denys Dmytriyenko
@ 2012-10-10 22:11   ` Maupin, Chase
  2012-10-10 22:45     ` Denys Dmytriyenko
  0 siblings, 1 reply; 5+ messages in thread
From: Maupin, Chase @ 2012-10-10 22:11 UTC (permalink / raw)
  To: Denys Dmytriyenko, openembedded-devel

> -----Original Message-----
> From: Denys Dmytriyenko [mailto:denis@denix.org]
> Sent: Wednesday, October 10, 2012 4:54 PM
> To: openembedded-devel@lists.openembedded.org
> Cc: Maupin, Chase
> Subject: Re: [oe] [PATCH 0/1][for-denzil] kernel: cherry-pick
> header fix
> 
> On Wed, Oct 10, 2012 at 05:18:38PM -0500, Chase Maupin wrote:
> > All,
> >
> > This patch is a cherry-pick of the change made in meta-
> openembedded
> > master to fix the kernel header staging location.  Without this
> > change builds of external modules using the denzil branch will
> fail
> > to find the staged headers because they will be looking in the
> > "kernel" directory instead of the "usr/src/kernel" directory.
> >
> > The STAGING_KERNEL_DIR set in bitbake.conf of oe-core in the
> > denzil branch of the repository has already been updated to use
> > ${STAGING_DIR_HOST}/usr/src/kernel
> >
> > I hope I got this patch formatted right since I just did a
> > cherry-pick into my denzil branch and created the patch.  If
> this
> > is not the correct format please let me know.  The commit I
> > cherry-picked was 8c724c4ab8e946763c813e5174dbfd5ac8a5ddda
> >
> > Darren Hart (1):
> >   kernel: Add kernel headers to kernel-dev package
> >
> >  meta-oe/classes/kernel.bbclass |   27 ++++++++++++------------
> ---
> >  1 files changed, 12 insertions(+), 15 deletions(-)
> 
> FYI, it is already in the queue with other related patches. See
> my earlier
> email.

OK.  I haven't seen that message come by yet.  I guess it is floating in the ether :)

> 
> --
> Denys



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

* [PATCH 0/1][for-denzil] kernel: cherry-pick header fix
@ 2012-10-10 22:18 Chase Maupin
  2012-10-10 21:54 ` Denys Dmytriyenko
  2012-10-10 22:18 ` [PATCH 1/1][for-denzil] kernel: Add kernel headers to kernel-dev package Chase Maupin
  0 siblings, 2 replies; 5+ messages in thread
From: Chase Maupin @ 2012-10-10 22:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chase Maupin

All,

This patch is a cherry-pick of the change made in meta-openembedded
master to fix the kernel header staging location.  Without this
change builds of external modules using the denzil branch will fail
to find the staged headers because they will be looking in the
"kernel" directory instead of the "usr/src/kernel" directory.

The STAGING_KERNEL_DIR set in bitbake.conf of oe-core in the
denzil branch of the repository has already been updated to use
${STAGING_DIR_HOST}/usr/src/kernel

I hope I got this patch formatted right since I just did a
cherry-pick into my denzil branch and created the patch.  If this
is not the correct format please let me know.  The commit I
cherry-picked was 8c724c4ab8e946763c813e5174dbfd5ac8a5ddda

Darren Hart (1):
  kernel: Add kernel headers to kernel-dev package

 meta-oe/classes/kernel.bbclass |   27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)




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

* [PATCH 1/1][for-denzil] kernel: Add kernel headers to kernel-dev package
  2012-10-10 22:18 [PATCH 0/1][for-denzil] kernel: cherry-pick header fix Chase Maupin
  2012-10-10 21:54 ` Denys Dmytriyenko
@ 2012-10-10 22:18 ` Chase Maupin
  1 sibling, 0 replies; 5+ messages in thread
From: Chase Maupin @ 2012-10-10 22:18 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Tom Zanussi, Darren Hart, Bruce Ashfield, Koen Kooi

From: Darren Hart <dvhart@linux.intel.com>

[YOCTO #1614]

Add the kernel headers to the kernel-dev package. This packages what was
already built and kept in sysroots for building modules with bitbake.
Making this available on the target requires removing some additional
host binaries.

Move the location to /usr/src/kernel

Before use on the target, the user will need to:

    # cd /usr/src/kernel
    # make scripts

This renders the kernel-misc recipe empty, so remove it.

As we use /usr/src/kernel in several places (and I missed one in the
previous version), add a KERNEL_SRC_DIR variable and use that throughout
the class to avoid update errors in the future.

Now that we package the kernel headers, drop the
kernel_package_preprocess function which removed them from PKGD.

All *-sdk image recipes include dev-pkgs, so the kernel-dev package will
be installed by default on all such images.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
CC: Bruce Ashfield <bruce.ashfield@windriver.com>
CC: Tom Zanussi <tom.zanussi@intel.com>
CC: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta-oe/classes/kernel.bbclass |   27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass
index ce82351..1af977e 100644
--- a/meta-oe/classes/kernel.bbclass
+++ b/meta-oe/classes/kernel.bbclass
@@ -82,6 +82,10 @@ EXTRA_OEMAKE = ""
 
 KERNEL_ALT_IMAGETYPE ??= ""
 
+# Define where the kernel headers are installed on the target as well as where
+# they are staged.
+KERNEL_SRC_PATH = "/usr/src/kernel"
+
 KERNEL_IMAGETYPE_FOR_MAKE = "${@(lambda s: s[:-3] if s[-3:] == ".gz" else s)(d.getVar('KERNEL_IMAGETYPE', True))}"
 
 kernel_do_compile() {
@@ -135,7 +139,7 @@ kernel_do_install() {
 	# Support for external module building - create a minimal copy of the
 	# kernel source tree.
 	#
-	kerneldir=${D}/kernel
+	kerneldir=${D}${KERNEL_SRC_PATH}
 	install -d $kerneldir
 
 	#
@@ -188,23 +192,18 @@ kernel_do_install() {
 		cp arch/powerpc/lib/crtsavres.o $kerneldir/arch/powerpc/lib/crtsavres.o
 	fi
 
-	# Remove the following binaries which cause strip errors
+	# Remove the following binaries which cause strip or arch QA errors
 	# during do_package for cross-compiled platforms
 	bin_files="arch/powerpc/boot/addnote arch/powerpc/boot/hack-coff \
-	           arch/powerpc/boot/mktree"
+	           arch/powerpc/boot/mktree scripts/kconfig/zconf.tab.o \
+		   scripts/kconfig/conf.o"
 	for entry in $bin_files; do
 		rm -f $kerneldir/$entry
 	done
 }
 
-PACKAGE_PREPROCESS_FUNCS += "kernel_package_preprocess"
-
-kernel_package_preprocess () {
-	rm -rf ${PKGD}/kernel
-}
-
 sysroot_stage_all_append() {
-	sysroot_stage_dir ${D}/kernel ${SYSROOT_DESTDIR}/kernel
+	sysroot_stage_dir ${D}${KERNEL_SRC_PATH} ${SYSROOT_DESTDIR}${KERNEL_SRC_PATH}
 }
 
 kernel_do_configure() {
@@ -252,13 +251,11 @@ EXPORT_FUNCTIONS do_compile do_install do_configure
 
 # kernel-base becomes kernel-${KERNEL_VERSION}
 # kernel-image becomes kernel-image-${KERNEL_VERISON}
-PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev kernel-misc"
+PACKAGES = "kernel kernel-base kernel-vmlinux kernel-image kernel-dev"
 FILES = ""
 FILES_kernel-image = "/boot/${KERNEL_IMAGETYPE}*"
-FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config*"
+FILES_kernel-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH}"
 FILES_kernel-vmlinux = "/boot/vmlinux*"
-# misc is a package to contain files we need in staging
-FILES_kernel-misc = "/kernel/include/config /kernel/scripts /kernel/drivers/crypto /kernel/drivers/media"
 RDEPENDS_kernel = "kernel-base"
 # Allow machines to override this dependency if kernel image files are 
 # not wanted in images as standard
@@ -475,7 +472,7 @@ python populate_packages_prepend () {
 	metapkg = "kernel-modules"
 	d.setVar('ALLOW_EMPTY_' + metapkg, "1")
 	d.setVar('FILES_' + metapkg, "")
-	blacklist = [ 'kernel-dev', 'kernel-image', 'kernel-base', 'kernel-vmlinux', 'perf', 'perf-dbg', 'kernel-misc' ]
+	blacklist = [ 'kernel-dev', 'kernel-image', 'kernel-base', 'kernel-vmlinux', 'perf', 'perf-dbg' ]
 	for l in module_deps.values():
 		for i in l:
 			pkg = module_pattern % legitimize_package_name(re.match(module_regex, os.path.basename(i)).group(1))
-- 
1.7.0.4




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

* Re: [PATCH 0/1][for-denzil] kernel: cherry-pick header fix
  2012-10-10 22:11   ` Maupin, Chase
@ 2012-10-10 22:45     ` Denys Dmytriyenko
  0 siblings, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2012-10-10 22:45 UTC (permalink / raw)
  To: Maupin, Chase; +Cc: openembedded-devel

On Wed, Oct 10, 2012 at 10:11:42PM +0000, Maupin, Chase wrote:
> > -----Original Message-----
> > From: Denys Dmytriyenko [mailto:denis@denix.org]
> > Sent: Wednesday, October 10, 2012 4:54 PM
> > To: openembedded-devel@lists.openembedded.org
> > Cc: Maupin, Chase
> > Subject: Re: [oe] [PATCH 0/1][for-denzil] kernel: cherry-pick
> > header fix
> > 
> > On Wed, Oct 10, 2012 at 05:18:38PM -0500, Chase Maupin wrote:
> > > All,
> > >
> > > This patch is a cherry-pick of the change made in meta-
> > openembedded
> > > master to fix the kernel header staging location.  Without this
> > > change builds of external modules using the denzil branch will
> > fail
> > > to find the staged headers because they will be looking in the
> > > "kernel" directory instead of the "usr/src/kernel" directory.
> > >
> > > The STAGING_KERNEL_DIR set in bitbake.conf of oe-core in the
> > > denzil branch of the repository has already been updated to use
> > > ${STAGING_DIR_HOST}/usr/src/kernel
> > >
> > > I hope I got this patch formatted right since I just did a
> > > cherry-pick into my denzil branch and created the patch.  If
> > this
> > > is not the correct format please let me know.  The commit I
> > > cherry-picked was 8c724c4ab8e946763c813e5174dbfd5ac8a5ddda
> > >
> > > Darren Hart (1):
> > >   kernel: Add kernel headers to kernel-dev package
> > >
> > >  meta-oe/classes/kernel.bbclass |   27 ++++++++++++------------
> > ---
> > >  1 files changed, 12 insertions(+), 15 deletions(-)
> > 
> > FYI, it is already in the queue with other related patches. See
> > my earlier
> > email.
> 
> OK.  I haven't seen that message come by yet.  I guess it is floating in the ether :)

And here it comes, with a slight delay... :)

http://thread.gmane.org/gmane.comp.handhelds.openembedded/53984/focus=54512

-- 
Denys



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

end of thread, other threads:[~2012-10-10 23:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10 22:18 [PATCH 0/1][for-denzil] kernel: cherry-pick header fix Chase Maupin
2012-10-10 21:54 ` Denys Dmytriyenko
2012-10-10 22:11   ` Maupin, Chase
2012-10-10 22:45     ` Denys Dmytriyenko
2012-10-10 22:18 ` [PATCH 1/1][for-denzil] kernel: Add kernel headers to kernel-dev package Chase Maupin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.