All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH
@ 2011-01-03 18:36 Koen Kooi
  2011-01-04 13:43 ` Gary Thomas
  2011-01-04 19:50 ` Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Koen Kooi @ 2011-01-03 18:36 UTC (permalink / raw)
  To: poky

From: Koen Kooi <koen@dominion.thruhere.net>

previously you could only build one set of packages for multiple machines:

MACHINE=foo bitbake task-base
MACHINE=bar bitbake task-base

would only create task-base packages for foo, but not for both foo and bar.
Doing MACHINE=bar bitbake task-base -c cleanall would remove the packages for foo.

The solution is to use MULTIMACH_ARCH as suggested by Richard Purdie.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta/classes/sstate.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 0ba130c..b6e6c92 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -5,7 +5,7 @@ SSTATE_MANFILEBASE = "${SSTATE_MANIFESTS}/manifest-${SSTATE_PKGARCH}-"
 SSTATE_MANFILEPREFIX = "${SSTATE_MANFILEBASE}${PN}"
 
 
-SSTATE_PKGARCH    = "${BASE_PACKAGE_ARCH}"
+SSTATE_PKGARCH    = "${MULTIMACH_ARCH}"
 SSTATE_PKGSPEC    = "sstate-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}-${PV}-${PR}-${SSTATE_PKGARCH}-${SSTATE_VERSION}-"
 SSTATE_PKGNAME    = "${SSTATE_PKGSPEC}${BB_TASKHASH}"
 SSTATE_PKG        = "${SSTATE_DIR}/${SSTATE_PKGNAME}"
-- 
1.6.6.1



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

* Re: [PATCH] sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH
  2011-01-03 18:36 [PATCH] sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH Koen Kooi
@ 2011-01-04 13:43 ` Gary Thomas
  2011-01-04 19:50 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Gary Thomas @ 2011-01-04 13:43 UTC (permalink / raw)
  To: Koen Kooi; +Cc: poky

On 01/03/2011 11:36 AM, Koen Kooi wrote:
> From: Koen Kooi<koen@dominion.thruhere.net>
>
> previously you could only build one set of packages for multiple machines:
>
> MACHINE=foo bitbake task-base
> MACHINE=bar bitbake task-base
>
> would only create task-base packages for foo, but not for both foo and bar.
> Doing MACHINE=bar bitbake task-base -c cleanall would remove the packages for foo.
>
> The solution is to use MULTIMACH_ARCH as suggested by Richard Purdie.
>
> Signed-off-by: Koen Kooi<koen@dominion.thruhere.net>

Acked by: Gary Thomas <gary@mlbassoc.com>

> ---
>   meta/classes/sstate.bbclass |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 0ba130c..b6e6c92 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -5,7 +5,7 @@ SSTATE_MANFILEBASE = "${SSTATE_MANIFESTS}/manifest-${SSTATE_PKGARCH}-"
>   SSTATE_MANFILEPREFIX = "${SSTATE_MANFILEBASE}${PN}"
>
>
> -SSTATE_PKGARCH    = "${BASE_PACKAGE_ARCH}"
> +SSTATE_PKGARCH    = "${MULTIMACH_ARCH}"
>   SSTATE_PKGSPEC    = "sstate-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}-${PV}-${PR}-${SSTATE_PKGARCH}-${SSTATE_VERSION}-"
>   SSTATE_PKGNAME    = "${SSTATE_PKGSPEC}${BB_TASKHASH}"
>   SSTATE_PKG        = "${SSTATE_DIR}/${SSTATE_PKGNAME}"

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: [PATCH] sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH
  2011-01-03 18:36 [PATCH] sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH Koen Kooi
  2011-01-04 13:43 ` Gary Thomas
@ 2011-01-04 19:50 ` Saul Wold
  1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2011-01-04 19:50 UTC (permalink / raw)
  To: Koen Kooi; +Cc: poky

On 01/03/2011 10:36 AM, Koen Kooi wrote:
> From: Koen Kooi<koen@dominion.thruhere.net>
>
> previously you could only build one set of packages for multiple machines:
>
> MACHINE=foo bitbake task-base
> MACHINE=bar bitbake task-base
>
> would only create task-base packages for foo, but not for both foo and bar.
> Doing MACHINE=bar bitbake task-base -c cleanall would remove the packages for foo.
>
> The solution is to use MULTIMACH_ARCH as suggested by Richard Purdie.
>
> Signed-off-by: Koen Kooi<koen@dominion.thruhere.net>
> ---
>   meta/classes/sstate.bbclass |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 0ba130c..b6e6c92 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -5,7 +5,7 @@ SSTATE_MANFILEBASE = "${SSTATE_MANIFESTS}/manifest-${SSTATE_PKGARCH}-"
>   SSTATE_MANFILEPREFIX = "${SSTATE_MANFILEBASE}${PN}"
>
>
> -SSTATE_PKGARCH    = "${BASE_PACKAGE_ARCH}"
> +SSTATE_PKGARCH    = "${MULTIMACH_ARCH}"
>   SSTATE_PKGSPEC    = "sstate-${PN}-${MULTIMACH_ARCH}${TARGET_VENDOR}-${TARGET_OS}-${PV}-${PR}-${SSTATE_PKGARCH}-${SSTATE_VERSION}-"
>   SSTATE_PKGNAME    = "${SSTATE_PKGSPEC}${BB_TASKHASH}"
>   SSTATE_PKG        = "${SSTATE_DIR}/${SSTATE_PKGNAME}"
Pulled into master now

Thanks for the patch

  Sau!



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

end of thread, other threads:[~2011-01-04 19:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-03 18:36 [PATCH] sstate.bbclass: fix multimachine builds when PACKAGE_ARCH = MACHINE_ARCH Koen Kooi
2011-01-04 13:43 ` Gary Thomas
2011-01-04 19:50 ` Saul Wold

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.