All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules
@ 2010-10-09 10:57 Koen Kooi
  2010-10-09 10:57 ` [PATCH 2/2] kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please insane.bbclass Koen Kooi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Koen Kooi @ 2010-10-09 10:57 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Koen Kooi

This allows recipes to insert a custom task in between building *Image and modules

Signed-off-by: Koen Kooi <koen@openembedded.org>
---
 classes/kernel.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index cf6b8cd..5d5e93b 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -89,12 +89,16 @@ kernel_do_compile() {
 		oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
 	fi
 	oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
+}
+
+kernel_do_compile_modules() {
 	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
 		oe_runmake modules  CC="${KERNEL_CC}" LD="${KERNEL_LD}"
 	else
 		oenote "no modules to compile"
 	fi
 }
+addtask compile_modules after do_compile before do_install
 
 kernel_do_install() {
 	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
-- 
1.6.6.1




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

* [PATCH 2/2] kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please insane.bbclass
  2010-10-09 10:57 [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
@ 2010-10-09 10:57 ` Koen Kooi
  2010-10-09 11:24 ` [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
  2010-10-09 12:55 ` Koen Kooi
  2 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2010-10-09 10:57 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Koen Kooi

Signed-off-by: Koen Kooi <koen@openembedded.org>
---
 classes/kernel.bbclass |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 5d5e93b..e677ddb 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -488,12 +488,12 @@ python populate_packages_prepend () {
 		for i in l:
 			pkg = module_pattern % legitimize_package_name(re.match(module_regex, os.path.basename(i)).group(1))
 			blacklist.append(pkg)
-	metapkg_rdepends = []
+	metapkg_rrecommends = []
 	packages = bb.data.getVar('PACKAGES', d, 1).split()
 	for pkg in packages[1:]:
-		if not pkg in blacklist and not pkg in metapkg_rdepends and not any(pkg.endswith(post) for post in depchains):
-			metapkg_rdepends.append(pkg)
-	bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
+		if not pkg in blacklist and not pkg in metapkg_rrecommends and not any(pkg.endswith(post) for post in depchains):
+			metapkg_rrecommends.append(pkg)
+	bb.data.setVar('RRECOMMENDS_' + metapkg, ' '.join(metapkg_rrecommends), d)
 	bb.data.setVar('DESCRIPTION_' + metapkg, 'Kernel modules meta package', d)
 	packages.append(metapkg)
 	bb.data.setVar('PACKAGES', ' '.join(packages), d)
-- 
1.6.6.1




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

* Re: [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules
  2010-10-09 10:57 [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
  2010-10-09 10:57 ` [PATCH 2/2] kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please insane.bbclass Koen Kooi
@ 2010-10-09 11:24 ` Koen Kooi
  2010-10-09 12:55 ` Koen Kooi
  2 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2010-10-09 11:24 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A word of warning:

If you have rm_work enabled you need to clean the kernel since bitbake
doesn't know that the source is gone when trying to run the new
compile_modules task

On 09-10-10 12:57, Koen Kooi wrote:
> This allows recipes to insert a custom task in between building *Image and modules
> 
> Signed-off-by: Koen Kooi <koen@openembedded.org>
> ---
>  classes/kernel.bbclass |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index cf6b8cd..5d5e93b 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass
> @@ -89,12 +89,16 @@ kernel_do_compile() {
>  		oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>  	fi
>  	oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> +}
> +
> +kernel_do_compile_modules() {
>  	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
>  		oe_runmake modules  CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>  	else
>  		oenote "no modules to compile"
>  	fi
>  }
> +addtask compile_modules after do_compile before do_install
>  
>  kernel_do_install() {
>  	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMsFDhMkyGM64RGpERAgtDAJ9UAObRieVcn+AkuqyVaKma/+6UQACgtUtd
EwXwC1DrKgNnjk5FKxzx++M=
=qAhm
-----END PGP SIGNATURE-----




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

* Re: [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules
  2010-10-09 10:57 [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
  2010-10-09 10:57 ` [PATCH 2/2] kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please insane.bbclass Koen Kooi
  2010-10-09 11:24 ` [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
@ 2010-10-09 12:55 ` Koen Kooi
  2 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2010-10-09 12:55 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

disregard this one, _modules is a local override, v2 will fix that

On 09-10-10 12:57, Koen Kooi wrote:
> This allows recipes to insert a custom task in between building *Image and modules
> 
> Signed-off-by: Koen Kooi <koen@openembedded.org>
> ---
>  classes/kernel.bbclass |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> index cf6b8cd..5d5e93b 100644
> --- a/classes/kernel.bbclass
> +++ b/classes/kernel.bbclass
> @@ -89,12 +89,16 @@ kernel_do_compile() {
>  		oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>  	fi
>  	oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> +}
> +
> +kernel_do_compile_modules() {
>  	if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
>  		oe_runmake modules  CC="${KERNEL_CC}" LD="${KERNEL_LD}"
>  	else
>  		oenote "no modules to compile"
>  	fi
>  }
> +addtask compile_modules after do_compile before do_install
>  
>  kernel_do_install() {
>  	unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMsGZTMkyGM64RGpERAlpLAKCDoOp5yV1METuyM5r7XbA53MhZKACffYr2
4zygv+VrY75MAdL4gHdTFx8=
=jrRu
-----END PGP SIGNATURE-----




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

end of thread, other threads:[~2010-10-09 12:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-09 10:57 [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
2010-10-09 10:57 ` [PATCH 2/2] kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please insane.bbclass Koen Kooi
2010-10-09 11:24 ` [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
2010-10-09 12:55 ` Koen Kooi

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.