Subject: Re: Atheros .o-file placement proposal
To: Bill Studenmund <wrstuden@NetBSD.org>
From: Sam Leffler <sam@errno.com>
List: tech-kern
Date: 09/08/2003 17:51:38
>> I propose that the platform-independent Atheros HAL header files go
>> into src/sys/contrib/dev/ath/, and the i386-dependent objects go into
>> src/sys/contrib/arch/i386/dev/ath/.
>>
>> Just to be perfectly clear, here is the FreeBSD layout (left column)
>> and the NetBSD layout that I propose (right column) for comparison,
>>
>> FreeBSD src/sys/contrib --> NetBSD src/sys/contrib
>> ----------------------- ----------------------
>> dev/ath/COPYRIGHT dev/ath/COPYRIGHT
>> dev/ath/README dev/ath/README
>> dev/ath/ah.h dev/ath/ah.h
>> dev/ath/ah_desc.h dev/ath/ah_desc.h
>> dev/ath/ah_devid.h dev/ath/ah_devid.h
>> dev/ath/version.h dev/ath/version.h
>> dev/ath/freebsd/ah_osdep.c dev/ath/ah_osdep.c
>> dev/ath/freebsd/ah_osdep.h dev/ath/ah_osdep.h
>> dev/ath/freebsd/opt_ah.h dev/ath/opt_ah.h
>
> That file looks a lot like the ones config makes. Can it have a different
> name?
>
> Would it make more sense to have these under dev/ath/netbsd/... ?
>
>> dev/ath/freebsd/ah_if.m dev/ath/ah_if.m
>> dev/ath/freebsd/i386-elf.hal.o.uu arch/i386/dev/ath/i386-elf.hal.o.uu
>>
>> As the HAL becomes available for new architectures, I will add
>> arch/macppc/dev/ath/, etc.
>
> Will there be more than one file per architecture? It might be fine to
> have arch/i386/dev/i386-elf.hal.o.uu.
Current practice in my build environment is to generate two files per
architecture <target>: <target>.hal.o.uu and <target>.opt_ah.h. The first
is the binary blob and the second are the options used to build the code
(shared with the driver, but mostly for documentation). At the moment the
ah_osdep.* files are assumed to be shared across all architectures. This
may be a mistake but is working ok for now.
Sam