From d9edbc1be44beeb38a64702427867f8e6311d09d Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Wed, 10 Oct 2012 11:31:03 +0200 Subject: [PATCH] mISDN: disable PCI driver on non PCI kernels and enable build on arm. --- lfs/mISDN | 13 +++++++++++++ make.sh | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/lfs/mISDN b/lfs/mISDN index e0469c468..0fe76ec37 100644 --- a/lfs/mISDN +++ b/lfs/mISDN @@ -81,6 +81,19 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) ifeq "$(MACHINE_TYPE)" "arm" # Remove unsupported timestampcounter on arm. the result seems to be unused cd $(DIR_SRC)/mISDN && sed -i -e "s|rdtscl(pChan->ulTimestampIn);||g" drivers/isdn/mISDN/octvqe/octvqe_linux.c +endif +ifeq "$(NOPCI)" "1" + # Disable PCI drivers if kernel has no PCI + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_HFCPCI|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_HFCMULTI|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_XHFC|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_AVMFRITZ|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_SPEEDFAX|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_INFINEON|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_W6692|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_NETJET|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_IPAC|#&|g" mISDN.cfg.default + cd $(DIR_SRC)/mISDN && sed -i -e "s|^CONFIG_MISDN_ISAR|#&|g" mISDN.cfg.default endif cd $(DIR_SRC)/mISDN && ./configure --with-kerneldir=/usr/src/linux cd $(DIR_SRC)/mISDN && make KVERS=$(KVER)-$(VERSUFIX) modules diff --git a/make.sh b/make.sh index 768fde76a..2a71bbfb7 100755 --- a/make.sh +++ b/make.sh @@ -423,7 +423,7 @@ buildipfire() { ipfiremake linux KCFG="-rpi" ipfiremake v4l-dvb KCFG="-rpi" # ipfiremake kvm-kmod KCFG="-rpi" -# ipfiremake mISDN KCFG="-rpi" + ipfiremake mISDN KCFG="-rpi" NOPCI=1 ipfiremake cryptodev KCFG="-rpi" ipfiremake compat-wireless KCFG="-rpi" # ipfiremake r8169 KCFG="-rpi" @@ -436,7 +436,7 @@ buildipfire() { ipfiremake linux KCFG="-omap" ipfiremake v4l-dvb KCFG="-omap" # ipfiremake kvm-kmod KCFG="-omap" -# ipfiremake mISDN KCFG="-omap" + ipfiremake mISDN KCFG="-omap" NOPCI=1 ipfiremake cryptodev KCFG="-omap" ipfiremake compat-wireless KCFG="-omap" # ipfiremake r8169 KCFG="-omap" @@ -450,7 +450,7 @@ buildipfire() { ipfiremake linux KCFG="-kirkwood" ipfiremake v4l-dvb KCFG="-kirkwood" # ipfiremake kvm-kmod KCFG="-kirkwood" -# ipfiremake mISDN KCFG="-kirkwood" + ipfiremake mISDN KCFG="-kirkwood" ipfiremake cryptodev KCFG="-kirkwood" ipfiremake compat-wireless KCFG="-kirkwood" # ipfiremake r8169 KCFG="-kirkwood" -- 2.39.5