<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style="--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style="font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";">
<div class="content">
<p style="color: #777777;">
<a href="https://gitlab.rtems.org/sebhub">Sebastian Huber</a>
commented on a
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1187#note_148665">discussion</a>:
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">With respect to the <code style="font-size: 90%; color: #18171d; word-wrap: break-word; background-color: #ececef; border-radius: .25rem; margin-top: 0; font-weight: inherit; overflow-wrap: break-word; white-space: break-spaces; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: keep-all; padding: 0.125rem 0.25rem;"> TMS570_VARIANT_4357</code>, this should work in the enabled-by expressions. It is set up like this:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre data-canonical-lang="yaml" class="code highlight js-syntax-highlight language-yaml" v-pre="true" style="display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;"><code style="font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="yaml" style="margin-top: 0;"><span class="na" style="margin-top: 0;">SPDX-License-Identifier</span><span class="pi">:</span> <span class="s">CC-BY-SA-4.0 OR BSD-2-Clause</span></span>
<span id="LC2" class="line" lang="yaml"><span class="na" style="margin-top: 0;">actions</span><span class="pi">:</span></span>
<span id="LC3" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">get-integer</span><span class="pi">:</span> <span class="kc">null</span></span>
<span id="LC4" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">assert-in-set</span><span class="pi">:</span></span>
<span id="LC5" class="line" lang="yaml"> <span class="pi" style="margin-top: 0;">-</span> <span class="m">3137</span></span>
<span id="LC6" class="line" lang="yaml"> <span class="pi" style="margin-top: 0;">-</span> <span class="m">4357</span></span>
<span id="LC7" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">define</span><span class="pi">:</span> <span class="kc">null</span></span>
<span id="LC8" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">env-assign</span><span class="pi">:</span> <span class="kc">null</span></span>
<span id="LC9" class="line" lang="yaml"><span class="c1" style="margin-top: 0;"># The actions above assign the option value to the TMS570_VARIANT configuration and build environment variable.</span></span>
<span id="LC10" class="line" lang="yaml"></span>
<span id="LC11" class="line" lang="yaml"><span class="c1" style="margin-top: 0;"># This sets the action value to "TMS570_VARIANT_${TMS570_VARIANT}":</span></span>
<span id="LC12" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">set-value</span><span class="pi">:</span> <span class="s">TMS570_VARIANT_${TMS570_VARIANT}</span></span>
<span id="LC13" class="line" lang="yaml"><span class="c1" style="margin-top: 0;"># This substitutes the action value (to for example TMS570_VARIANT_4357):</span></span>
<span id="LC14" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">substitute</span><span class="pi">:</span> <span class="kc">null</span></span>
<span id="LC15" class="line" lang="yaml"><span class="c1" style="margin-top: 0;"># This adds the action value to the enabled set:</span></span>
<span id="LC16" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">env-append</span><span class="pi">:</span> <span class="s">ENABLE</span></span>
<span id="LC17" class="line" lang="yaml"><span class="na" style="margin-top: 0;">build-type</span><span class="pi">:</span> <span class="s">option</span></span>
<span id="LC18" class="line" lang="yaml"><span class="na" style="margin-top: 0;">copyrights</span><span class="pi">:</span></span>
<span id="LC19" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="s">Copyright (C) 2023 embedded brains GmbH & Co. KG</span></span>
<span id="LC20" class="line" lang="yaml"><span class="na" style="margin-top: 0;">default</span><span class="pi">:</span></span>
<span id="LC21" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">enabled-by</span><span class="pi">:</span></span>
<span id="LC22" class="line" lang="yaml"> <span class="pi" style="margin-top: 0;">-</span> <span class="s">arm/tms570lc4357_hdk</span></span>
<span id="LC23" class="line" lang="yaml"> <span class="pi" style="margin-top: 0;">-</span> <span class="s">arm/tms570lc4357_hdk_intram</span></span>
<span id="LC24" class="line" lang="yaml"> <span class="pi" style="margin-top: 0;">-</span> <span class="s">arm/tms570lc4357_hdk_sdram</span></span>
<span id="LC25" class="line" lang="yaml"> <span class="na" style="margin-top: 0;">value</span><span class="pi">:</span> <span class="m">4357</span></span>
<span id="LC26" class="line" lang="yaml"><span class="pi" style="margin-top: 0;">-</span> <span class="na">enabled-by</span><span class="pi">:</span> <span class="kc">true</span></span>
<span id="LC27" class="line" lang="yaml"> <span class="na" style="margin-top: 0;">value</span><span class="pi">:</span> <span class="m">3137</span></span>
<span id="LC28" class="line" lang="yaml"><span class="na" style="margin-top: 0;">description</span><span class="pi">:</span> <span class="pi">|</span></span>
<span id="LC29" class="line" lang="yaml"> <span class="s" style="margin-top: 0;">Defines the TMS570 family variant. Use 3137 for the TMS570LS3137 and 4357</span></span>
<span id="LC30" class="line" lang="yaml"> <span class="s" style="margin-top: 0;">for the TMSLC4357.</span></span>
<span id="LC31" class="line" lang="yaml"><span class="na" style="margin-top: 0;">enabled-by</span><span class="pi">:</span> <span class="kc">true</span></span>
<span id="LC32" class="line" lang="yaml"><span class="na" style="margin-top: 0;">format</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{}'</span></span>
<span id="LC33" class="line" lang="yaml"><span class="na" style="margin-top: 0;">links</span><span class="pi">:</span> <span class="pi">[]</span></span>
<span id="LC34" class="line" lang="yaml"><span class="na" style="margin-top: 0;">name</span><span class="pi">:</span> <span class="s">TMS570_VARIANT</span></span>
<span id="LC35" class="line" lang="yaml"><span class="na" style="margin-top: 0;">type</span><span class="pi">:</span> <span class="s">build</span></span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">With a config.ini</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style="display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;"><code style="font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">[arm/tms570lc4357_hdk]</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I get:</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style="display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;"><code style="font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: .25rem; white-space: pre; margin-top: 0; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;"><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">grep -r TMS570_MEMORY_SRAM_SIZE build</span>
<span id="LC2" class="line" lang="plaintext">build/arm/tms570lc4357_hdk/bsps/include/bspopts.h:#define TMS570_MEMORY_SRAM_SIZE 0x00080000</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">
—
<br>
<a href="https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1187#note_148665">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.rtems.org">gitlab.rtems.org</a>. <a href="https://gitlab.rtems.org/-/sent_notifications/3-2raq3znkzxc5xffhw911z29p8/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.rtems.org/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.rtems.org/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<span style="color: transparent; font-size: 0; display: none; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0;">
Notification message regarding https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1187#note_148665 at 1776386664
</span>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Merge request","url":"https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1187#note_148665"}}</script>
</p>
</div>
</body>
</html>