How to generate lib file and elf image within one project

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

How to generate lib file and elf image within one project

跳至解决方案
1,082 次查看
edgarmichel
Contributor II

Hello,

I need to generate a lib file which shall contain most of the oject files and a elf file in the same project.

Background is that I need to deliver the LIB archive and a elf file for test purpose.

Actually I generate the elf file and generate the lib file manually afterwards.

Is it possible to setup a build which generates fist the lib, then the elf file with LIB for linker?

Thanks Edgar

标记 (2)
0 项奖励
1 解答
965 次查看
BlackNight
NXP Employee
NXP Employee

You have basically two ways:

a) create two build configurations (see Build Configurations in Eclipse | MCU on Eclipse ), one to build the .elf and one the .a

b) Create the extra library in a post-build step

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
2 回复数
966 次查看
BlackNight
NXP Employee
NXP Employee

You have basically two ways:

a) create two build configurations (see Build Configurations in Eclipse | MCU on Eclipse ), one to build the .elf and one the .a

b) Create the extra library in a post-build step

I hope this helps,

Erich

0 项奖励
965 次查看
edgarmichel
Contributor II

Hello Erich,

thanks for the hint !

I did so as you proposed - I made a copy of the actual build configuration and changed it.

It is somehow dificult to find the menu to define LIB generation.

However finally I decide to use post-built steps. This works for me.

Thanks for your help.

regards Edgar

0 项奖励