Compile for multiple target profiles

When using Image Builder, the firmware is compiled for all version of a Target Profile.
E.G.: if I select TP-LINK WR841ND, all version from 1 to 13 are built.

When building image compiling with make, only a firmware is generated.
E.G.: if iI select TP-LINK WR841ND v8, only the v8 version is compiled.

I have 4 different devices:

  • TP-LINK WR841ND v8
  • TP-LINK WR841ND v10
  • GL-iNet AR150
  • Buffalo WZR-HP-G450H

and each time I need to update their firmware,
I have to run 4 times make menuconfig and make to select the target.

Is there a way to compile for more target profile at once when using make?

Use CONFIG_TARGET_MULTI_PROFILE (and you probably want CONFIG_TARGET_PER_DEVICE_ROOTFS as well).

2 Likes

If I do something like this with .github/workflows, and try compiling whole ipq40xx, it will just fail. :confused: