From: Mark Hatle <mark.hatle@windriver.com>
To: "Robert P. J. Day" <rpjday@crashcourse.ca>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: tweaking insane.bbclass to handle MIPS SEAD-3?
Date: Thu, 18 Apr 2013 11:02:32 -0500 [thread overview]
Message-ID: <51701918.8070001@windriver.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1304181136120.22645@oneiric>
On 4/18/13 10:44 AM, Robert P. J. Day wrote:
> On Thu, 18 Apr 2013, Mark Hatle wrote:
>
>> On 4/18/13 9:25 AM, Robert P. J. Day wrote:
>
> ... snip ...
>
>>> DEFAULTTUNE ?= "mips32"
>>>
>>> require conf/machine/include/mips/arch-mips.inc
>>>
>>> TUNEVALID[mips32] = "Enable mips32 specific processor optimizations"
>>> TUNECONFLICTS[mips32] = "n64 n32"
>>> TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "mips32",
>>> "-march=mips32", "", d)}"
>>>
>>> AVAILTUNES += "mips32 mips32el mips32-nf mips32el-nf"
>>>
>>> so, off the top of my head, i suggested adding to local.conf:
>>>
>>> DEFAULTTUNE := "mips32el"
>>
>> A quick look at master says that that should be fine. It will result in:
>>
>> TUNE_FEATURES = "o32 fpu-hard mips32"
>> BASE_LIB = "lib"
>> TUNE_ARCH = "mipsel"
>> TUNE_PKGARCH = "mips32el"
>> PACKAGE_EXTRA_ARCHS = "mipsel mips32el"
>>
>> Changing the tune to "mips32el-nf", will result in a mips32 little
>> endian, soft-float system. And there should be no sanity or other
>> failures.
>>
>> (Note, the difference between 'mips' and 'mips32' is use of -march=mips32.)
>>
>>> since that's listed as one of the "AVAILTUNES", but i was just
>>> guessing. from what i heard, that *partly* solved the problem but
>>> the rest of the solution is what you read above.
>>>
>>> i can easily ask them to try a different recipe, they're all
>>> set up to build and test a rootfs. what *would* have been the
>>> right approach?
>>
>> If the tuning is set right, then everything else should "just work".
>> They can do the DEFAULTTUNE setting in their local.conf, but it's
>> better to do it in their machine.conf file. (Style vs required.)
>>
>> They can verify the settings using 'bitbake -e' and looking for the
>> CC flags, and other related items to make sure they are right for
>> this system.
>
> so if i read you correctly, all i need to do is copy the existing
> routerstationpro.conf to, say, sead3.conf, and add the single line:
>
> DEFAULTTUNE := "mips32el-nf" <--- add that
> require conf/machine/include/tune-mips32.inc
>
> that about right? i'll give that a shot right away just to see if it
> builds. can't test it without the kit but building will still be a
> useful exercise.
Yes that should work.
--Mark
> rday
>
next prev parent reply other threads:[~2013-04-18 16:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 12:38 tweaking insane.bbclass to handle MIPS SEAD-3? Robert P. J. Day
2013-04-18 14:08 ` Mark Hatle
2013-04-18 14:25 ` Robert P. J. Day
2013-04-18 15:08 ` Mark Hatle
2013-04-18 15:44 ` Robert P. J. Day
2013-04-18 16:02 ` Mark Hatle [this message]
2013-04-18 16:07 ` Robert P. J. Day
2013-04-18 17:14 ` Robert P. J. Day
2013-04-19 9:36 ` Paul Eggleton
2013-04-19 10:53 ` Robert P. J. Day
2013-04-19 11:09 ` Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51701918.8070001@windriver.com \
--to=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=rpjday@crashcourse.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox