필터 지우기
필터 지우기

How to customize Makefile output info in custom toolchain approach based Simulink Coder target?

조회 수: 4 (최근 30일)
Hi
I am in the process of implementing a custom target for Simulink Coder.
All required defines and compiler/linker flags can be set via the
BuildInfo structure in the corresponding *_make_rtw_hook file.
But how to customize output name/file extension and provide a custom output directory in the new toolchain approach?
In my old template makefile (TMF) approach I was able to customize the output info via the corresponding TMF entries.
Now I can only see the hard-coded output info:
PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)\test_fcn.exe
PRODUCT_TYPE = "executable"
BUILD_TYPE = "Top-Level Standalone Executable"

답변 (1개)

Prathamesh
Prathamesh 2023년 8월 18일
Hi,
I understand that you want to customize the output name, file extension, and provide a custom output directory for the generated files.
I think you can use template makefile token expansion to specify the information you want to edit for example “|>RELATIVE_PATH_TO_ANCHOR<|”.
Refer to the following documentation for more information.
Also, you can add rules to the generated makefiles to customize folder names and include path. Refer to documentation below for more information.
  댓글 수: 1
Wojciech Przystas
Wojciech Przystas 2023년 8월 21일
Hi
Thank you for your reply, but it doesn't really help me..
Your answer refers to the Template Makefile Build Process, which already works well with my target.
I would like to use the new toolchain approach (without a template makefile) instead, as described here:
I’m looking forward to your reply.
Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by