How to add personnal Arduino board to PlatformIO

Hi all,
I’m actually working with VsCode and Arduino and I’d like to try PaltformIO. But I’m only work with personnal board. In VsCode I’ve installer Arduino plugin and all my personnal board are available in VsCode.
How can I add my personnal board to PlatformIO ? For example I have a json file to describe my board like that :

{
  "packages":
  [
    {
      "name": "Zephyr board",
      "maintainer": "myself",
      "websiteURL": "http://www.arduino.cc/en/Reference/HomePage",
      "help":
      {
        "online": "http://www.arduino.cc/en/Reference/HomePage"
      },
      "platforms":
      [
        {
          "name": "Zephyr board",
          "architecture": "samd",
          "version": "1.1.0",
          "category": "Contributed",
          "url": "file:///Users/T55T/Downloads/Zephyr-boards.tar.bz2",
          "archiveFileName": "Zephyr-boards.tar.bz2",
          "checksum": "SHA-256:a16f0835ba19f6f72008825a76d26f6be431e21fd0934d29122d487e653d8c3e",
          "size": "908411",
          "boards": [
            {
              "name": "MyBoard 1"
            },
            {
              "name": "MyBoard 2"
            },
            {
              "name": "MyBoard 3"
            }
          ],
          "toolsDependencies":
          [
            {
              "packager": "arduino",
              "name": "arm-none-eabi-gcc",
              "version": "4.8.3-2014q1"
            },
            {
              "packager": "arduino",
              "name": "bossac",
              "version": "1.6.1-arduino"
            },
            {
              "packager": "arduino",
              "name": "openocd",
              "version": "0.9.0-arduino"
            },
            {
              "packager": "arduino",
              "name": "CMSIS",
              "version": "4.0.0-atmel"
            },
            {
              "packager": "Zephyr board",
              "name": "bossac",
              "version": "1.7.0-mattairtech-3"
            }
          ]
        },
      ],
      "tools":
      [
        {
          "name": "bossac",
          "version": "1.7.0-mattairtech-3",
          "systems": [
            {
              "host": "i686-mingw32",
              "url": "https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-3-mingw32.tar.gz",
              "archiveFileName": "bossac-1.7.0-mattairtech-3-mingw32.tar.gz",
              "checksum": "SHA-256:ce6ce590c612dc8b18ba52df3903ba3d43416c92ef54538881cc07fdd2ef1f04",
              "size": "325719"
            },
            {
              "host": "x86_64-pc-linux-gnu",
              "url": "https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-3-x86_64-linux-gnu.tar.gz",
              "archiveFileName": "bossac-1.7.0-mattairtech-3-x86_64-linux-gnu.tar.gz",
              "checksum": "SHA-256:e0801cd435a0aa08a4ccc1781cdcc1bf9ae92e248888163a1bb4dce20c00bcf9",
              "size": "34622"
            },
            {
              "host": "i686-pc-linux-gnu",
              "url": "https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-3-i686-linux-gnu.tar.gz",
              "archiveFileName": "bossac-1.7.0-mattairtech-3-i686-linux-gnu.tar.gz",
              "checksum": "SHA-256:edd3bc6fd80641563dc6ca337d695fca25c2d43242172ea0418b678d4dbe0628",
              "size": "34628"
            },
            {
              "host": "x86_64-apple-darwin",
              "url": "https://www.mattairtech.com/software/arduino/bossac-1.7.0-mattairtech-3-x86_64-apple-darwin.tar.gz",
              "archiveFileName": "bossac-1.7.0-mattairtech-3-x86_64-apple-darwin.tar.gz",
              "checksum": "SHA-256:da4d4b04582f92d09e3d48a1ec4d2473b6cd01bba992c0f1f2cd7ee1008f08f8",
              "size": "88845"
            }
          ]
        }
      ]
    }
  ]
}

As you can see in this json file (added to Arduino) we only have board description with tools dependencies. In the json file I have a bz2 file, that’s in this compress directory we have board description with variant.cpp pin_arduino.h and variant.h for pin mapping etc. and boards.txt file

# MyBoard 1
# ---------------------------------------
MyBoard_1.name=MyBoard 1
MyBoard_1.vid.0=0x2399
MyBoard_1.pid.0=0x405d
MyBoard_1.vid.1=0x2399
MyBoard_1.pid.1=0x405d

MyBoard_1.upload.tool=Zephyr:bossac
MyBoard_1.upload.protocol=sam-ba
MyBoard_1.upload.maximum_size=131072
MyBoard_1.upload.use_1200bps_touch=true
MyBoard_1.upload.wait_for_upload_port=true
MyBoard_1.upload.native_usb=true
MyBoard_1.build.mcu=cortex-m0plus
MyBoard_1.build.f_cpu=48000000L
MyBoard_1.build.usb_product="Zephyr MyBoard 1"
MyBoard_1.build.usb_manufacturer="myself"
MyBoard_1.build.board=SAMD_ZERO
MyBoard_1.build.core=arduino
MyBoard_1.build.extra_flags=-D__SAMD21E17A__ {build.usb_flags}
MyBoard_1.build.ldscript=linker_scripts/gcc/flash_with_bootloader.ld
MyBoard_1.build.openocdscript=openocd_scripts/arduino_zero.cfg
MyBoard_1.build.variant=MyBoard_1
MyBoard_1.build.variant_system_lib=
MyBoard_1.build.vid=0x2399
MyBoard_1.build.pid=0x405d
MyBoard_1.bootloader.tool=openocd
MyBoard_1.bootloader.file=zephyr-v2/sam_ba_Generic_x21E_SAMD21E17A.bin
MyBoard_1.compiler.optimization_flags=-O3

other boards

That’s a whole package index declaration, not what PlatformIO understands as a board.

Did you fork your core form the mattaritech one? This is core is unsupported in PIO (source).