custom target and toolchain for B3_AP

This commit is contained in:
Matthew GONG
2021-05-30 00:31:25 +08:00
parent 6fc2ab8127
commit edb0d46ad6
5 changed files with 593 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
function rtwTargetInfo(tr)
%RTWTARGETINFO Registration file for custom toolchains.
tr.registerTargetInfo(@loc_createToolchain);
end
% -------------------------------------------------------------------------
% Create the ToolchainInfoRegistry entries
% -------------------------------------------------------------------------
function config = loc_createToolchain
i = 1;
%% Windows
if exist(fullfile(fileparts(mfilename('fullpath')), 'armcc_win_tc.mat'), 'file') == 2
config(i) = coder.make.ToolchainInfoRegistry;
config(i).Name = 'armcc | gmake makefile (64-bit Windows)';
config(i).FileName = fullfile(fileparts(mfilename('fullpath')), 'armcc_win_tc.mat');
config(i).TargetHWDeviceType = {'*'};
config(i).Platform = {computer('arch')};
i = i + 1;
end
end