Commit Graph

9 Commits

Author SHA1 Message Date
gdamore 1d7621eed4 Undo an accidental commit of ah.h from an unreleased version of the HAL. 2006-04-06 15:57:58 +00:00
gdamore 6af18224ef Use a -I to add path to netbsd/ah_osdep, and remove #ifdef __NetBSD__
logic from ah.h.  This was done at the request of sam@.
2006-04-05 23:41:03 +00:00
tron be0bc38f31 Move "depend" target into block which is only used if ath(4) is enabled
in the kernel configuration. This makes it possible to build kernels
without that driver again.
2006-04-05 09:01:28 +00:00
gdamore ca7d761296 Rename AH_DEBUG, AH_ASSERT, and AH_DEBUG_ALQ to ATH_XXX.
Use the opt_ah.h for the provided HAL to get options like AH_REGOPS_FUNC.
Add AH_REGOPS_FUNC to a few opt_ah.h that don't have it in this version
of the HAL but need it.  (The next version from Sam should have this fixed
in it.  If it doesn't, then we'll have to take care at import time.)

Ultimately, this should make future imports even easier, and individual ports
should not have to worry about whether AH_REGOPS_FUNC is properly defined or
not, since the opt_ah.h will just take care of it automatically.

Ok'd by dyoung@.
2006-04-05 06:54:26 +00:00
gdamore c79321a24b Add rule to make athhal_options.h from ${ATH_HAL}.opt_ah.h, so that we
can automatically use the AH_XXX options that the HAL was built, without
requiring additional machine-specific configuration.

A follow up commit will activate this change.
2006-04-05 05:07:38 +00:00
nakayama 616dcaceb9 Add missing "-elf" suffix to ATH_HAL for sparc and sparc64. 2006-04-04 13:00:23 +00:00
gdamore 75670ddc44 Convert existing ath users to new Makefile, except for amd64, which needs
the rules due to needing to conditionally postprocess the HAL object file.

Macppc needs a a non-ELF HAL (EABI) object, so take care of that by default
in the atheros include file.
2006-04-04 03:13:12 +00:00
gdamore 27ea646343 Centralize rules for building atheros HAL for various supported platforms,
including easy override mechanism for ports that need it.

To use this, just .include this file instead of listing explicit rules
for building the target.  A change to std/conf/files will be made shortly
that lists /athhal.o as an object if "ath" is defined.

If you need to override the default HAL selected for some reason (for example
to use an xscale version of the HAL on evbarm kernels that support it), add
a "makeoptions ATH_MACHINE_HAL=<hal>", for example to select the XScale
LE configuration you could use "makeoptions ATH_MACHINE_HAL=xscale-le-elf".
2006-04-04 01:26:53 +00:00
gdamore 9a2b9dd63b Reorganize ath layout as requested by sam@ and suggested by dyoung@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@, this is the proper version we should be using.
2006-04-02 05:52:14 +00:00