- # Xen
-ifeq "$(XEN)" "1"
-# some dirty hacks that it is building
-# mv /usr/src/linux/include/linux/tracepoint.h /usr/src/linux/include/linux/tracepoint.h.xen
-# touch /usr/src/linux/include/linux/tracepoint.h
-# cd /usr/src/ && patch -Np1 < $(DIR_SRC)/src/patches/compat-xen-1.patch
-endif
-
-# Apply some wlan-card patches
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/compat-wireless_rt2500pci-skb_allignment.patch
-
-# Enable B43 NPHY / PHY_LP
- echo "CONFIG_B43_NPHY=y" >> $(DIR_APP)/config.mk
- echo "CONFIG_B43_PHY_LP=y" >> $(DIR_APP)/config.mk
-
-
- # This is for stable version
- # Build only the modules
- cd $(DIR_APP) && sed -i -e "s|install: uninstall modules|install: modules|g" Makefile
- cd $(DIR_APP) && sed -i -e "s|\t@# All the scripts|\nende:|g" Makefile
-
- cd $(DIR_APP) && make KLIB=/lib/modules/$(KVER)-$(VERSUFIX) KMODDIR=kernel install