All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable
@ 2009-04-16 11:47 Roman I Khimov
  2009-04-16 19:34 ` Otavio Salvador
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roman I Khimov @ 2009-04-16 11:47 UTC (permalink / raw)
  To: openembedded-devel

IMAGE_VARS usage forces images to have init, dev management, login
management and other stuff. In cases where you don't need any of those
(like initramfs images or other special-purpose images) you need to
override 4 variables in order to get clean image that only installs
things from IMAGE_INSTALL.

So, this changes IMAGE_VARS to more meaningful IMAGE_BOOT and makes it
possible to build images without boot components with single
IMAGE_BOOT="".
---
 classes/image.bbclass |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/classes/image.bbclass b/classes/image.bbclass
index fd0df4d..9012de2 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -17,16 +17,16 @@ IMAGE_INITSCRIPTS ?= "initscripts"
 #
 IMAGE_LOGIN_MANAGER ?= "tinylogin"
 
-IMAGE_VARS = "${IMAGE_INITSCRIPTS} \
+IMAGE_BOOT ?= "${IMAGE_INITSCRIPTS} \
 ${IMAGE_DEV_MANAGER} \
 ${IMAGE_INIT_MANAGER} \
 ${IMAGE_LOGIN_MANAGER} "
 
-RDEPENDS += "${IMAGE_INSTALL} ${IMAGE_VARS}"
+RDEPENDS += "${IMAGE_INSTALL} ${IMAGE_BOOT}"
 
 # "export IMAGE_BASENAME" not supported at this time
 IMAGE_BASENAME[export] = "1"
-export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_VARS}"
+export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_BOOT}"
 
 # We need to recursively follow RDEPENDS and RRECOMMENDS for images
 do_rootfs[recrdeptask] += "do_deploy do_populate_staging"
-- 
1.6.2.1


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




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

* Re: [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make  overridable
  2009-04-16 11:47 [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable Roman I Khimov
@ 2009-04-16 19:34 ` Otavio Salvador
  2009-04-21 20:19 ` Roman I Khimov
  2009-04-21 20:35 ` Koen Kooi
  2 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2009-04-16 19:34 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-devel

Acked-by: Otavio Salvador <otavio@ossystems.com.br>

On Thu, Apr 16, 2009 at 8:47 AM, Roman I Khimov <khimov@altell.ru> wrote:
> IMAGE_VARS usage forces images to have init, dev management, login
> management and other stuff. In cases where you don't need any of those
> (like initramfs images or other special-purpose images) you need to
> override 4 variables in order to get clean image that only installs
> things from IMAGE_INSTALL.
>
> So, this changes IMAGE_VARS to more meaningful IMAGE_BOOT and makes it
> possible to build images without boot components with single
> IMAGE_BOOT="".
> ---
>  classes/image.bbclass |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/classes/image.bbclass b/classes/image.bbclass
> index fd0df4d..9012de2 100644
> --- a/classes/image.bbclass
> +++ b/classes/image.bbclass
> @@ -17,16 +17,16 @@ IMAGE_INITSCRIPTS ?= "initscripts"
>  #
>  IMAGE_LOGIN_MANAGER ?= "tinylogin"
>
> -IMAGE_VARS = "${IMAGE_INITSCRIPTS} \
> +IMAGE_BOOT ?= "${IMAGE_INITSCRIPTS} \
>  ${IMAGE_DEV_MANAGER} \
>  ${IMAGE_INIT_MANAGER} \
>  ${IMAGE_LOGIN_MANAGER} "
>
> -RDEPENDS += "${IMAGE_INSTALL} ${IMAGE_VARS}"
> +RDEPENDS += "${IMAGE_INSTALL} ${IMAGE_BOOT}"
>
>  # "export IMAGE_BASENAME" not supported at this time
>  IMAGE_BASENAME[export] = "1"
> -export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_VARS}"
> +export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_BOOT}"
>
>  # We need to recursively follow RDEPENDS and RRECOMMENDS for images
>  do_rootfs[recrdeptask] += "do_deploy do_populate_staging"
> --
> 1.6.2.1
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>



-- 
Otavio Salvador                  O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854         http://projetos.ossystems.com.br



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

* Re: [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable
  2009-04-16 11:47 [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable Roman I Khimov
  2009-04-16 19:34 ` Otavio Salvador
@ 2009-04-21 20:19 ` Roman I Khimov
  2009-04-21 20:35 ` Koen Kooi
  2 siblings, 0 replies; 4+ messages in thread
From: Roman I Khimov @ 2009-04-21 20:19 UTC (permalink / raw)
  To: openembedded-devel

On Thursday 16 April 2009 15:47:01 Roman I Khimov wrote:
>  classes/image.bbclass |    6 +++---

ping




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

* Re: [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable
  2009-04-16 11:47 [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable Roman I Khimov
  2009-04-16 19:34 ` Otavio Salvador
  2009-04-21 20:19 ` Roman I Khimov
@ 2009-04-21 20:35 ` Koen Kooi
  2 siblings, 0 replies; 4+ messages in thread
From: Koen Kooi @ 2009-04-21 20:35 UTC (permalink / raw)
  To: openembedded-devel

I think this should be done in a slightly different way, but that can be 
done after this is in.

Acked-by: Koen Kooi <koen@openembedded.org>


On 16-04-09 13:47, Roman I Khimov wrote:
> IMAGE_VARS usage forces images to have init, dev management, login
> management and other stuff. In cases where you don't need any of those
> (like initramfs images or other special-purpose images) you need to
> override 4 variables in order to get clean image that only installs
> things from IMAGE_INSTALL.
>
> So, this changes IMAGE_VARS to more meaningful IMAGE_BOOT and makes it
> possible to build images without boot components with single
> IMAGE_BOOT="".
> ---
>   classes/image.bbclass |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/classes/image.bbclass b/classes/image.bbclass
> index fd0df4d..9012de2 100644
> --- a/classes/image.bbclass
> +++ b/classes/image.bbclass
> @@ -17,16 +17,16 @@ IMAGE_INITSCRIPTS ?= "initscripts"
>   #
>   IMAGE_LOGIN_MANAGER ?= "tinylogin"
>
> -IMAGE_VARS = "${IMAGE_INITSCRIPTS} \
> +IMAGE_BOOT ?= "${IMAGE_INITSCRIPTS} \
>   ${IMAGE_DEV_MANAGER} \
>   ${IMAGE_INIT_MANAGER} \
>   ${IMAGE_LOGIN_MANAGER} "
>
> -RDEPENDS += "${IMAGE_INSTALL} ${IMAGE_VARS}"
> +RDEPENDS += "${IMAGE_INSTALL} ${IMAGE_BOOT}"
>
>   # "export IMAGE_BASENAME" not supported at this time
>   IMAGE_BASENAME[export] = "1"
> -export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_VARS}"
> +export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${IMAGE_BOOT}"
>
>   # We need to recursively follow RDEPENDS and RRECOMMENDS for images
>   do_rootfs[recrdeptask] += "do_deploy do_populate_staging"





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

end of thread, other threads:[~2009-04-21 21:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-16 11:47 [PATCH] image.bbclass: IMAGE_VARS->IMAGE_BOOT, make overridable Roman I Khimov
2009-04-16 19:34 ` Otavio Salvador
2009-04-21 20:19 ` Roman I Khimov
2009-04-21 20:35 ` 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.