S32K_How to merge 3 elf using makefile

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K_How to merge 3 elf using makefile

881 次查看
Zhougw
Contributor III

Now I can use makefile to convert elf to bin and hex, but how can I merge 3 elf(one core, one elf).

I search the internet, there isn't much decription about merge of objcopy. when I call objcopy, compiling always returns in errors.

the following is the code in my makefile, I use cmd to run "make merge"

 

.PHONY: merge
merge: $(BINDIR)/s32k396_mc.elf

$(BINDIR)/s32k396_mc.elf :
$(info Generating elf File ...)
$(OBJCPY) --input-format=elf32-little --output-format=elf32-little --merge-sections .text=$(BINDIR)/s32k396_mc_c0.elf .text=$(BINDIR)/s32k396_mc_c1.elf .text=$(BINDIR)/s32k396_mc_c2.elf $(BINDIR)/s32k396_mc.elf

 

compiling error:

arm-none-eabi-objcopy.exe: supported targets: elf32-littlearm elf32-littlearm-fdpic elf32-bigarm elf32-bigarm-fdpic elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin
make: *** [Makefile:318: ../binary/s32k396_mc.elf] Error 1

 

标记 (3)
0 项奖励
回复
0 回复数