mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rob Landley <rob@landley.net>
To: Rich Felker <dalias@libc.org>
Cc: musl@lists.openwall.com, Taylor Simpson <tsimpson@quicinc.com>
Subject: Re: [musl] FYI: llvm-musl-hexagon toolchain build script v1
Date: Sun, 25 Jul 2021 19:49:07 -0500	[thread overview]
Message-ID: <ff3c0456-1047-f3da-01ef-2158bf2e1780@landley.net> (raw)
In-Reply-To: <20210726001440.GO13220@brightrain.aerifal.cx>



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

  reply	other threads:[~2021-07-26  0:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-26  0:11 Rob Landley
2021-07-26  0:14 ` Rich Felker
2021-07-26  0:49   ` Rob Landley [this message]
2021-07-26  3:49 ` Patrick Oppenlander

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=ff3c0456-1047-f3da-01ef-2158bf2e1780@landley.net \
    --to=rob@landley.net \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=tsimpson@quicinc.com \
    /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.
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).