- @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
- cd $(DIR_SRC)/mISDN.git && KVERS=$(KVER)-ipfire make force
- cd $(DIR_SRC)/mISDN.git && KVERS=$(KVER)-ipfire make $(MAKETUNING)
- cd $(DIR_SRC)/mISDN.git && KVERS=$(KVER)-ipfire make install DEPMOD="depmod $(KVER)-ipfire"
- mv /lib/modules/$(KVER)-ipfire/extra /lib/modules/$(KVER)-ipfire/mISDN
+ @rm -rf $(DIR_SRC)/mISDN* && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+ cd $(DIR_SRC)/mISDN && patch -Np1 < $(DIR_SRC)/src/patches/mISDN-hfcusb-reportl1down.patch
+ cd $(DIR_SRC)/mISDN && ./configure --with-kerneldir=/usr/src/linux
+ cd $(DIR_SRC)/mISDN && make KVERS=$(KVER)-$(VERSUFIX) modules
+ cd $(DIR_SRC)/mISDN && make KVERS=$(KVER)-$(VERSUFIX) \
+ INSTALL_PREFIX=$(DIR_SRC)/mISDN/dest/ \
+ modules-install
+ mv $(DIR_SRC)/mISDN/dest/lib/modules/*/extra \
+ /lib/modules/$(KVER)-$(VERSUFIX)/mISDN
+
+ifneq "$(XEN)" "1"
+ # Blacklist misdn modules
+ for f in $$(find /lib/modules/$(KVER)-$(VERSUFIX)/mISDN -name *.ko); do \
+ echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/mISDN ; \
+ done
+ sed -i -e "s|.ko||g" /etc/modprobe.d/mISDN
+endif
+