From 9847470b387c43b16713f5854b2dfd7b334bd31e Mon Sep 17 00:00:00 2001
From: Timothy Hoogland <timothy@hoogland.email>
Date: Mon, 31 Jan 2022 14:02:07 -0600
Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20EZBoard=20V2=20Environment?=
 =?UTF-8?q?=20for=20OpenBLT=20(#23659)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ini/stm32f4.ini | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ini/stm32f4.ini b/ini/stm32f4.ini
index f721f3075d7..1ac533f4d31 100644
--- a/ini/stm32f4.ini
+++ b/ini/stm32f4.ini
@@ -531,11 +531,14 @@ build_unflags     = -DUSBD_USE_CDC
 extends             = stm32_variant
 board               = genericSTM32F405RG
 board_build.variant = MARLIN_TH3D_EZBOARD_V2
+board_build.encrypt = firmware.bin
 board_build.offset  = 0xC000
 board_upload.offset_address = 0x0800C000
 build_flags         = ${stm32_variant.build_flags} -DHSE_VALUE=12000000U -O0
 debug_tool          = stlink
 upload_protocol     = stlink
+extra_scripts       = ${stm32_variant.extra_scripts}
+                      buildroot/share/PlatformIO/scripts/openblt.py
 
 #
 # BOARD_MKS_ROBIN_NANO_V1_3_F4