mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rob Landley <rob@landley.net>
To: musl@lists.openwall.com
Cc: Kirk Terrell <knjterrell@mybluelight.com>
Subject: Re: Embedded distro
Date: Wed, 07 Aug 2013 11:36:46 -0500	[thread overview]
Message-ID: <1375893406.8422.27@driftwood> (raw)
In-Reply-To: <51FD4870.1000902@mybluelight.com> (from knjterrell@mybluelight.com on Sat Aug  3 13:14:08 2013)

[-- Attachment #1: Type: text/plain, Size: 1888 bytes --]

On 08/03/2013 01:14:08 PM, Kirk Terrell wrote:
> On 08/03/2013 09:43 AM, Szabolcs Nagy wrote:
>> * Kirk Terrell <knjterrell@mybluelight.com> [2013-08-03 09:19:22  
>> -0700]:
>>> I've been working on a distro that is a fork from the CLFS Embedded
>>> project that uses musl libc in place of libc. I've managed to boot
>>> an emulated Vexpress-a9 target using the instructions at
>>> http://kanj.github.io/elfs/book/armMusl/index.html.
>>> 
>> is the --host really the CLFS_TARGET? should it be renamed in the  
>> configure script?
>> 
>> CROSS_COMPILE=${CLFS_TARGET}-  ./configure --prefix=${CLFS}  
>> --disable-gcc-wrapper \
>>      --host=${CLFS_TARGET} --build=${CLFS_HOST}  
>> --syslibdir=${CLFS}/lib --includedir=${CLFS}/usr/include
> According to ./configure --help
> System types:
>   --target=TARGET         configure to run on target TARGET [detected]
>   --host=HOST             same as --target
> 
> I think --host is legitimate but is confusing. I should look into  
> changing this.
> 
>> 
>> what needs these header hacks?
>> 
>> cp ${CLFS}/usr/include/linux/if_slip.h  
>> ${CLFS}/usr/include/net/if_slip.h
>> cp ${CLFS}/usr/include/net/if_arp.h  
>> ${CLFS}/usr/include/linux/if_arp.h
>> 
>> 
>> 
> I did this because busybox complained about header locations - these  
> are headers
> from the kernel, not from Musl.  This issue did not present when  
> building a
> similar system using uClibc.

uClibc #includes the kernel headers in its own headers, and/or parses  
stuff out of them at build time. Thus you have to tell uClibc where the  
kernel headers are in order to build uClibc, so kernel headers are  
installed as part of the uClibc build process.

Musl doesn't use kernel headers. You can install them after the fact  
(attached is the script I use to do so), but musl itself is not  
involved in this.

Rob

[-- Attachment #2: whack2.sh --]
[-- Type: application/x-shellscript, Size: 435 bytes --]

  parent reply	other threads:[~2013-08-07 16:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-03 16:19 Kirk Terrell
2013-08-03 16:43 ` Szabolcs Nagy
2013-08-03 18:14   ` Kirk Terrell
2013-08-03 19:57     ` Rich Felker
2013-08-04  2:56       ` Kirk Terrell
2013-08-04 11:40         ` Rich Felker
2013-08-05  0:57           ` Kirk Terrell
2013-08-05  1:16             ` Rich Felker
2013-08-07 16:36     ` Rob Landley [this message]
2013-08-03 20:28 ` John Spencer

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=1375893406.8422.27@driftwood \
    --to=rob@landley.net \
    --cc=knjterrell@mybluelight.com \
    --cc=musl@lists.openwall.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).