From a6452f5311cbead10becdd3edb35cac55848c775 Mon Sep 17 00:00:00 2001 From: cpq Date: Fri, 29 May 2026 19:47:52 +0100 Subject: [PATCH] Fix uploads --- resources/downloads/Makefile | 5 +++-- resources/downloads/integrate_mongoose_cubemx.sh | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/downloads/Makefile b/resources/downloads/Makefile index 1e14e29f..7f914eb2 100644 --- a/resources/downloads/Makefile +++ b/resources/downloads/Makefile @@ -32,13 +32,14 @@ $(1)-dashboard-$(2): mkdir -p $$@ $(MAKE) -C $(TOP)/tutorials/rp/$(1) clean cp -r $(TOP)/tutorials/rp/$(1)/* $$@/ - cp $(TOP)/{mongoose.c,mongoose.c,LICENSE} $$@/mongoose/ + cp $(TOP)/{LICENSE,resources/specs/CLAUDE.md} $$@/ + cp $(TOP)/{mongoose.c,mongoose.h} $$@/mongoose/ cp $(TOP)/resources/html2c.js $$@/mongoose/ cp $(TOP)/tutorials/device-dashboard/$(2)/{dashboard.c,dashboard.html} $$@/mongoose/ sed -i '' -e '/mg_http_listen/d' $$@/main.c grep -q 'mg_dash_init' $$@/main.c || perl -i -ne 'print; print " mg_dash_init(&mgr);\n" if /mg_mgr_init/' $$@/main.c grep -q 'mg_dash_poll' $$@/main.c || perl -i -ne 'print; print " mg_dash_poll(&mgr);\n" if /mg_mgr_poll/' $$@/main.c - grep -q 'dashboard.c' $$@/CMakeLists.txt || sed -i -e 's,mongoose.c,mongoose.c mongoose/dashboard.c mongoose/file_data.c,' $$@/CMakeLists.txt + grep -q 'dashboard.c' $$@/CMakeLists.txt || perl -i -pe 's,mongoose\.c,mongoose.c mongoose/dashboard.c mongoose/file_data.c,' $$@/CMakeLists.txt grep -q 'html2c.js' $$@/CMakeLists.txt || perl -i -ne 'print "add_custom_command(\n OUTPUT \$$$${CMAKE_SOURCE_DIR}/mongoose/file_data.c\n COMMAND node \$$$${CMAKE_SOURCE_DIR}/mongoose/html2c.js \$$$${CMAKE_SOURCE_DIR}/mongoose/dashboard.html -o \$$$${CMAKE_SOURCE_DIR}/mongoose/file_data.c\n DEPENDS \$$$${CMAKE_SOURCE_DIR}/mongoose/dashboard.html\n VERBATIM\n)\n\n" if /add_executable/; print;' $$@/CMakeLists.txt endef diff --git a/resources/downloads/integrate_mongoose_cubemx.sh b/resources/downloads/integrate_mongoose_cubemx.sh index 50f46e93..690fdd90 100755 --- a/resources/downloads/integrate_mongoose_cubemx.sh +++ b/resources/downloads/integrate_mongoose_cubemx.sh @@ -47,6 +47,7 @@ patch_linker_script $DIR/STM32H743ZITX_FLASH.ld patch_linker_script $DIR/STM32H747XIHX_FLASH.ld patch_linker_script $DIR/stm32h747xx_flash_CM7.ld test -f $DIR/LICENSE || $CURL $RAW/LICENSE -o $DIR/LICENSE +test -f $DIR/CLAUDE.md || $CURL $RAW/resources/specs/CLAUDE.md -o $DIR/CLAUDE.md case $DIR in portenta*) ( grep -q 'void hwspecific_sdio_init(void);' "$MAIN_C" || \ perl -i -ne 'print; print "void hwspecific_sdio_init(void);\n" if /USER CODE BEGIN 0/' "$MAIN_C"