Re: Source tree hierarchy

From: Giorgos Keramidas (keramida_at_ceid.upatras.gr)
Date: 11/30/04

  • Next message: Gerard Samuel: "Re: /dev 5.3 vs 4.x, additional rights for user, reboot"
    Date: Tue, 30 Nov 2004 19:16:02 +0200
    To: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
    
    

    On 2004-11-30 17:01, Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> wrote:
    > On Tue, Nov 30, 2004 at 06:54:35PM +0200, Giorgos Keramidas wrote:
    > : On 2004-11-30 15:32, Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> wrote:
    > : > Why are there sometimes 2 levels of the same directory name, one beneath the
    > : > other?
    > : >
    > : > Like sys and i386, for example?
    > :
    > : They are different things:
    > :
    > : /usr/src/sys Kernel sources (entire source tree).
    > :
    > : /usr/src/sys/sys Kernel header files. These are installed as
    > : /usr/include/sys/* by the installation process.
    >
    > Ok, that makes sense. But src/sys/i386/i386 has source code, not just
    > headers. Is this code that is specific to i386 CPUs, while src/sys/i386 is
    > just specific to the system architecture?

    The /usr/src/sys/i386 directory is AFAIK an `architecture' directory,
    like src/sys/sparc64 or src/sys/amd64. The machine-dependent parts of
    the i386 architecure are all under this tree. Header files (include),
    configuration options (conf), BIOS support (bios), or anything else
    related to the i386 architecture is stored here.

    The src/sys/i386/i386 directory is a `machine' related subdirectory.
    The difference of architecture vs. machine becomes more apparent in
    src/sys/amd64 where you find subdirectories like ia32 and amd64 :-)

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Gerard Samuel: "Re: /dev 5.3 vs 4.x, additional rights for user, reboot"