openwrt只编译kernel

本想只编译ko, ,结果搜索论坛发现要编译 kernel


https://forum.archive.openwrt.org/viewtopic.php?id=23570

用下面这个命令编译内核:

make target/linux/{clean,compile} V=s




修改 linux-4.4.18/drivers/net/ethernet/realtek/r8169soc.c 后

make target/linux/compile  V=s

拷贝到自定义路径下

cp linux-4.4.18/drivers/net/ethernet/realtek/r8169soc.ko files/evideo/



根据openwrt自定义文件配置,拷贝到files下的文件就会自动拷贝到对应目录


https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem#custom_files

Custom files

In case you want to include some custom configuration files, the correct place to put them is:

  • <buildroot>/files/

For example, let's say that you want an image with a custom /etc/config/firewall or a custom etc/sysctl.conf, then create this files as:

  • <buildroot>/files/etc/config/firewall

  • <buildroot>/files/etc/sysctl.conf

E.g. if your <buildroot> is ~/source and you want some files to be copied into firmware image's /etc/config directory, the correct place to put them is ~/source/files/etc/config.

posted on   katago  阅读(641)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
历史上的今天:
2021-10-10 制作deb安装包
2015-10-10 android adt自带eclipse无法设置ndk路径
2015-10-10 JAVA错误:Cannot refer to a non-final variable * inside an inner class defined in a different method
2011-10-10 技巧:Vimdiff 使用
2011-10-10 linux查看硬件信息及驱动设备相关整理
2011-10-10 Linux下硬件信息查看(一)--dmidecode
2011-10-10 Linux下显示硬件信息(二)--lshw
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示