1 # Contributor: virtuemood <virtue@archlinux.us>
6 pkgdesc="Broadcom's opensource driver"
8 url=http://www.kernel.org
9 depends=('linux-firmware>=20100911' 'kernel26<2.6.37')
12 # http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git
16 cd $startdir/src/linux-next-${source_name}
18 echo "KDIR := /lib/modules/`uname -r`/build" >> ./Makefile
19 echo 'ccflags-y += -I$(SUBDIRS)/include -I$(SUBDIRS)/sys -I$(SUBDIRS)/phy' >> ./Makefile
21 make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD CONFIG_BRCM80211_PCI=y V=1 modules
23 mkdir -p $startdir/pkg/lib/modules/`uname -r`/
24 cp $startdir/src/linux-next-${source_name}/brcm80211.ko $startdir/pkg/lib/modules/`uname -r`/