From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3847 Path: news.gmane.org!not-for-mail From: Rob Landley Newsgroups: gmane.linux.lib.musl.general Subject: Re: Embedded distro Date: Wed, 07 Aug 2013 11:36:46 -0500 Message-ID: <1375893406.8422.27@driftwood> References: <51FD2D8A.5060402@mybluelight.com> <20130803164312.GJ25714@port70.net> <51FD4870.1000902@mybluelight.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-zGVutSfuXbElqujLr+MU" X-Trace: ger.gmane.org 1375898742 2325 80.91.229.3 (7 Aug 2013 18:05:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 18:05:42 +0000 (UTC) Cc: Kirk Terrell To: musl@lists.openwall.com Original-X-From: musl-return-3851-gllmg-musl=m.gmane.org@lists.openwall.com Wed Aug 07 20:05:45 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V787E-0003qs-NB for gllmg-musl@plane.gmane.org; Wed, 07 Aug 2013 20:05:44 +0200 Original-Received: (qmail 6021 invoked by uid 550); 7 Aug 2013 18:05:44 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 6006 invoked from network); 7 Aug 2013 18:05:43 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :message-id:mime-version:content-type; bh=q5+FYp67sTWlGnuN4Qlr2uelzVVYt/1RgbRSRxHHnCM=; b=QPkh1VW2FWecFW0vGRO/DT3Ca5+VW7fylqCPeiaZafYL2QBeVuWha/NKw90KauBp6y F7bvHsVh2szSEqe99i2OjpkEVMIMoaBflMjus9DFruRaV4bIVaY4F1x0Suwav6OyVeI8 x/NB92E863PVvniZTW2kLd396ZpG+dPouv3Jf3TmpYzOgGDUgcOwv0Z+eUaxCC/PKdr9 20YEOr0cmXaT3itIpTFDY6FuAubqE5jIGn9BrX5HqV8X+ZxVs+wpPfCjbmd1iisJYXEd xa9ouu7qotF54LuCPlZw6MkXTPE8uwEsyXJWkTNSLUhPoXLUzvk6h3ZJYBBMYpLVXm0V KGaQ== X-Gm-Message-State: ALoCoQn5XsM2a/2k+tWKcsLnZe6hnga8ZLax48KPnyYDNyKhVp2Yz+fg7++OJK2rpFkpftJK6j7+ X-Received: by 10.60.15.200 with SMTP id z8mr1225302oec.99.1375898731937; Wed, 07 Aug 2013 11:05:31 -0700 (PDT) In-Reply-To: <51FD4870.1000902@mybluelight.com> (from knjterrell@mybluelight.com on Sat Aug 3 13:14:08 2013) X-Mailer: Balsa 2.4.11 Xref: news.gmane.org gmane.linux.lib.musl.general:3847 Archived-At: --=-zGVutSfuXbElqujLr+MU Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 08/03/2013 01:14:08 PM, Kirk Terrell wrote: > On 08/03/2013 09:43 AM, Szabolcs Nagy wrote: >> * Kirk Terrell [2013-08-03 09:19:22 =20 >> -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. >>>=20 >> is the --host really the CLFS_TARGET? should it be renamed in the =20 >> configure script? >>=20 >> CROSS_COMPILE=3D${CLFS_TARGET}- ./configure --prefix=3D${CLFS} =20 >> --disable-gcc-wrapper \ >> --host=3D${CLFS_TARGET} --build=3D${CLFS_HOST} =20 >> --syslibdir=3D${CLFS}/lib --includedir=3D${CLFS}/usr/include > According to ./configure --help > System types: > --target=3DTARGET configure to run on target TARGET [detected] > --host=3DHOST same as --target >=20 > I think --host is legitimate but is confusing. I should look into =20 > changing this. >=20 >>=20 >> what needs these header hacks? >>=20 >> cp ${CLFS}/usr/include/linux/if_slip.h =20 >> ${CLFS}/usr/include/net/if_slip.h >> cp ${CLFS}/usr/include/net/if_arp.h =20 >> ${CLFS}/usr/include/linux/if_arp.h >>=20 >>=20 >>=20 > I did this because busybox complained about header locations - these =20 > are headers > from the kernel, not from Musl. This issue did not present when =20 > building a > similar system using uClibc. uClibc #includes the kernel headers in its own headers, and/or parses =20 stuff out of them at build time. Thus you have to tell uClibc where the =20 kernel headers are in order to build uClibc, so kernel headers are =20 installed as part of the uClibc build process. Musl doesn't use kernel headers. You can install them after the fact =20 (attached is the script I use to do so), but musl itself is not =20 involved in this. Rob= --=-zGVutSfuXbElqujLr+MU Content-Type: application/x-shellscript; name=whack2.sh Content-Disposition: attachment; filename=whack2.sh Content-Transfer-Encoding: base64 IyEvYmluL2Jhc2gKCnJtIC1yZiBpbnN0YWxsICYmCmNkIG11c2wgJiYKZ2l0IGNsZWFuIC1mZHgg JiYKZ2l0IGNoZWNrb3V0IC1mICYmCmdpdCBwdWxsICYmCi4vY29uZmlndXJlIC0tcHJlZml4PSQo cmVhZGxpbmsgLWYgJFBXRC8uLi9pbnN0YWxsKSAmJgptYWtlIC1qIDMgaW5zdGFsbCAmJgpjZCAu LiAmJgpsbiAtc2YgJChmaW5kIC91c3IvaW5jbHVkZSAtbmFtZSBhc20pIGluc3RhbGwvaW5jbHVk ZS9hc20gJiYKbG4gLXNmIC91c3IvaW5jbHVkZS9saW51eCBpbnN0YWxsL2luY2x1ZGUvbGludXgg JiYKbG4gLXNmIC91c3IvaW5jbHVkZS9hc20tZ2VuZXJpYyBpbnN0YWxsL2luY2x1ZGUvYXNtLWdl bmVyaWMgJiYKbG4gLXNmICQod2hpY2ggc3RyaXApIGluc3RhbGwvYmluL211c2wtc3RyaXAgJiYK bG4gLXNmIG11c2wtZ2NjIGluc3RhbGwvYmluL211c2wtY2MK --=-zGVutSfuXbElqujLr+MU--