[Pluto-help] modem adsl

ricman a neomedia.it ricman a neomedia.it
Mer 5 Feb 2003 23:56:12 CET


Grazie mille per la tua dettagliata risposta ;)
Ho controllato il makefile e mi pare (lo ammetto: sono un novellino!) che dopo 
il messaggio "....driver installed successfully" entri in gioco una variabile 
$(MAKE) alla quale non è stato attribuito nessun valore. Se è questo l'errore, 
come lo risolvo???????????
Inoltre dicevi di forzare un IP. Dove? Quale, se è dinamico?
Per quanto riguarda la scheda di rete, non è presente.
Grazie per la pazienza!




# $Id: Makefile,v 1.17 2002/03/12 17:56:44 chris.edgington Exp $x

#---------------------------------------------------------------------------
#
# Makefile
#
# Makefile for ADI USB ADSL driver for Linux
#
# Requirements:
#       Kernel source (or symbolic link) must be at /usr/src/linux
#
#---------------------------------------------------------------------------

# Set this to build the debug version
#DEBUG = 1
#TRACE = 1
#TRACE_BUFFER = 1
#---------------------------------------------------------------------------
# Variables used in the makefile
#---------------------------------------------------------------------------

INSTALLER = $(shell which install)
KERNELDIR = /lib/modules/$(shell uname -r)
KERNELSRC = /usr/src/linux
OTHERDIR  = /etc/analog

ifeq ($(shell if test -d $(KERNELDIR)/kernel; then echo yes; fi),yes)
INSTALLDIR=$(KERNELDIR)/kernel/drivers/usb
else
INSTALLDIR=$(KERNELDIR)/usb
endif

LD = ld
CC = gcc
MODULE  = adiusbadsl
ADIUTIL = ./ADIUTIL
ADIUSER = ./USER

CFLAGS  = -DLINUX -D__KERNEL__ -DMODULE -I$(KERNELSRC)/include -Wall \
          -Wstrict-prototypes -fomit-frame-pointer -fno-strict-aliasing -pipe \
          -mpreferred-stack-boundary=2 \
          -I$(ADIUTIL)

ifdef DEBUG
# - for debug builds
CFLAGS  += -g -DZAPS -O2
else
# - for final builds
CFLAGS  += -O2
endif
# - We want lemgth of each buffer reading and writing
ifdef TRACE
CFLAGS  += -DTRACE
endif
# - We want a trace of urb's buffer in log file
ifdef TRACE_BUFFER
CFLAGS  += -DTRACE_BUFFER
endif


# Enable this next line to use BULK for reads instead of ISO
#CFLAGS += -DUSEBULK

ifdef CONFIG_SMP
 CFLAGS += -D__SMP__ -DSMP
endif

OBJS = AdiUsbAdslDriver.o \
       Boot.o             \
       Util.o             \
       Pipes.o            \
       $(ADIUTIL)/Me.o    \
       $(ADIUTIL)/Msg.o   \
       $(ADIUTIL)/Dsp.o   \
       $(ADIUTIL)/Mpoa.o  \
       $(ADIUTIL)/Uni.o   \
       $(ADIUTIL)/Sar.o   \
       $(ADIUTIL)/Crc.o   \
       $(ADIUTIL)/Zaps.o

#---------------------------------------------------------------------------
# Targets
#---------------------------------------------------------------------------

default: driver adiuser

all: install installuser

install: driver installuser
	@if [ `id -ur` != 0 ]; then \
		echo Please run \"make install\" as root.; \
	else \
		mkdir -p $(INSTALLDIR) && \
		mkdir -p $(OTHERDIR) && \
		$(INSTALLER) -m 0664 -o root -g root $(MODULE).o $(INSTALLDIR)/
$(MODULE).o && \
		$(INSTALLER) -C -m 0664 -o root -g root OTHER/*.bnm $(OTHERDIR) 
&& \
		$(INSTALLER) -C -m 0664 -o root -g root OTHER/*.conf 
$(OTHERDIR) && \
		/sbin/depmod -a && \
		echo "ADI USB ADSL driver installed successfully."; \
	fi		

driver: checkdep $(MODULE).o

adiuser:
	$(MAKE) -C $(ADIUSER)
	
installuser:
	$(MAKE) -C $(ADIUSER) install

$(MODULE).o: $(OBJS)
	$(LD) -r -o $(MODULE).o $(OBJS)
 
checkdep:
	@if [ ! -f .depend ]; then make dep ; exit 0; fi
 
clean:
	rm -f error.log .depend $(OBJS) $(MODULE).o *~ core
	$(MAKE) -C $(ADIUSER) clean
 
dep:
	$(CC) $(CFLAGS) -M *.c > .depend
	$(CC) $(CFLAGS) -M $(ADIUTIL)/*.c >> .depend
 
ifneq ($(wildcard .depend),)
 include .depend
endif




More information about the pluto-help mailing list