AnsweredAssumed Answered

Information on patch.xml workflow

Question asked by Robert.Abel on Nov 18, 2016
Latest reply on Jan 18, 2017 by Erwan Y
I'm currently using SPC5Studio 4.2.1 (4.2.1.201607051420) and use it to develop on an SPC560B-DIS evaluation board. I noticed that edits I make to component files in the lib sub-directory are handily stored in regular diff format in patch.xml.

However, I would also like to edit files in e.g. the cfg sub-directory, so I manually created the following entry inside the patch.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<SPC5-Patch version="1.0.0">
  <!--It is your patch repository, do not break your XML File.-->
  <files>
    <file componentId="org.chibios.spc5.components.spc5hal" version="1.0.0.201607011046" path="component/cfg/halconf.h" user="false">
      <diff><![CDATA[--- components/portable_spc5_hal_component/cfg/halconf.h
+++ components/portable_spc5_hal_component/cfg/halconf.h
@@ -79,7 +79,7 @@
  * @brief   Enables the I2C subsystem.
  */
 #if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
-#define HAL_USE_I2C                 FALSE
+#define HAL_USE_I2C                 TRUE
 #endif
 
 /**]]></diff>
    </file>
  </files>
</SPC5-Patch>

However, these manually introduced patches aren't being applied once I recreate the component tree. Is there some setting/trick/... to enable this? Is my syntax wrong? Or is it plain not possible to patch files outside of the lib sub-directories at the moment?

Outcomes