* [musl] FYI: llvm-musl-hexagon toolchain build script v1
@ 2021-07-26 0:11 Rob Landley
2021-07-26 0:14 ` Rich Felker
2021-07-26 3:49 ` Patrick Oppenlander
0 siblings, 2 replies; 4+ messages in thread
From: Rob Landley @ 2021-07-26 0:11 UTC (permalink / raw)
To: musl
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
Note the first three lines are the 3 git archives to clone into the current
directory. (llvm, linux, and qualcomm's musl-hexagon fork)
Loosely based on the
https://github.com/qemu/qemu/blob/master/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh
with a _LOT_ of simplification. Yes, it can still be slimmed down further,
working on it ala
https://lists.nongnu.org/archive/html/qemu-devel/2021-07/msg04610.html
I built a toybox binary which qemu-hexagon could run, and I built a
comet_defconfig vlinux which... doesn't seem to have a qemu-system-hexagon board
emulation yet? Hmmm...
Their musl hexagon branch is a couple dozen patches on top of a commit from
January of this year. Should rebase reasonnably to current without too much effort.
Rob
P.S. This chip is in every Android phone/tablet with a qualcomm chipset. Linux
was ported to it in 2010, which I know about because I worked on it
(http://landley.net/notes-2012.html#24-02-2012) but despite the hardware's
ubiquity it hasn't been particularly hobbyist accessible before now, but with
support finally going into QEMU...
[-- Attachment #2: script.sh --]
[-- Type: application/x-shellscript, Size: 2327 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [musl] FYI: llvm-musl-hexagon toolchain build script v1
2021-07-26 0:11 [musl] FYI: llvm-musl-hexagon toolchain build script v1 Rob Landley
@ 2021-07-26 0:14 ` Rich Felker
2021-07-26 0:49 ` Rob Landley
2021-07-26 3:49 ` Patrick Oppenlander
1 sibling, 1 reply; 4+ messages in thread
From: Rich Felker @ 2021-07-26 0:14 UTC (permalink / raw)
To: Rob Landley; +Cc: musl
On Sun, Jul 25, 2021 at 07:11:43PM -0500, Rob Landley wrote:
> Note the first three lines are the 3 git archives to clone into the current
> directory. (llvm, linux, and qualcomm's musl-hexagon fork)
>
> Loosely based on the
> https://github.com/qemu/qemu/blob/master/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh
> with a _LOT_ of simplification. Yes, it can still be slimmed down further,
> working on it ala
> https://lists.nongnu.org/archive/html/qemu-devel/2021-07/msg04610.html
>
> I built a toybox binary which qemu-hexagon could run, and I built a
> comet_defconfig vlinux which... doesn't seem to have a qemu-system-hexagon board
> emulation yet? Hmmm...
>
> Their musl hexagon branch is a couple dozen patches on top of a commit from
> January of this year. Should rebase reasonnably to current without too much effort.
Yes, it was proposed here a while back after a long time of being
something done independently that we hadn't seen. I need to look back
at the thread to determine where things are with getting it
upstreamable. My lack of tooling to build and test it is partly a
blocker, so if you're willing to help with that side of things it'd be
great.
Rich
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [musl] FYI: llvm-musl-hexagon toolchain build script v1
2021-07-26 0:14 ` Rich Felker
@ 2021-07-26 0:49 ` Rob Landley
0 siblings, 0 replies; 4+ messages in thread
From: Rob Landley @ 2021-07-26 0:49 UTC (permalink / raw)
To: Rich Felker; +Cc: musl, Taylor Simpson
On 7/25/21 7:14 PM, Rich Felker wrote:
> On Sun, Jul 25, 2021 at 07:11:43PM -0500, Rob Landley wrote:
>> Note the first three lines are the 3 git archives to clone into the current
>> directory. (llvm, linux, and qualcomm's musl-hexagon fork)
>>
>> Loosely based on the
>> https://github.com/qemu/qemu/blob/master/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh
>> with a _LOT_ of simplification. Yes, it can still be slimmed down further,
>> working on it ala
>> https://lists.nongnu.org/archive/html/qemu-devel/2021-07/msg04610.html
>>
>> I built a toybox binary which qemu-hexagon could run, and I built a
>> comet_defconfig vlinux which... doesn't seem to have a qemu-system-hexagon board
>> emulation yet? Hmmm...
>>
>> Their musl hexagon branch is a couple dozen patches on top of a commit from
>> January of this year. Should rebase reasonnably to current without too much effort.
>
> Yes, it was proposed here a while back after a long time of being
> something done independently that we hadn't seen. I need to look back
> at the thread to determine where things are with getting it
> upstreamable. My lack of tooling to build and test it is partly a
> blocker, so if you're willing to help with that side of things it'd be
> great.
Happy to. The toolchain that built Worked For Me with stock-ish devuan. (Using
the cmake/ninja from the repo, nothing special.) According to the discussion
thread I SHOULD be able to remove most of the compiler flags and micromanaging
options, it's just slow to iterate builds taking a thing or two out at a time
and retesting.
QEMU hexagon application emulation is there and working now in vanilla (git
cloned qemu, did the "populate your darn subrepos" invocation, and then
./configure and make.) I haven't found qemu system emulation yet but presumably
there's something in the works. (Their kernel header build copied their full
kernel build context, and they're using comet_defconfig which is at least the
same _name_ as those test boards from 2010. So not exactly a rapidly moving
target on that side of things. :)
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [musl] FYI: llvm-musl-hexagon toolchain build script v1
2021-07-26 0:11 [musl] FYI: llvm-musl-hexagon toolchain build script v1 Rob Landley
2021-07-26 0:14 ` Rich Felker
@ 2021-07-26 3:49 ` Patrick Oppenlander
1 sibling, 0 replies; 4+ messages in thread
From: Patrick Oppenlander @ 2021-07-26 3:49 UTC (permalink / raw)
To: musl
On Mon, Jul 26, 2021 at 9:54 AM Rob Landley <rob@landley.net> wrote:
>
> Note the first three lines are the 3 git archives to clone into the current
> directory. (llvm, linux, and qualcomm's musl-hexagon fork)
>
> Loosely based on the
> https://github.com/qemu/qemu/blob/master/tests/docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh
> with a _LOT_ of simplification. Yes, it can still be slimmed down further,
> working on it ala
> https://lists.nongnu.org/archive/html/qemu-devel/2021-07/msg04610.html
>
Hi Rob,
FYI I have a fork of musl-cross-make with clang support here:
https://github.com/apexrtos/musl-cross-make/tree/clang
The bit with all the cmake cra^H^H^Hmagic is here:
https://github.com/apexrtos/musl-cross-make/blob/clang/litecross/Makefile.clang
Looks like you've done a better job of minimising flags than me (cmake
always gives me a headache). If it's OK with you I'd like to go
through your flags and see if I can tidy mine up a bit.
Patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-07-26 3:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26 0:11 [musl] FYI: llvm-musl-hexagon toolchain build script v1 Rob Landley
2021-07-26 0:14 ` Rich Felker
2021-07-26 0:49 ` Rob Landley
2021-07-26 3:49 ` Patrick Oppenlander
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).