Referencing the KSDK from an external KDS project

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

Referencing the KSDK from an external KDS project

跳至解决方案
1,460 次查看
laszlomonda
Contributor V

Hi guys,

 

I'm just starting to port our firmware to the Kinetis platform. I only want to support the armgcc and kds build environments. I could simply request contributors to clone the our repo under the KSDK installation directory and relatively reference KSDK assets but this doesn't seem like a really elegant solution. I'd like to enable our contributors to clone our repo anywhere on their filesystem, set a $KSDK_DIR variable, and let the build system handle the situation.

 

This seems quite easily achievable with cmake as it can reference environment variables. Unfortunately, I did't find a way to do this with KDS. Is there any way? If not, what's the suggested way?

 

Thanks in advance!

标签 (1)
1 解答
1,347 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

there are two different things in Eclipse to support you with this, and they have to be used in combination: Build variables and path variables.

The following article is for CodeWarrior, but the same applies to any Eclipse including KDS: Eclipse Build Variables | MCU on Eclipse

Build variables are something you can use for the build system (linker, compiler, etc).

The Eclipse editor system is different: it uses Path Variables to reference files and folders: I have an article for that too: Link to Files and Folders in Eclipse | MCU on Eclipse

I hope this helps,

Erich

在原帖中查看解决方案

2 回复数
1,347 次查看
laszlomonda
Contributor V

Thanks for the super-quick reply, Erich - looks like the way to go forward!

I'm already subscribed to your awesome blog, but you've created so many articles over the years that I've missed these two. :smileyhappy:

Thanks again, and keep it up!

0 项奖励
回复
1,348 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

there are two different things in Eclipse to support you with this, and they have to be used in combination: Build variables and path variables.

The following article is for CodeWarrior, but the same applies to any Eclipse including KDS: Eclipse Build Variables | MCU on Eclipse

Build variables are something you can use for the build system (linker, compiler, etc).

The Eclipse editor system is different: it uses Path Variables to reference files and folders: I have an article for that too: Link to Files and Folders in Eclipse | MCU on Eclipse

I hope this helps,

Erich