mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-31 13:00:49 +00:00
Squashed commit of the following:
update for tag movement
updated to new release
update pack in examples
new release number
rename to extra
Cleanup
Added ready-made examples to ST pack
Add Keil examples
Fix CRLF, start adding examples descriptions
Remove examples
STM32Cube Expansion Pack with no examples
Add STM32Cube Expansion Pack skeleton
Added examples for discussion
Add support for Cube
Working on examples
pack skeleton ready
This commit is contained in:
1 parent
b1c2ffe1a0
commit
2dffbc32ba
941 files changed
+646479
-1
No files matched your search
@@ -0,0 +1,50 @@
|
||||
# Generate pack using current sources
|
||||
|
||||
GENPACK ?= ./gen_pack.sh
|
||||
|
||||
all:
|
||||
rm -rf Boards/*/*/*/Listings # remove any leftovers, just in case, harmless
|
||||
rm -rf Boards/*/*/*/Objects
|
||||
rm -rf Boards/*/*/*/DebugConfig
|
||||
cp ../../LICENSE License.txt
|
||||
cp ../../README.md .
|
||||
cp ../../mongoose.[ch] Mongoose/
|
||||
grep -l device_dashboard_fn Boards/*/*/*/main.c | xargs -n 1 dirname | sed 's.$$./.' | xargs -n 1 cp ../../examples/device-dashboard/net.c
|
||||
grep -l device_dashboard_fn Boards/*/*/*/main.c | xargs -n 1 dirname | sed 's.$$./.' | xargs -n 1 cp ../../examples/device-dashboard/packed_fs.c
|
||||
$(GENPACK)
|
||||
rm License.txt README.md Mongoose/mongoose.[ch]
|
||||
rm -f Boards/*/*/*/net.c
|
||||
rm -f Boards/*/*/*/packed_fs.c
|
||||
|
||||
clean:
|
||||
rm -rf output
|
||||
|
||||
# Requirements:
|
||||
# zip curl cmake ninja-build libxml2-utils patch p7zip-full
|
||||
# overwrite cmake with cmake-3.25.2-linux-x86_64 or newer
|
||||
# get cmsis-toolbox-linux-amd64.tar.gz
|
||||
# CMSIS_PACK_ROOT=/path/to/packrepo
|
||||
# CMSIS_COMPILER_ROOT=/path/to/cmsis-toolbox-linux-amd64/etc
|
||||
# PATH=/opt/cmsis-toolbox-linux-amd64/bin:$PATH
|
||||
# GCC_TOOLCHAIN_12_2_1=/path/to/toolchain/bin
|
||||
|
||||
# First time: packrepo will be empty --> cpackget init https://www.keil.com/pack/index.pidx
|
||||
# Then: ./gen_pack.sh
|
||||
|
||||
|
||||
# Test examples with updated pack
|
||||
# Keil: run in Windows after installing new pack release
|
||||
KEILPATH = Boards/*/*/*-keil-*
|
||||
KEILPROJECTS = $(wildcard $(KEILPATH))
|
||||
KEILDIRS = $(wildcard $(KEILPATH)/)
|
||||
|
||||
keilexamples: $(KEILDIRS)
|
||||
$(MAKE) -f ../../test/keil/Makefile "PROJECTS=$(KEILPROJECTS)"
|
||||
$(MAKE) -f ../../test/keil/Clean "PROJECTS=$(KEILPROJECTS)"
|
||||
|
||||
$(KEILDIRS): FORCE # copy anyway, even if not needed
|
||||
copy /Y ..\..\examples\device-dashboard\net.c $(subst /,\,$@)
|
||||
copy /Y ..\..\examples\device-dashboard\packed_fs.c $(subst /,\,$@)
|
||||
# not removed
|
||||
|
||||
FORCE:
|
||||
Reference in new issue
Block a user