From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Maxim Yu. Osipov" <mosipov@ilbers.de>,
Henning Schild <henning.schild@siemens.com>
Cc: isar-users <isar-users@googlegroups.com>
Subject: Re: SDK feedback
Date: Wed, 12 Sep 2018 12:15:40 +0200 [thread overview]
Message-ID: <99c2c7b3-5cfd-659f-1bcd-5ce8a5b932ef@siemens.com> (raw)
In-Reply-To: <a01d6594-fa03-3ab6-77f8-ffc0ca06c6ce@ilbers.de>
On 12.09.18 09:42, Maxim Yu. Osipov wrote:
> Hi Jan,
>
> On 09/11/2018 08:57 PM, Jan Kiszka wrote:
>> On 11.09.18 19:55, Jan Kiszka wrote:
>>> Hi Maksim,
>>>
>>> finally, I actually used the SDK on an ARM target, and it worked nicely! One
>>> question and one feature request, though:
>>>
>>> I did not do the chroot dance and rather looked for a way to use the cross
>>> compiler directly. And it /seems/ to work, at least for the trivial case:
>>>
>>> export LD_LIBRARY_PATH=/path-to-sdk/usr/lib/x86_64-linux-gnu/
>>> sdk/usr/bin/arm-linux-gnueabihf-gcc --sysroot /path-to-sdk \
>>> -o hello hello.c
>>>
>>> Does this make sense, at least for the classic "I need a crosscompiler and
>>> the corresponding target libs" case? When will it start to break?
>
> Honestly I always played with chroot and never tried LD_LIBRARY_PATH approach in
> more complicated case, so I can't say which problems may pop up.
Henning, maybe once worth a try on some of the recent examples we now have (just
for testing, they are normally built as part of a custom Isar layer).
>
>> Forgot to state: my host was a SUSE 42.2.
>
> Nice to hear that it works under SUSE too
> (I only tried sdk on Fedora box).
>
>>
>>>
>>>
>>> And then I noticed that the deployed SDK image could be a bit slimmer,
>>> specifically by purging /var/cache/apt prior to packaging. Too lazy now to
>>> write my own patch. :)
>
> Got it ;) (I will prepare the patch).
TIA!
BTW, if that direct call model works, we may shrink the SDK archive for that
purpose even further (as there is no need to have a complete chroot anymore).
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
next prev parent reply other threads:[~2018-09-12 10:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-11 17:55 Jan Kiszka
2018-09-11 17:57 ` Jan Kiszka
2018-09-12 7:42 ` Maxim Yu. Osipov
2018-09-12 10:15 ` Jan Kiszka [this message]
2018-09-12 11:02 ` Henning Schild
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=99c2c7b3-5cfd-659f-1bcd-5ce8a5b932ef@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=mosipov@ilbers.de \
/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