Date: Tue, 12 Mar 2013 16:12:43 -0500 From: Joshua Isom <jrisom@gmail.com> To: Adrian Chadd <adrian@freebsd.org> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org> Subject: Re: Fine, OK, here's my initial AR9380/AR9485 support Message-ID: <513F9A4B.5030704@gmail.com> In-Reply-To: <CAJ-Vmo=wHhq2yGiwEJxGvNHYaOYTTWSuAbUyPG%2BZgUwE%2BOWaiA@mail.gmail.com> References: <513d3ae3.08c2440a.59a6.63b2@mx.google.com> <513DA767.6010208@gmail.com> <CAJ-Vmo=uSeKK1SV3k_nRLDSHShobiyN6ky861b5NDn_U8NxukQ@mail.gmail.com> <513E6AF5.9010304@gmail.com> <CAJ-Vmo=9Kj41=J3m6SapXi0y6t9cF-A=XCX8AWz0qirLnrwX=Q@mail.gmail.com> <513E7924.3060302@gmail.com> <CAJ-VmomWgitUZvxVQbQc6qFu8rOYJVZiZCrVEjQm2fOdp5Sz7w@mail.gmail.com> <CAJ-Vmok2ONOJsZK4BuD9J5drUpmjri6mV-dB4N7-9HvuGcVV0Q@mail.gmail.com> <CAJ-VmonmrYV__z_6VterhZ2itmtL2seTo0VQ5oUHTOwuCWydQg@mail.gmail.com> <CAJ-Vmo=wHhq2yGiwEJxGvNHYaOYTTWSuAbUyPG%2BZgUwE%2BOWaiA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I had to remove the /sys/ from the PATH and CFLAGS to point to the right directory, it's still failing with warnings. I tried gcc and clang. I'll try to see how much I can patch myself without knowing the code at all. On 3/11/2013 10:25 PM, Adrian Chadd wrote: > Ok, I see that clang is doing some odd expansion there. I've poked the > clang nerds about it, I'll see what they say. > > Anyway - I've shifted its location - now please create a new directory > - sys/contrib/dev/ath/ath_hal/ar9300/, and put your symlinks in there. > > Then uncomment in ath/Makefile like this: > > Index: ath/Makefile > =================================================================== > --- ath/Makefile (revision 248181) > +++ ath/Makefile (working copy) > @@ -124,13 +124,13 @@ > SRCS+= ar9287.c ar9287_reset.c ar9287_attach.c ar9287_cal.c ar9287_olc.c > > # + AR9300 HAL > -# .PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 > -#SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > -#SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > -#SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > -#SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > -#SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > -#SRCS+= ar9300_power.c ar9300_timer.c > +.PATH: ${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ar9300 > +SRCS+= ar9300_interrupts.c ar9300_radar.c ar9300_ani.c ar9300_keycache.c > +SRCS+= ar9300_radio.c ar9300_xmit.c ar9300_attach.c ar9300_mci.c ar9300_stub.c > +SRCS+= ar9300_xmit_ds.c ar9300_beacon.c ar9300_misc.c ar9300_recv.c > +SRCS+= ar9300_stub_funcs.c ar9300_eeprom.c ar9300_paprd.c ar9300_recv_ds.c > +SRCS+= ar9300_freebsd.c ar9300_phy.c ar9300_reset.c ar9300_gpio.c > +SRCS+= ar9300_power.c ar9300_timer.c > > # NB: rate control is bound to the driver by symbol names so only pick one > .if ${ATH_RATE} == "sample" > @@ -149,7 +149,7 @@ > SRCS+= dfs_null.c > > CFLAGS+= -I. -I${.CURDIR}/../../dev/ath -I${.CURDIR}/../../dev/ath/ath_hal > -# CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ > +CFLAGS+= -I. -I${.CURDIR}/../../contrib/sys/dev/ath/ath_hal/ > > .if !defined(KERNBUILDDIR) > opt_ah.h: >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?513F9A4B.5030704>