X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fsane;h=742fc70dbf39dfdce4249db8d72295c7bc111195;hb=b0ab1b098ed35da40aebc5bb3ab77839d9f17a53;hp=02e111834990b5618e80ddf2d8c0a2dd1f41a4a6;hpb=3184c6f988e4bf2fe9e8dadf474fbc268c197118;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/sane b/lfs/sane index 02e1118349..742fc70dbf 100644 --- a/lfs/sane +++ b/lfs/sane @@ -30,7 +30,15 @@ THISAPP = sane-$(VER) DL_FILE = sane-backends-$(VER).tar.gz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/sane-backends-$(VER) +ifeq "$(KMOD)" "1" +ifeq "$(SMP)" "1" +TARGET = $(DIR_INFO)/$(THISAPP)-kmod-smp +else +TARGET = $(DIR_INFO)/$(THISAPP)-kmod +endif +else TARGET = $(DIR_INFO)/$(THISAPP) +endif PROG = sane PAK_VER = 1 @@ -77,6 +85,21 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) +ifeq "$(KMOD)" "1" + cd $(DIR_APP)/doc/plustek && cp -vf Makefile.kernel26 \ + $(DIR_APP)/backend/Makefile +ifeq "$(SMP)" "1" + cd $(DIR_APP)/backend && make -C /lib/modules/$(KVER)-ipfire-smp/build/ \ + SUBDIRS=$(DIR_APP)/backend modules + cd $(DIR_APP)/backend && install -m 644 pt_drv.ko \ + /lib/modules/$(KVER)-ipfire-smp/kernel/drivers/parport/ +else + cd $(DIR_APP)/backend && make -C /lib/modules/$(KVER)-ipfire/build/ \ + SUBDIRS=$(DIR_APP)/backend modules + cd $(DIR_APP)/backend && install -m 644 pt_drv.ko \ + /lib/modules/$(KVER)-ipfire/kernel/drivers/parport/ +endif +else cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc \ --disable-ipv6 \ --enable-parport-directio @@ -89,6 +112,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) ln -sf ../init.d/sane /etc/rc.d/rc6.d/K10sane install -v -m 644 $(DIR_SRC)/config/backup/includes/sane \ /var/ipfire/backup/addons/includes/sane +endif @rm -rf $(DIR_APP) @$(POSTBUILD) \ No newline at end of file