Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Jack Mitchell <ml@communistcode.co.uk>
To: openembedded-core@lists.openembedded.org
Subject: Re: SDK extract errors on master
Date: Mon, 6 Jul 2015 13:30:31 +0100	[thread overview]
Message-ID: <559A74E7.8080803@communistcode.co.uk> (raw)
In-Reply-To: <559A67FE.4050000@communistcode.co.uk>

On 06/07/15 12:35, Jack Mitchell wrote:
> On 03/07/15 15:56, Jack Mitchell wrote:
>> Built an SDK today on 7eb0abc5f4d971d9a511c93cfb2eb52b72e6f228 and 
>> when I tried to install it I got the following error:
>>
>> Setting it up...ls: cannot access 
>> /home/jack/Work/build/openembedded/sdk/1/x86_64/environment-setup-*: 
>> No such file or directory
>>
>> I have been messing about with the SDK install path and at one point 
>> it did spew out a load of files installed vs shipped warnings I 
>> assume due to a change of path and it getting upset about it, but 
>> since then I deleted the tmp directory and rebuilt a new SDK without 
>> warnings. However, both acted in the same way.
>>
>> The SDK then sits without installing, seemingly stuck on: grep 
>> OECORE_NATIVE_SYSROOT, which I assume means it's looking for the 
>> (non-existant) environment file.
>>
>> Any clues? Is this broken for anyone else?
>>
>> Cheers,
>> Jack.
>
> Ok, I figured out how I broke it; I used a relative path in SDKPATH. i.e.
>
> SDKPATH=/path/to/sdk/../rel-sdk
>
> So, first off; should this be supported? Secondly, the use-case I was 
> trying to get at was to position an SDK relative to the build dir, i.e.
>
> SDKPATH=${TOPDIR}/../sdk
>
> Is there a better way to do this. I guess this problem could be solved 
> somewhere in an SDK class by changing the relative path to an absolute 
> path. Ideas?
>
> Cheers,
> Jack.

I found an ugly work-around but it would be nice for this to be 
supported in the future, or at least error on a relative path.

SDKPATH := "${@os.path.abspath(d.getVar('TOPDIR', 
True)+"/../sdk/"+d.getVar('SDK_VERSION', True)+"/"+d.getVar('SDK_ARCH', 
True))}"

Cheers,


  reply	other threads:[~2015-07-06 12:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03 14:56 SDK extract errors on master Jack Mitchell
2015-07-06 11:35 ` Jack Mitchell
2015-07-06 12:30   ` Jack Mitchell [this message]
2015-07-06 15:56     ` Jack Mitchell
2015-07-06 16:07       ` Jack Mitchell

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=559A74E7.8080803@communistcode.co.uk \
    --to=ml@communistcode.co.uk \
    --cc=openembedded-core@lists.openembedded.org \
    /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