I want to disassembler file was created after every build. This command will do this:
arm-none-eabi-objcopy -DS project.elf > project.dasm
How to execute it with qbs? Tried to do a rule for it.
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;
}
}
But this just shows result in build console and displays errors on the last two arguments. Any ideas?