-
-
Notifications
You must be signed in to change notification settings - Fork 907
Open
Labels
Description
Xmake 版本
v3.0.6
操作系统版本和架构
windows wsl
描述问题
使用如下 xmake脚本编译ko
生成的ko insmod 失败,modinfo 信息如下
filename: /home/csk/hardware_test/my_driver/build/linux/x86_64/debug/./pci_test.ko
description: Driver for fake GPU PCI device
author: You
license: GPL
alias: pci:v00001AF4d00001000sv*sd*bc*sc*i*
depends:
name: pci_test
srcversion: 533BB7E5866E52F63B9ACCB
depends:
name: pci_test
对比正常make 生成的ko丢失 如下信息
vermagic: 6.18.0 SMP preempt mod_unload
期待的结果
期待insmod ko 正常
工程配置
target("pci_test")
add_rules("platform.linux.module")
add_files("src/*.c")
set_values("linux.driver.linux-headers", "/home/csk/hardware_test/linux_modules/lib/modules/6.18.0/build")
add_cxflags("-O2")
附加信息和错误日志
xmake 编译没有出现错误
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo