<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Multi-image build with selective optimization level</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111616/multi-image-build-with-selective-optimization-level</link><description>Hello, 
 when creating a multi-image build is it possible to select the optimization level for each image individually? 
 Below is an example of the issue I am facing currently: 
 
 I have a mutli-image build that builds mcuboot, TFM and my application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 May 2024 08:28:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111616/multi-image-build-with-selective-optimization-level" /><item><title>RE: Multi-image build with selective optimization level</title><link>https://devzone.nordicsemi.com/thread/486332?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 08:28:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14814699-cabf-4064-8790-a9f66282fbcd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi rw,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear you got things&amp;nbsp;running as expected.&lt;/p&gt;
&lt;p&gt;I hope you have a wonderful day!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image build with selective optimization level</title><link>https://devzone.nordicsemi.com/thread/486329?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 08:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9f80923-8505-414b-a352-b8886395bdd2</guid><dc:creator>rw_w</dc:creator><description>&lt;p&gt;Hello Hakon,&lt;/p&gt;
&lt;p&gt;thanks for the response.&lt;/p&gt;
&lt;p&gt;Changing the optimization level only for the application using the .config file in the build folder solves the issue on my end.&lt;/p&gt;
&lt;p&gt;Too bad I didn&amp;#39;t see the other topic before creating this issue.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks and best regards&lt;/p&gt;
&lt;p&gt;rw&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Multi-image build with selective optimization level</title><link>https://devzone.nordicsemi.com/thread/486310?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 07:23:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:103171a7-45a3-4896-91dc-00938c1cebbb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, the configuration set in your project will be inherited into the tf-m child image.&lt;/p&gt;
&lt;p&gt;What is possible is to set the configuration to optimize for size, then re-configure only the application project to use debug optimizations (CONFIG_DEBUG_OPTIMIZATIONS=y) for the specific generated build only:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109482/using-config_debug_optimizations-with-thingy-91-and-asset-tracker-v2/475168"&gt;RE: Using CONFIG_DEBUG_OPTIMIZATIONS with Thingy:91 and Asset Tracker v2&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will leave&amp;nbsp;other images (tf-m/mcuboot) with the original optimization level.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>