From owner-freebsd-current@FreeBSD.ORG Thu Mar 4 18:36:21 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A0B9106566B for ; Thu, 4 Mar 2010 18:36:21 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0EA618FC1C for ; Thu, 4 Mar 2010 18:36:20 +0000 (UTC) Received: by pvg3 with SMTP id 3so970425pvg.13 for ; Thu, 04 Mar 2010 10:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LjqRZVjOXHhe7HY2Y13ziJvNteJCcvuUEwo8ovUng50=; b=a2HJmX5kLgv3siVGVxYheXFs/vrjEaVx2lhPT8G4xe/dxfHpIg3AakfipnoIUBJkTV ysuRvXosOgqUaFRSAYHnhjVm4kcxOz46TBM7ElAwRB7VKl4Wg8e7+LHzptc5xehohduZ fU/+KW37n9koaZZCtLYGTdcyHDoCrwmV/pkCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=QhuHMvrvikjqmMEk7k24SPfzusEx1MftFXizf1QRWIAvULsrfERydB1UDIRAMxkVwu 1jZGcij/BGlG7Rt5jPLPFpbM90HGTce2Bylq8bPX5JJ931rnJU6kY3DgJg6nuJ3Akc79 JYVjmA+219jutUXH/tWGLEQdOIxC9j/y8Hqi4= MIME-Version: 1.0 Received: by 10.114.28.15 with SMTP id b15mr1228242wab.18.1267727775827; Thu, 04 Mar 2010 10:36:15 -0800 (PST) In-Reply-To: <20100304.102007.1151864885495261672.imp@bsdimp.com> References: <401095.35021.qm@web59107.mail.re1.yahoo.com> <20100304.102007.1151864885495261672.imp@bsdimp.com> Date: Thu, 4 Mar 2010 10:36:15 -0800 Message-ID: From: Xin LI To: "M. Warner Losh" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, ddkprog@yahoo.com Subject: Re: propose: all arch move into a separate dir X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 18:36:21 -0000 On Thu, Mar 4, 2010 at 9:20 AM, M. Warner Losh wrote: > In message: <401095.35021.qm@web59107.mail.re1.yahoo.com> > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0paradox writ= es: > : iam propose all the architecture move in a separate directory > : as is done in openbsd and netbsd > : > : ie > : #mkdir /usr/src/sys/arch > : #mv -R /usr/src/sys/{amd64,arm,i386,ia64,mips,pc98,powerpc,sparc64,sun4= v,xen,x86) /usr/src/sys/arch/ > : > : Would it ever done in freebsd? > > No. =C2=A0That ship sailed in 1995. > > Besides, it would be the mother of all bikesheds. =C2=A0Do we want to hav= e > a sys/cpu/{mips,x86,arm,etc} for CPU support and a sys/arch/$MACHINE > for support for machines that use that, how does that interact with > source doe that assumes certain things in machine/foo.h. =C2=A0Or do we > want to have better organized sub-ports. =C2=A0Do we want to reorg config > while we're at it, and what about modules. =C2=A0And sys/dev is too > crowded, let's fix that too while we're at it. > > The end result: gridlock and nothing will happen. One good thing (in my opinion) that NetBSD and Darwin have is that they have a "common" tree which holds the common files that shared between kernel and userland libc. Currently we have 2 or more copies of certain files in the tree but I'm not sure if it's a good idea to migrate them together into a src/common tree, or just modify the Makefile to reference the one copy? Eliminating duplicated files makes it easier for changes to propagate into different areas (like, we have optimization apply against all components, or have bug fixed in one time). Cheers, --=20 Xin LI http://www.delphij.net