Hi, everyone.
I did a custom board centered on a nRF52840, using a Minew module ME25LS01. Editing a Seeed XIAO board as example, I managed to edit variant files and put all the GPIO to work 
However Iโd like these changes to be within my projectโs folder, so I could share it and protect from updates etc
The closest I got was a reference from this topic, but Iโm failing to succeed.
My current folder structure is
project_root/
โโโ boards/
โ   โโโ Minew_ME25LS01.json
โโโ variants/
โ   โโโ Minew_ME25LS01/
โ       โโโ pins_arduino.h
โ       โโโ variant.h
โ       โโโ variant.cpp
โโโ lib/
โโโ src/
For the JSON file I have copy-paste of the original one
{
  "build": {
    "arduino": {
      "ldscript": "nrf52840_s140_v7.ld"
    },
    "core": "nRF5",
    "cpu": "cortex-m4",
    "extra_flags": "-DARDUINO_Seeed_XIAO_nRF52840 -DNRF52840_XXAA -DSEEED_XIAO_NRF52840 ",
    "f_cpu": "64000000L",
    "hwids": [
      [
        "0x2886",
        "0x8044"
      ],
      [
        "0x2886",
        "0x0044"
      ]
    ],
    "mcu": "nrf52840",
    "variant": "Minew_ME25LS01",
    "variants_dir": "custom_variants",
    "softdevice": {
      "sd_flags": "-DS140",
      "sd_name": "s140",
      "sd_version": "7.3.0",
      "sd_fwid": "0x0123"
    },
    "bsp": {
      "name": "adafruit"
    },
    "usb_product": "XIAO nRF52840"
  },
  "connectivity": [
    "bluetooth"
  ],
  "debug": {
    "jlink_device": "nRF52840_xxAA",
    "openocd_target": "nrf52.cfg",
    "svd_path": "nrf52840.svd"
  },
  "frameworks": [
    "arduino"
  ],
  "name": "Seeed Studio XIAO nRF52840",
  "upload": {
    "maximum_ram_size": 237568,
    "maximum_size": 811008,
    "protocol": "nrfutil",
    "speed": 115200,
    "protocols": [
      "jlink",
      "nrfjprog",
      "nrfutil",
      "cmsis-dap",
      "sam-ba",
      "blackmagic"
    ],
    "use_1200bps_touch": true,
    "require_upload_port": true,
    "wait_for_upload_port": true
  },
  "url": "https://wiki.seeedstudio.com/XIAO_BLE",
  "vendor": "Seeed Studio"
}
And for my *.ini
[env:Minew_ME25LS01]
framework = arduino
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
; platform = https://github.com/platformio/platform-nordicnrf52.git
board = Minew_ME25LS01
board_build.variant = Minew_ME25LS01
board_build.variants_dir = variants
build_flags = -I variants/Minew_ME25LS01
And where Iโm stuck at, when attempt to compile is
Resolving Minew_ME25LS01 dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...
UserSideException: Processing Minew_ME25LS01 (framework: arduino; platform: https://github.com/Seeed-Studio/platform-seeedboards.git; board: Minew_ME25LS01)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
no config Architecture
AttributeError: 'NoneType' object has no attribute 'get':
  File "C:\Users\Leandro\.platformio\penv\Lib\site-packages\platformio\builder\main.py", line 158:
    env.LoadPioPlatform()
  File "C:\Users\Leandro\.platformio\packages\tool-scons\scons-local-4.8.1\SCons\Util\envs.py", line 252:
    return self.method(*nargs, **kwargs)
  File "C:\Users\Leandro\.platformio\penv\Lib\site-packages\platformio\builder\tools\pioplatform.py", line 108:
    if isinstance(board_config.get(option), bool):
========================== [FAILED] Took 0.74 seconds ==========================
The verbose-buid adds no more information.
Any help or advise would be great.
Thank you in advance. Many thanks.