EB tresos under linux docker

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

EB tresos under linux docker

跳至解决方案
3,761 次查看
sobo
Contributor III

Hello,

I try to used EB tresos linux version in a docker for CI/CD with jenkins.

Doesn't anyone  already try it ?

I have trouble to run the script tresos_cmd.sh.

Error:

org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]

 

#tresos #docker 

标记 (1)
0 项奖励
回复
1 解答
3,734 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

Unfortunately we haven't tried the same thing in our site (Usually we use EB Tresos on Windows environment). I'd suggest to ask Elektrobit for better support.

Best Regards,

Nam

在原帖中查看解决方案

0 项奖励
回复
3 回复数
3,729 次查看
sobo
Contributor III

hello,

thank you for your answer.

 

So what the best way to handle generated configuration file ?

exemple : 

1- Use EB tresos to configure and generate.

2- Copy the generate file in the project

3- Add it (generated file)  in sw configuration management

4- in CI/CD used file in the project

 

what we are trying to do : 

1- Use EB tresos to configure and generate file + config file(xdm)

2- Add only xdm file under SW configuration management

3- in CI/CD use tresos to generate file from xdm

0 项奖励
回复
3,720 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello @sobo,

There are multiple ways which can be used to handle the code generation:

1. Using the EB Tresos GUI.

2. Take advantage of tresos_cmd.bat:

2.1 by using legacy generate with input as .epc files or .arxml files:

call .\..\Tresos\bin\tresos_cmd.bat -Dtarget=CORTEXM -Dderivate=S32K3XX legacy generate .\a.arxml@asc:4.4.0 -o .\outputt -g Wdg_TS_T40D34M10I0R0

Detail can be found in  6.12.3. Commands for legacy code generation - Development users guide of EB Tresos Studio.

2.2. or using generate/autoconfigure with the whole project. It's required that you have a EB Tresos project already:

$(TRESOS_DIR)/bin/tresos_cmd.bat deleteProject $(TRESOS_PROJECT_NAME) || exit 0 2>&1
$(TRESOS_DIR)/bin/tresos_cmd.bat importProject $(call winpath, $(call my_abspath, ./TresosProject/$(TRESOS_PROJECT_NAME))) 2>&1
ifeq ($(VARIANT_NO),0)
$(TRESOS_DIR)/bin/tresos_cmd.bat generate $(TRESOS_PROJECT_NAME) 2>&1
else
$(TRESOS_DIR)/bin/tresos_cmd.bat autoconfigure $(TRESOS_PROJECT_NAME) GenerateAllVariants 2>&1
endif

(The above script is taken from a RTD example)

Our testing team has been using the 2.2 way to handle code generation in CI/CD. But it's verified under Windows environment.

Best Regards,

Nam

0 项奖励
回复
3,735 次查看
namnguyenviet
NXP Employee
NXP Employee

Hello,

Unfortunately we haven't tried the same thing in our site (Usually we use EB Tresos on Windows environment). I'd suggest to ask Elektrobit for better support.

Best Regards,

Nam

0 项奖励
回复