> I encountered several problems building the speedbundle for Fedora Core
> 1. Firstly, several files were in the wrong place, in particular
> sonet.h. I believe this is a fault in the source code and I quickly
> googled a solution. Once I copied the header to the correct place in the
> linux source code, a simple make worked. However, when I attempted to do
> a 'make install' I encountered the following bug:
This sonet.h problem only seems to occur with redhat. It happens when compiling
the linux-atm library. Chas Williams (ATM maintainer) knows about this, and said
he will look into it one day. The attached top-level speedbundle Makefile works around
the problem.
> --
>
> > sudo make install
>
> cd kernel_module && make install
> make[1]: Entering directory
> `/home/ricardo/speedbundle-1.0/kernel_module'
> install -d /lib/modules/2.4.22-1.2115.nptlsmp 2.4.22-1.2115.nptlBOOT
> 2.4.22-1.2115.nptlbigmem 2.4.22-1.2115.nptl/kernel/drivers/usb
> install -c speedtch.o /lib/modules/2.4.22-1.2115.nptlsmp
> 2.4.22-1.2115.nptlBOOT 2.4.22-1.2115.nptlbigmem
> 2.4.22-1.2115.nptl/kernel/drivers/usb
> install: `/lib/modules/2.4.22-1.2115.nptlsmp' is a directory
> install: `2.4.22-1.2115.nptlBOOT' is a directory
> install: `2.4.22-1.2115.nptlbigmem' is a directory
> make[1]: *** [install] Error 1
> make[1]: Leaving directory `/home/ricardo/speedbundle-1.0/kernel_module'
> make: *** [install] Error 2
> --
>
> I finally managed to locate the problem in the kernel_mode Makefile
> (this fault is also extant in the regular speedtouch 1.7 kernel driver).
> The problem is the following line:
>
> VERSION := $(shell awk -F\" '/REL/ {print $$2}' $(VERSIONFILE))
>
> Which, in Fedora, spits out there version strings. This problem was
> quickly resolved by hard-coding the kernel version in the Makefile, as
> so:
>
> VERSION := 2.4.22-1.2115.nptl
OK - I will try to make this more robust.
> Your excellent speedtouch driver is now working very satisfactorily.
> Thanks for all the good work.
No problem,
Duncan.all: build
configure: configure-stamp
configure-stamp:
./configure
build: configure-stamp build-stamp
build-stamp:
cd kernel_module && $(MAKE)
cd linux-atm/src/lib && $(MAKE)
cd ppp/pppd && $(MAKE)
cd ppp/pppd/plugins && $(MAKE) C_INCLUDE_PATH=../../../linux-atm/src/include LIBRARY_PATH=../../../linux-atm/src/lib/.libs
cd firmware && $(MAKE)
cd firmware_loader && $(MAKE)
cd hotplug_scripts && $(MAKE)
cd ppp_scripts && $(MAKE)
touch build-stamp
clean:
rm -f build-stamp configure-stamp
cd firmware && $(MAKE) clean
cd firmware_loader && $(MAKE) clean
cd hotplug_scripts && $(MAKE) clean
cd kernel_module && $(MAKE) clean
cd linux-atm/src/lib && $(MAKE) clean
cd ppp/pppd/plugins && $(MAKE) clean
cd ppp/pppd && $(MAKE) clean
cd ppp_scripts && $(MAKE) clean
install: build
cd kernel_module && $(MAKE) install
cd firmware && $(MAKE) install
cd firmware_loader && $(MAKE) modem_run
cd hotplug_scripts && $(MAKE) install
cd linux-atm/src/lib && $(MAKE) install
cd ppp/pppd && $(MAKE) install
cd ppp/pppd/plugins && $(MAKE) install
cd ppp_scripts && $(MAKE) install