<?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>Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118195/board-specific-mcuboot-keys</link><description>NCS 2.7 
 Sysbuild with mcuboot 
 3 board variants defined by common board with 3 revisions: plank@1.0.0, plank@1.0.1, plank@1.0.2 
 2 applications: manufacturing and customer (mfg_app and app) 
 
 I would like to setup custom image signing keys that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jan 2025 14:01:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118195/board-specific-mcuboot-keys" /><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/520896?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2025 14:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c1fdf2-fe3e-41b7-a7f0-12f0fe8dcb6a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Apologies for the wait.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/share/sysbuild/CMakeLists.txt"&gt;zephyr/share/sysbuild/CMakeLists.txt &lt;/a&gt;sets ${APP_DIR}&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519846?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 16:27:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07211f8d-d552-48b7-a242-13b6c3cc5c3a</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;The sysbuild.conf has variables such as ${APP_DIR}&amp;nbsp; ${BOARD} and ${BOARD_REVISION} interpretted into a string, that is what I&amp;#39;m referring to by sysbuild.conf expansion.&lt;/p&gt;
&lt;p&gt;Is this interpretation of these variables a shell script processing where all environment variables are visible or is it something else where only specific variables are processed?&amp;nbsp; Where can I find the cmake handling of sysbuild.conf?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519823?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2025 15:18:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9360dc3-2239-428e-b25d-ac101360f018</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Thats a valid question. If I&amp;#39;ve understood the abstraction you mean with &amp;quot;sysbuild.conf expansion&amp;quot;, i.e when using sysbuild and having to add a sysbuild.conf, the answer is that some configs has to be set through sysbuild.conf, but others are still set through &amp;quot;regular&amp;quot; Kconfig. For instance enabling&amp;nbsp;&lt;span&gt;config_partition_manager_enabled will overwrite sysbuild configurations.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="anthony.asterisk"]Do you know where BOARD_REVISION gets defined or where sysbuild.conf gets variable substitution?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As far as my understanding goes, you don&amp;#39;t need a sysbuild substitution for this. It&amp;#39;s defined here (nRF Connect SDK main) &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/763e6a8ab82bd1a346a9b14a4b8fc7509c8441b6/boards/Kconfig#L14"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/763e6a8ab82bd1a346a9b14a4b8fc7509c8441b6/boards/Kconfig#L14&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let me know if this answers your question or if there&amp;#39;s still something that&amp;#39;s clarified&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Andreas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519620?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 16:13:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:249a4ff1-c2aa-4be2-bf10-c4114ad653ea</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Are kconfig values available during sysbuild.conf expansion?&amp;nbsp; I believe sysbuild.conf is used to determine kconfig so I am doubtful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you know where BOARD_REVISION gets defined or where sysbuild.conf gets variable substitution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519467?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 08:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95bff7a0-410d-411a-b1c5-d25d9a9e58bd</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There exists nothing within downstream&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/boards/Kconfig"&gt; &amp;lt;NCS&amp;gt;/zephyr/boards/Kconfig&lt;/a&gt; or upstream zephyr/boards/Kconfig (or /Kconfig.v1 or Kconfig.v2) that expands to underline separation instead of period separation as far as I can see. A suggestion could be to make your own custom KConfig for this purpose that you can use within your key signing procedure, or to create a script that handles the issue with underline vs period separation when signing your firmware&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519380?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 16:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c862215c-12c7-49a8-abf6-4f5e27e93ed4</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;This is working:&lt;/p&gt;
&lt;p&gt;SB_CONFIG_BOOT_SIGNATURE_KEY_FILE=&amp;quot;${APP_DIR}/../../keys/${BOARD}_${BOARD_REVISION}_private_key.pem&lt;/p&gt;
&lt;p&gt;except ${BOARD_REVISION} expands to 6.2.0 instead of 6_2_0.&amp;nbsp; &amp;nbsp;Is there an alternative variable name that would replace the &amp;quot;.&amp;quot; with &amp;quot;_&amp;quot; ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519369?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 16:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd859f4-c405-4061-94f6-96022f52af88</guid><dc:creator>Anthony Ambuehl</dc:creator><description>&lt;p&gt;Yes the relative path works with APP_DIR.&amp;nbsp; &amp;nbsp;I also found that ${BOARD} works to select the board name, but I also need to select with the revision number as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there a ${REVISION} or ${QUALIFIER}&amp;nbsp; or ${BOARD_REVISION}?&lt;/p&gt;
&lt;p&gt;Is there someplace I can find what variables will be expanded in sysbuild.conf?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I want to pick some like&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;${APP_DIR}/../../keys/${$BOARD}_${REVISION}_private_key.pm&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;such as app/../../keys/plank_1_0_1_private_key.pm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Board specific mcuboot keys</title><link>https://devzone.nordicsemi.com/thread/519323?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 13:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a8bbae5-198a-4828-aa5b-670be1d6c941</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Using APP_DIR is recommended per that discussion, but if you have your keys in a directory outside of the application you should be able to specify so by adding ../APP_DIR to the relative path&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>