From owner-freebsd-arm@FreeBSD.ORG Sat Jun 23 19:59:07 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A8086106564A for ; Sat, 23 Jun 2012 19:59:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 5BDE48FC0C for ; Sat, 23 Jun 2012 19:59:07 +0000 (UTC) Received: by ggnm2 with SMTP id m2so2601484ggn.13 for ; Sat, 23 Jun 2012 12:59:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=OntLJrIHI8QSiRtW3rbeX6D2o91LG0zNEx8ZDRSBfUY=; b=WaZnaggqLVSJMVqnqqFJB4KVL5sj7IaKni8Pigce2hss0nG7ZVLKQV2d1EhAUiWYN+ CQL61YHyATqHwRKvbqjUew4WqGej7Pod2ugV0ihG9SG1wXjt0kNlapmjjR6iM1zhcc7x VbdFsDM72UCPBFsA7qe3TzcWnjL0ONuQ2WtWPS2ryAzykfVkhd9XKIFXk49/3vtAc2sR vLpBGekqz3TCryiGzH+XNXapOtULGm2bfydFOUKZV5JcEB3CYXWx2147Ysz3b9uhfUva ni8uD5anJ4kUYxkutQ4gOUWH45u/pl66qpPmo9R4nVjS7D/SzS3uArktBOMS57qbByhJ RfoA== Received: by 10.42.158.201 with SMTP id i9mr3488219icx.4.1340481541368; Sat, 23 Jun 2012 12:59:01 -0700 (PDT) Received: from 63.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id z7sm2155191igb.3.2012.06.23.12.59.00 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 23 Jun 2012 12:59:00 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Sat, 23 Jun 2012 13:58:58 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3F1A5B5F-0787-41CE-8C77-8B1F9A601172@freebsd.org> <31C8D224-72D4-4BE8-8EC3-29B078C7DAC3@bsdimp.com> To: Tim Kientzle X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQlAuEUDTcNh328nrhIm2jOmPog1W3T8Pe69QWtJlrVyNtGaKjdAe7NrCclJpwrRO0qh2D+p Cc: arm@freebsd.org Subject: Re: armv6 tree vs. buildkernel X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 19:59:07 -0000 On Jun 23, 2012, at 12:58 PM, Tim Kientzle wrote: > On Jun 23, 2012, at 7:35 AM, Warner Losh wrote: >>=20 >>> P.S. How is CPUTYPE/TARGET_CPUTYPE supposed to be inferred for = regular "buildworld"? >>> The only option I can find is to set it explicitly in /etc/src.conf >>=20 >> It can't possibly work very well. We need to get TARGET_ARCH=3Darmv6 = working instead of continuing these kludges. >=20 >=20 > Help get me oriented and I'll start grinding through this. >=20 > What values of TARGET_ARCH should be supported? arm, armeb, armv6 (and maybe armv6eb if they make those). > Right now, there are ARCH values of arm and armeb. > Should there be armv6eb? armv7? There should be no armv7, since armv6 means v6 and later. At some point = there will be an arm64, I suppose too. > I'm also unclear on the distinction between make's MACHINE_ARCH > and uname -p; are these supposed to be the same? If so, shouldn't > make be using a sysctl instead of a hard-coded value? I thought it already did. That might not be a bad idea. MACHINE_ARCH = and uname -p should be identical. If they aren't, that's a bug. I posted patches here before to do all (most?) of MACHINE_ARCH=3Darmv6. = Have you tried them on the armv6 branch? I've not had a chance to port = them over yet. Warner