Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] classes/sanity: remove broken TARGET_ARCH check
@ 2012-05-28 14:34 Paul Eggleton
  2012-05-30 12:01 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2012-05-28 14:34 UTC (permalink / raw)
  To: openembedded-core

The variable name has been typo'd as TARGE_ARCH since it was introduced
some time ago, so the check has never worked. Fixing the typo shows that
the test is not quite functional, so let's just remove it:

http://lists.linuxtogo.org/pipermail/openembedded-core/2011-October/010613.html

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/sanity.bbclass |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index a2b45bc..8332105 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -248,10 +248,6 @@ def check_sanity_validmachine(sanity_data):
     if sanity_data.getVar('TUNE_ARCH', True) == 'INVALID':
         messages = messages + 'TUNE_ARCH is unset. Please ensure your MACHINE configuration includes a valid tune configuration file which will set this correctly.\n'
 
-    # Check TARGET_ARCH is set correctly
-    if sanity_data.getVar('TARGE_ARCH', False) == '${TUNE_ARCH}':
-        messages = messages + 'TARGET_ARCH is being overwritten, likely by your MACHINE configuration files.\nPlease use a valid tune configuration file which should set this correctly automatically\nand avoid setting this in the machine configuration. See the OE-Core mailing list for more information.\n'
-    
     # Check TARGET_OS is set
     if sanity_data.getVar('TARGET_OS', True) == 'INVALID':
         messages = messages + 'Please set TARGET_OS directly, or choose a MACHINE or DISTRO that does so.\n'
-- 
1.7.9.5




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

* Re: [PATCH] classes/sanity: remove broken TARGET_ARCH check
  2012-05-28 14:34 [PATCH] classes/sanity: remove broken TARGET_ARCH check Paul Eggleton
@ 2012-05-30 12:01 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-05-30 12:01 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2012-05-28 at 15:34 +0100, Paul Eggleton wrote:
> The variable name has been typo'd as TARGE_ARCH since it was introduced
> some time ago, so the check has never worked. Fixing the typo shows that
> the test is not quite functional, so let's just remove it:
> 
> http://lists.linuxtogo.org/pipermail/openembedded-core/2011-October/010613.html
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  meta/classes/sanity.bbclass |    4 ----
>  1 file changed, 4 deletions(-)

Merged to master, thanks.

Richard




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

end of thread, other threads:[~2012-05-30 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-28 14:34 [PATCH] classes/sanity: remove broken TARGET_ARCH check Paul Eggleton
2012-05-30 12:01 ` Richard Purdie

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