Files
mongoose/extra/cmsis-pack/Makefile
T
Sergio R. Caprile 2dffbc32ba 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
2026-04-08 11:41:26 -03:00

51 lines
1.7 KiB
Makefile

# 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: