How to generate lib file and elf image within one project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to generate lib file and elf image within one project

Jump to solution
1,106 Views
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

Tags (2)
0 Kudos
1 Solution
989 Views
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

View solution in original post

0 Kudos
2 Replies
990 Views
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 Kudos
989 Views
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 Kudos