How to generate lib file and elf image within one project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to generate lib file and elf image within one project

ソリューションへジャンプ
1,117件の閲覧回数
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 解決策
1,000件の閲覧回数
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 返答(返信)
1,001件の閲覧回数
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 件の賞賛
1,000件の閲覧回数
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 件の賞賛