如何安装驱动的问题
时间:2005-09-16
来源:互联网
大家好我是linux新人有一个简单的问题,厂家提供了一个can的驱动包,我现在把它编译通过了,但现在的问题来了
我要如何安装驱动
1、要把编译好的那些文件copy到什么目录下
2、要不要配什么脚本文件
3、要不要重新编译内核
我刚从window转过来,很多概念搞不清,先谢谢大家了
以下是编译can驱动的makefile文件
我的qq 175412977 在线等
# Comment/uncomment the following line to disable/enable debugging
#DEBUG = y
EXTDEBUG = y #extended debugging (register dumps)定义变量
# This Makefile has been simplified as much as possible, by putting all
# generic material, independent of this specific directory, into
# ../Rules.make. Read that file for details
TOPDIR := $(shell cd ..; pwd) //????????
include Rules.make#加入规则
# Add your debugging flag (or not) to CFLAGS
ifeq ($(EXTDEBUG),y)
DEBFLAGS = -O -g -DCAN_DEBUG -DREGDUMP # "-O" is needed to expand inlines
else
ifeq ($(DEBUG),y)
DEBFLAGS = -O -g -DCAN_DEBUG # "-O" is needed to expand inlines
else
DEBFLAGS = -O2
endif
endif
CFLAGS += $(DEBFLAGS)
CFLAGS += -I..
VPATH = ./src:./include:./examples
TARGET = can
OBJS = $(TARGET).o
SRC = main.c proc.c hms30c7202_can.c c_can.c \
irq.c open.c close.c read.c write.c ioctl.c \
all: .depend $(TARGET).o
$(TARGET).o: $(SRC:.c=.o)
$(LD) -r $^ -o $@
install:
install -d $(INSTALLDIR)
install -c $(TARGET).o $(INSTALLDIR)
clean:
rm -f *.o src/*.o *~ core .depend
depend .depend dep:
$(CC) $(CFLAGS) -M src/*.c > $@
#ifeq (.depend, $(wildcard .depend))
#include .depend
#endif
我要如何安装驱动
1、要把编译好的那些文件copy到什么目录下
2、要不要配什么脚本文件
3、要不要重新编译内核
我刚从window转过来,很多概念搞不清,先谢谢大家了
以下是编译can驱动的makefile文件
我的qq 175412977 在线等
# Comment/uncomment the following line to disable/enable debugging
#DEBUG = y
EXTDEBUG = y #extended debugging (register dumps)定义变量
# This Makefile has been simplified as much as possible, by putting all
# generic material, independent of this specific directory, into
# ../Rules.make. Read that file for details
TOPDIR := $(shell cd ..; pwd) //????????
include Rules.make#加入规则
# Add your debugging flag (or not) to CFLAGS
ifeq ($(EXTDEBUG),y)
DEBFLAGS = -O -g -DCAN_DEBUG -DREGDUMP # "-O" is needed to expand inlines
else
ifeq ($(DEBUG),y)
DEBFLAGS = -O -g -DCAN_DEBUG # "-O" is needed to expand inlines
else
DEBFLAGS = -O2
endif
endif
CFLAGS += $(DEBFLAGS)
CFLAGS += -I..
VPATH = ./src:./include:./examples
TARGET = can
OBJS = $(TARGET).o
SRC = main.c proc.c hms30c7202_can.c c_can.c \
irq.c open.c close.c read.c write.c ioctl.c \
all: .depend $(TARGET).o
$(TARGET).o: $(SRC:.c=.o)
$(LD) -r $^ -o $@
install:
install -d $(INSTALLDIR)
install -c $(TARGET).o $(INSTALLDIR)
clean:
rm -f *.o src/*.o *~ core .depend
depend .depend dep:
$(CC) $(CFLAGS) -M src/*.c > $@
#ifeq (.depend, $(wildcard .depend))
#include .depend
#endif
作者: 175412977 发布时间: 2005-09-16
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28