Skip to contentSkip to conversation

Patch "Don't inherit siteinfo in base.bbclass" breaks SlugOS

DISCUSSION Mike Westerhof 2 participants 3 messages Mar 20, 2010

lore
Share & tools
lore

Mike Westerhof

author Acked-by Richard Purdie Acked-by Marcin Juszkiewicz
#0 lore raw

The following commit breaks SlugOS. I apologize for starting a new thread on this, but I am unable to find the original discussion on the OE ml (but I probably missed it in the several hundred that piled up in my inbox this week).

------------
commit a215c2f283476776567506c2e3f969c48f7e5e3d

Author: Chris Larson <[email protected]>
Date:   Tue Mar 9 16:54:57 2010 -0700

Don't inherit siteinfo in base.bbclass

------------

In a nutshell, the ixp4xx can run in either endianess, and SlugOS builds both a BE and an LE image. Removing "inherit siteinfo" from base.bbclass causes parsing failures in every recipe.

As an example of the issue, consider this lines in conf/distro/include/slugos.conf:

IMAGE_BASENAME = "${@['slugos${SITEINFO_ENDIANESS}', 'ucslugc'][bb.data.getVar('TARGET_OS', d, 1) == 'linux-uclibc']}"

and

DISTRO_NAME ?= "INVALID-${SITEINFO_ENDIANESS}-${ARM_INSTRUCTION_SET}-${TARGET_OS}"

There may be other locations (such as recipes, etc) where this problem may exist, these were just the two locations I found easily.

Any ideas how to address this?

-Mike (mwester)

#1 lore raw

Damn, I fixed all the recipes using SITEINFO, but missed distros, sorry about that.
I'd suggest doing INHERIT += "siteinfo" in the distro .conf, for now.
Again, sorry about the breakage.

Quoted 46 lines · Mike Westerhof

The following commit breaks SlugOS. I apologize for starting a new thread on this, but I am unable to find the original discussion on the OE ml (but I probably missed it in the several hundred that piled up in my inbox this week).

------------
commit a215c2f283476776567506c2e3f969c48f7e5e3d

Author: Chris Larson <[email protected]>
Date:   Tue Mar 9 16:54:57 2010 -0700

Don't inherit siteinfo in base.bbclass

------------

In a nutshell, the ixp4xx can run in either endianess, and SlugOS builds both a BE and an LE image. Removing "inherit siteinfo" from base.bbclass causes parsing failures in every recipe.

As an example of the issue, consider this lines in conf/distro/include/slugos.conf:

IMAGE_BASENAME = "${@['slugos${SITEINFO_ENDIANESS}', 'ucslugc'][bb.data.getVar('TARGET_OS', d, 1) == 'linux-uclibc']}"

and

DISTRO_NAME ?= "INVALID-${SITEINFO_ENDIANESS}-${ARM_INSTRUCTION_SET}-${TARGET_OS}"

There may be other locations (such as recipes, etc) where this problem may exist, these were just the two locations I found easily.

Any ideas how to address this?

-Mike (mwester)

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw

Should be fixed now.

Quoted 64 lines · Chris Larson

Damn, I fixed all the recipes using SITEINFO, but missed distros, sorry about that.
I'd suggest doing INHERIT += "siteinfo" in the distro .conf, for now.
Again, sorry about the breakage.

Quoted 37 lines · Mike Westerhof

The following commit breaks SlugOS. I apologize for starting a new thread on this, but I am unable to find the original discussion on the OE ml (but I probably missed it in the several hundred that piled up in my inbox this week).

------------
commit a215c2f283476776567506c2e3f969c48f7e5e3d

Author: Chris Larson <[email protected]>
Date:   Tue Mar 9 16:54:57 2010 -0700

Don't inherit siteinfo in base.bbclass

------------

In a nutshell, the ixp4xx can run in either endianess, and SlugOS builds both a BE and an LE image. Removing "inherit siteinfo" from base.bbclass causes parsing failures in every recipe.

As an example of the issue, consider this lines in conf/distro/include/slugos.conf:

IMAGE_BASENAME = "${@['slugos${SITEINFO_ENDIANESS}', 'ucslugc'][bb.data.getVar('TARGET_OS', d, 1) == 'linux-uclibc']}"

and

DISTRO_NAME ?= "INVALID-${SITEINFO_ENDIANESS}-${ARM_INSTRUCTION_SET}-${TARGET_OS}"

There may be other locations (such as recipes, etc) where this problem may exist, these were just the two locations I found easily.

Any ideas how to address this?

Quoted 9 lines

-Mike (mwester)

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics