Linking DKM Projects to Kernel Image(VIP) project as a Sub project/Extra Module in VxWorks Workbench4

后端 未结 2 841
生来不讨喜
生来不讨喜 2021-01-27 00:10

How to Link/Load DKM projects with Kernel Image(VIP) project so that i can call the Entry point function of DKM project(application) from Kernel Image project\'s \"usrAppInit.c\

2条回答
  •  半阙折子戏
    2021-01-27 00:39

    1. Add the DKM project as sub-project of your VIP. You can drag and drop, or open the VIP Project Properties, and from Project References check your DKM project
    2. In usrAppInit.c, call the entry point of your DKM. You will probably want to include the appropriate header
    3. Modify the VIP include paths as required to include the header file.
    4. If required, configure the kernel to use the correct build target for the DKM.

    Using this approach, when you build the VIP, it will first build the child DKM projects (which will generate the .out files) then the VIP, generating a vxworks image that includes the .out files

提交回复
热议问题