Linux内核两种编译方式
2017-09-18 18:17
309 查看
第一种方式: 1.在Makefile里直接加入 obj-y += test.o 第二种方式: 1.kernel/include/generated/autoconf.h #define CONFIG_USB_RTL8152 1 2.在Makefile加入编译选项 obj-$(CONFIG_USB_RTL8152) += r8152.o 3.在Kconfig加入 config USB_RTL8152 tristate "Realtek RTL8152 Based USB 2.0 Ethernet Adapters" select NET_CORE select MII help This option adds support for Realtek RTL8152 based USB 2.0 10/100 Ethernet adapters. To compile this driver as a module, choose M here: the module will be called r8152. 4.make menuconfig Symbol: USB_RTL8152 [=y] Type : tristate Prompt: Realtek RTL8152 Based USB 2.0 Ethernet Adapters Location: -> Device Drivers -> Network device support (NETDEVICES [=y])[ (1) -> USB Network Adapters Defined at drivers/net/usb/Kconfig:96 Depends on: NETDEVICES [=y] && USB [=y] && NET [=y] Selects: NET_CORE [=y] && MII [=y]
相关文章推荐
- 编译驱动到内核的两种方式
- Linux下编译安装驱动的两种方式
- Qt 中有两种方式编译MinGW和MSVC
- linux内核分析作业4:使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用
- 第4节 使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用【Linux内核分析】
- CC2541之notify通知方式的介绍和使用 一、简介 本篇介绍CC2541从机端的notify通知的两种方式。 二、实验平台 协议栈版本:BLE-CC254x-1.4.0 编译软件:IAR
- MT6573 Android在Eclipse中Debug方式分两种,一种是编译模拟器,在模拟器的基础上进行调试,还有一种是通过真机remote debug。
- 跨平台C++开源码的两种经常使用编译方式
- PandaBoard 驱动编译 两种方式的makefile
- Linux下安装mysql的方式(yum和源码编译两种方式)
- linux内核分析第四周-使用库函数API和C代码中嵌入汇编代码两种方式使用同一个系统调用
- 编译Java类后不重启Tomcat有两种方式:热部署、热加载
- .NET工程中以 C 和 C++ 两种方式编译时,函数调用注意事项
- linux 下的两种软件安装方式 —— 源码(编译、安装),编译好的二进制(直接安装)
- [置顶] Linux内核编译配置(Menuconfig图形化方式)、制作文件系统的步骤
- debian8.3安装为知笔记的两种方式,ppa源和编译安装,
- 编译驱动到内核的两种方式
- 编译替换内核(两种方式)
- 编译Java类后不重启Tomcat有两种方式:热部署、热加载
- yum和编译两种方式升级or降级Centos内核 推荐