文章目录 OpenWrt 内核驱动模块04 新增内核驱动目录 修改文件内容 编译 顶层Makefile分析 OpenWrt 内核驱动模块04 新增内核驱动目录 cd lede/package/kernel mkdir hello-kernel cd hello-kernel touch Makefile mkdir src cd src touch hello-kernel.c touch Makefile touch Kconfig cd ../ tree #执行后结果如下 #. #├── Makefile #└── src # ├── hello-kernel.c