From owner-freebsd-embedded@FreeBSD.ORG Wed Sep 11 19:56:52 2013 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A7485E25; Wed, 11 Sep 2013 19:56:52 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id 7E1BD2400; Wed, 11 Sep 2013 19:56:51 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id 0BD825837F; Wed, 11 Sep 2013 14:56:45 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id S8IIJz6OFn9X; Wed, 11 Sep 2013 14:56:44 -0500 (CDT) Received: from terminus.icecube.wisc.edu (terminus.icecube.wisc.edu [172.16.223.97]) by mail.icecube.wisc.edu (Postfix) with ESMTP id DCC465830A; Wed, 11 Sep 2013 14:56:44 -0500 (CDT) Message-ID: <5230CAFC.3060503@freebsd.org> Date: Wed, 11 Sep 2013 14:56:44 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130906 Thunderbird/17.0.8 MIME-Version: 1.0 To: Warner Losh Subject: Re: CVS commit: src/lib/csu References: <24478.1378868144@splode.eterna.com.au> <38D6DE4E-C4E3-4239-A198-51D6AC7711AC@bsdimp.com> <20130911092115.139716ce@bender.Home> <201309111049.51003.jhb@freebsd.org> <18371758-4A05-4C7B-AF7B-AD07AC9529F0@bsdimp.com> In-Reply-To: <18371758-4A05-4C7B-AF7B-AD07AC9529F0@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" , embedded@freebsd.org, freebsd-embedded@freebsd.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2013 19:56:52 -0000 On 09/11/13 14:51, Warner Losh wrote: > On Sep 11, 2013, at 8:49 AM, John Baldwin wrote: > >> On Wednesday, September 11, 2013 4:21:15 am Andrew Turner wrote: >>> On Tue, 10 Sep 2013 21:12:51 -0600 >>> Warner Losh wrote: >>> >>>> Perhaps we should do it too... I also like this elf-notes.html idea >>>> too... >>> Something like the patch I've attached from the thread at [1]? It adds >>> a MACHINE_ARCH note type. >> bapt@ will want this for pkgng. It might be nice to go whole hog and store >> the entire triple (MACHINE, MACHINE_ARCH, MACHINE_CPUARCH). > MACHINE is just the kernel interface, might be only mildly useful to pkgng. > MACHINE_ARCH is useful since it uniquely defines the ABI we're using, by definition. > MACHINE_CPUARCH can be derived from MACHINE_ARCH and isn't actually useful to pkgng at all. It is a build-time value to select which files from our tree to build with. > > Warner > So the last time we had this discussion, the consensus was that we add a sysctl with the list of all supported emulations in terms of MACHINE_ARCH. This is probably about 10 minutes of work aside from how to handle Linux emulations. Is this worth doing for 10.0? -Nathan