master readme file use as a index

This commit is contained in:
zeroway
2017-10-02 22:37:25 +00:00
parent df3514ac4a
commit ea4607350f

View File

@ -1,59 +1,17 @@
# kernel_drivers_examples
Codes test on the kernel version below
3.10.49
3.10.79
# 目录说明
## 目录说明
- app 是测试驱动的应用程序
- debug 是驱动模板
- script 是测试脚本
# 各模块入口
## 各平台驱动实例
[HELLO](./debug/hello)
[RK3288](https://github.com/54shady/kernel_drivers_examples/tree/rk3288)
[I2C](./debug/i2c)
[RK3399](https://github.com/54shady/kernel_drivers_examples/tree/Firefly_RK3399)
[SPI](./debug/spi)
[USB](./debug/usb)
[Regulator (ACT8846, RK818)](./debug/regulator)
[Platform_Driver_Test](./debug/platform_driver_test)
[PWM Backlight](./debug/pwm)
[Regmap](./debug/regmap)
[Audio (ES8323, ES8316)](./debug/codec)
[Timer](./debug/timer)
[Timer And Workqueue](./debug/timer_workq)
[Workqueue](./debug/workqueue)
[Notify](./debug/notify_chain)
[Script](./script)
# 使用方法(单独编译模块)或者放到内核目录中编译
- make CC=your_compiler_path KERNELDIR=your_kernel_dir
## 举例(以hello模块为例)
### 编译内核时没有指定O选项
- cd debug/hello
- make CC=/home/zeroway/3288/src/3288_4.4/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-gcc KERNELDIR=/home/zeroway/3288/src/3288_4.4/kernel
### 编译内核时有指定O选项
- cd debug/hello
- make CROSS_COMPILE=/home/zeroway/3288/51/src/3288_5.1_v2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi- KERNEL_DIR=/home/zeroway/3288/51/src/3288_5.1_v2/kernel KERNEL_BUID_OUTPUT=/home/zeroway/3288/51/src/3288_5.1_v2/out/target/product/rk3288/obj/KERNEL
[mini2440](https://github.com/54shady/kernel_drivers_examples/tree/mini2440)
[tiny4412](https://github.com/54shady/kernel_drivers_examples/tree/tiny4412)