infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: Compiling DAVE generated code on linux

  1. #1

    Compiling DAVE generated code on linux

    Hello there,

    I am setting up continuous deployment for my xmc board development.
    Doing so I am using a Ubuntu build enviroment. For the build process, I use CMake to generate the makefiles.

    I ran into problems considering the case sensitivity of linux. For example the
    Code:
    DAVE_Common.h
    is sometimes included with a capital c and sometimes with a small c.
    This will result into "File not found." .

    To fix this I wrote a script that corrects the includes in terms of the case sensitivity.

    Now I come to the question: Is there a way to integrate this script into the DAVE code generation step? Like a postgeneration trigger?

    Or is there a totally different solution for this problem?

    Greetings!
    Last edited by infineonforumuserme; May 20th, 2020 at 12:37 AM.

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    744
    Hi,

    We are aware about this problem and working fixing it.
    Meanwhile you could add a prebuild step command that replaces "DAVE_common.h" to "DAVE_Common.h" using i.e. sed
    https://unix.stackexchange.com/quest...nd-and-replace


    Regards,
    Jesus
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Hello Jesus,

    I was thinking about that. This solution does work in the scenario that all includes do include the same headername.

    In the app FREERTOS for example, even the includes (of the same header) don't match to each other in terms of casesensitivity.
    Working that out with the use of sed would end up in a realy long and messy workaround. That is where I got stuck..

    But if that is the only solution for now, I guess I am stuck with running a script manually each time I generate code.

    If another solution is coming up, I'd like to get a hit about that.

    Greetings!
    Last edited by infineonforumuserme; May 26th, 2020 at 04:17 AM.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.