Adapt project's Makefile

If you want your project to use the pinmap configuration that you've created, you'll need to adapt the Makefile to point to the correct generated configuration header file, generated from your .gpio file.

The default Makefile uses the board evbe7000p from the E-SDK, we need to replace this name with the name of the generated configuration header file.

The Makefile must contain the correct CONFIG_BOARD variable, and we need to adapt the C_INCS


  1. CONFIG_BOARD: must contain the name of the configuration (i.e. the identifier directly following the PinSetting keyword in the .gpio file).
    Figure 1. Name of the configuration to be used

  2. C_INCS: must be augmented with the location of the folder containing the generated header file (i.e. src-gen project's folder).

Here are the two modifications, illustrated in the diff window below. The right part illustrates the default content of the Makefile, while the left part shows the modifications.

Figure 2. Adapt CONFIG_BOARD and C_INCS

Now that the Makefile is updated, you can compile your project, which now points to the good configuration.