From 6b2027698efb003f740d7bfc6f9fb68a7c501e20 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 25 Nov 2024 14:20:22 -0800 Subject: [PATCH] Fix for missing target.h. --- .github/workflows/build-keytools-windows.yml | 3 ++- include/delta.h | 2 ++ src/delta.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-keytools-windows.yml b/.github/workflows/build-keytools-windows.yml index 31e3e77bc..408863873 100644 --- a/.github/workflows/build-keytools-windows.yml +++ b/.github/workflows/build-keytools-windows.yml @@ -26,7 +26,8 @@ jobs: - name: Build Solution shell: cmd run: | - MSBuild.exe tools\keytools\wolfBootKeyTools.sln /p:Configuration=Release /p:Platform="x64" + echo "#define WOLFBOOT_SECTOR_SIZE 1024" > include/target.h + MSBuild.exe tools\keytools\wolfBootKeyTools.sln /m /p:Configuration=Release /p:Platform="x64" # Step 4: Upload executables as artifacts - name: Upload EXE Artifacts diff --git a/include/delta.h b/include/delta.h index b2b69a8c0..6a16068c6 100644 --- a/include/delta.h +++ b/include/delta.h @@ -35,6 +35,8 @@ #ifndef WOLFBOOT_DELTA_H #define WOLFBOOT_DELTA_H +#include + #ifndef DELTA_PATCH_BLOCK_SIZE #define DELTA_PATCH_BLOCK_SIZE 1024 #endif diff --git a/src/delta.c b/src/delta.c index 503a0a8af..201360495 100644 --- a/src/delta.c +++ b/src/delta.c @@ -22,6 +22,7 @@ #include #include #include +#include /* WOLFBOOT_SECTOR_SIZE */ #define ESC 0x7f