Move zephyr fork configs to the nrf: and stm32: platform keys

The fork's framework-zephyr rewrite drops the zephyr: key: variant and
board stay on the platform key, the other options move under framework:.
CI skips the Zephyr RTOS platform keys instead of zephyr:.
This commit is contained in:
randy committed 2026-10-31 16:15:00 +01:00
1 parent 7b9430c0e5
commit 17bbf207e4
5 files changed
+71 -71

No files matched your search

+2 -2
View File
@@ -55,8 +55,8 @@ jobs:
if: steps.changed.outputs.any_changed == 'true' if: steps.changed.outputs.any_changed == 'true'
run: | run: |
for f in ${{ steps.changed.outputs.all_changed_files }}; do for f in ${{ steps.changed.outputs.all_changed_files }}; do
# zephyr: needs the esphomeplatformzephyr fork, upstream doesn't know it yet # Zephyr RTOS platforms need the esphomeplatformzephyr fork, upstream doesn't know them yet
if grep -q '^zephyr:' "$f"; then echo "Skipping $f (zephyr fork)"; continue; fi if grep -qE '^(nrf|stm32|nxp|renesas|silabs):' "$f"; then echo "Skipping $f (zephyr fork)"; continue; fi
echo "Validating $f..." echo "Validating $f..."
esphome config "$f" esphome config "$f"
done done
+1 -1
View File
@@ -25,7 +25,7 @@ esphome:
friendly_name: nRF ANT+ friendly_name: nRF ANT+
# needs the esphomeplatformzephyr fork (esphome-zephyr); RadiANT needs NCS # needs the esphomeplatformzephyr fork (esphome-zephyr); RadiANT needs NCS
zephyr: nrf:
variant: NRF52 variant: NRF52
board: nrf52840dk/nrf52840 board: nrf52840dk/nrf52840
framework: framework:
+2 -2
View File
@@ -18,8 +18,8 @@ esphome:
name: mcu-nrf-dk name: mcu-nrf-dk
friendly_name: nRF DK friendly_name: nRF DK
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet # needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no nrf: platform yet
zephyr: nrf:
variant: NRF52 variant: NRF52
board: nrf52840dk/nrf52840 board: nrf52840dk/nrf52840
framework: framework:
+35 -35
View File
@@ -8,47 +8,47 @@ esphome:
name: mcu-stm32-blackpill name: mcu-stm32-blackpill
friendly_name: STM32 Black Pill friendly_name: STM32 Black Pill
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet # needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no stm32: platform yet
zephyr: stm32:
variant: STM32F4 variant: STM32F4
board: blackpill_f401cc board: blackpill_f401cc
framework: framework:
type: zephyr type: zephyr
advanced: advanced:
runner: dfu-util runner: dfu-util
# no network, so no OTA: one image slot, MCUboot only verifies and boots it # no network, so no OTA: one image slot, MCUboot only verifies and boots it
single_slot: true single_slot: true
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3) # NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
kconfig_options: kconfig_options:
SETTINGS_NVS_SECTOR_COUNT: 2 SETTINGS_NVS_SECTOR_COUNT: 2
# the stock table puts slot1 at 0x40000, past the end of the 256K flash; # the stock table puts slot1 at 0x40000, past the end of the 256K flash;
# MCUboot in sectors 0-1, storage in 2-3, the app in 4-5. # MCUboot in sectors 0-1, storage in 2-3, the app in 4-5.
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it # MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
overlays: overlays:
app: &partitions | app: &partitions |
&flash0 { &flash0 {
/delete-node/ partitions; /delete-node/ partitions;
partitions { partitions {
compatible = "fixed-partitions"; compatible = "fixed-partitions";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(32)>; reg = <0x00000000 DT_SIZE_K(32)>;
read-only; read-only;
}; };
storage_partition: partition@8000 { storage_partition: partition@8000 {
label = "storage"; label = "storage";
reg = <0x00008000 DT_SIZE_K(32)>; reg = <0x00008000 DT_SIZE_K(32)>;
}; };
slot0_partition: partition@10000 { slot0_partition: partition@10000 {
label = "image-0"; label = "image-0";
reg = <0x00010000 DT_SIZE_K(192)>; reg = <0x00010000 DT_SIZE_K(192)>;
};
}; };
}; };
}; / { chosen { zephyr,code-partition = &slot0_partition; }; };
/ { chosen { zephyr,code-partition = &slot0_partition; }; }; mcuboot: *partitions
mcuboot: *partitions
logger: logger:
hardware_uart: USB_CDC hardware_uart: USB_CDC
+31 -31
View File
@@ -8,43 +8,43 @@ esphome:
name: mcu-stm32-nucleo name: mcu-stm32-nucleo
friendly_name: STM32 Nucleo friendly_name: STM32 Nucleo
# needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no zephyr: platform yet # needs the esphomeplatformzephyr fork (esphome-zephyr), upstream has no stm32: platform yet
zephyr: stm32:
variant: STM32F4 variant: STM32F4
board: nucleo_f411re board: nucleo_f411re
framework: framework:
type: zephyr type: zephyr
# no network, so no OTA: one image slot, MCUboot only verifies and boots it # no network, so no OTA: one image slot, MCUboot only verifies and boots it
single_slot: true single_slot: true
# NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3) # NVS sector = flash page; needs >= 2 of them, so storage takes the two 16K pages (sectors 2-3)
kconfig_options: kconfig_options:
SETTINGS_NVS_SECTOR_COUNT: 2 SETTINGS_NVS_SECTOR_COUNT: 2
# nucleo_f411re ships no partitions at all: MCUboot in sectors 0-1, storage in 2-3, the app in 4-7. # nucleo_f411re ships no partitions at all: MCUboot in sectors 0-1, storage in 2-3, the app in 4-7.
# MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it # MCUboot needs the same table; the fork appends its own code-partition = &boot_partition after it
overlays: overlays:
app: &partitions | app: &partitions |
&flash0 { &flash0 {
partitions { partitions {
compatible = "fixed-partitions"; compatible = "fixed-partitions";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
boot_partition: partition@0 { boot_partition: partition@0 {
label = "mcuboot"; label = "mcuboot";
reg = <0x00000000 DT_SIZE_K(32)>; reg = <0x00000000 DT_SIZE_K(32)>;
read-only; read-only;
}; };
storage_partition: partition@8000 { storage_partition: partition@8000 {
label = "storage"; label = "storage";
reg = <0x00008000 DT_SIZE_K(32)>; reg = <0x00008000 DT_SIZE_K(32)>;
}; };
slot0_partition: partition@10000 { slot0_partition: partition@10000 {
label = "image-0"; label = "image-0";
reg = <0x00010000 DT_SIZE_K(448)>; reg = <0x00010000 DT_SIZE_K(448)>;
};
}; };
}; };
}; / { chosen { zephyr,code-partition = &slot0_partition; }; };
/ { chosen { zephyr,code-partition = &slot0_partition; }; }; mcuboot: *partitions
mcuboot: *partitions
logger: logger: