我想在每次构建后创建反汇编文件。此命令将执行此操作:
arm-none-eabi-objcopy -DS project.elf > project.dasm
如何用qbs执行它?试图为它制定一个规则。
Rule {
id: dasm
inputs: "application"
Artifact {
fileTags: ["dasm"]
filePath: FileInfo.baseName(input.filePath) + ".dasm"
}
prepare: {
var args = ["-DS", input.filePath, ">", output.filePath];
var cmd = new Command("arm-none-eabi-objdump", args);
cmd.description = "disassembler from: "+FileInfo.fileName(input.filePath);
cmd.highlight = "linker";
cmd.silent = true;
return cmd;
}
}
但这只是在构建控制台中显示结果,并在最后两个参数上显示错误。有任何想法吗?