Makefile新添加配置项
2026-07-14
25
0
修改Makefile
修改Config
makemenuconfig
执行:
cd ~/linux-6.17
make olddefconfig
make syncconfig
make syncconfig 会强制将 .config 的变化同步到 include/config/auto.conf 和所有相关的头文件中。
再回到目录下编译
cd ~/linux-6.17/drivers/usb/host
make -C ~/linux-6.17 M=$(pwd) clean
make -C ~/linux-6.17 M=$(pwd) modules
sudo cp xhci-pci-chipsea.ko \
/lib/modules/$(uname -r)/kernel/drivers/usb/host/
# 卸载当前的 xhci_pci 模块,-r 代表 --remove
sudo modprobe -r xhci-pci-chipsea
# 加载新模块
sudo modprobe xhci-pci-chipsea
ARM&Linux环境搭建





