-ifeq "$(MACHINE)" "arm"
- # B43+B44 driver doesn't build on arm
- cd $(DIR_APP) && sed -i -e "s|CONFIG_B43=m||g" config.mk
- cd $(DIR_APP) && sed -i -e "s|CONFIG_B44=m||g" config.mk
+ # Add libartas uAP driver
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/compat-wireless-3.5-libertas_uap.patch
+
+ # uAP will not build with xen-kernel (2.6)
+ifneq "$(KCFG)" "-xen"
+ cd $(DIR_APP) && echo export CONFIG_LIBERTAS_UAP=m >> config.mk