Skip to content

Commit 275842b

Browse files
committed
fix: release version used for the tag
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 0d82eb4 commit 275842b

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

Makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ cmsis6: clean print_info
6363
--exclude=.devcontainer \
6464
--transform "s|CMSIS_6|CMSIS|" \
6565
-cjf "$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2" "$(PACKAGE_FOLDER)"
66-
$(MAKE) PACKAGE_NAME=$(PACKAGE_NAME) PACKAGE_VERSION=$(PACKAGE_VERSION) --no-builtin-rules postpackaging -C .
66+
$(MAKE) PACKAGE_NAME=$(PACKAGE_NAME) PACKAGE_VERSION=$(PACKAGE_VERSION) CMSIS_VERSION=$(PACKAGE_VERSION) --no-builtin-rules postpackaging -C .
6767
@echo ----------------------------------------------------------
6868

6969
cmsis_dsp: PACKAGE_NAME := "CMSIS_DSP"
7070
cmsis_dsp: PACKAGE_FOLDER := CMSIS-DSP
7171
cmsis_dsp: PACKAGE_VERSION := $(shell git --git-dir=$(PACKAGE_FOLDER)/.git describe --tags | sed 's/^v//')
7272
cmsis_dsp: PACKAGE_DATE := $(firstword $(shell git --git-dir=$(PACKAGE_FOLDER)/.git log -1 --pretty=format:%ci))
73+
cmsis_dsp: CMSIS_VERSION := $(shell git --git-dir=CMSIS_6/.git describe --tags | sed 's/^v//')
7374
cmsis_dsp: clean print_info
7475
@echo ----------------------------------------------------------
7576
@echo "Packaging module."
@@ -93,13 +94,14 @@ cmsis_dsp: clean print_info
9394
--exclude=vcpkg-configuration.json \
9495
--transform "s|CMSIS-DSP|CMSIS_DSP|" \
9596
-cjf "$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2" "$(PACKAGE_FOLDER)"
96-
$(MAKE) PACKAGE_NAME=$(PACKAGE_NAME) PACKAGE_VERSION=$(PACKAGE_VERSION) --no-builtin-rules postpackaging -C .
97+
$(MAKE) PACKAGE_NAME=$(PACKAGE_NAME) PACKAGE_VERSION=$(PACKAGE_VERSION) CMSIS_VERSION=$(CMSIS_VERSION) --no-builtin-rules postpackaging -C .
9798
@echo ----------------------------------------------------------
9899

99100
cmsis_nn: PACKAGE_NAME := "CMSIS_NN"
100101
cmsis_nn: PACKAGE_FOLDER := CMSIS-NN
101102
cmsis_nn: PACKAGE_VERSION := $(shell git --git-dir=$(PACKAGE_FOLDER)/.git describe --tags | sed 's/^v//')
102103
cmsis_nn: PACKAGE_DATE := $(firstword $(shell git --git-dir=$(PACKAGE_FOLDER)/.git log -1 --pretty=format:%ci))
104+
cmsis_nn: CMSIS_VERSION := $(shell git --git-dir=CMSIS_6/.git describe --tags | sed 's/^v//')
103105
cmsis_nn: clean print_info
104106
@echo ----------------------------------------------------------
105107
@echo "Packaging module."
@@ -117,7 +119,7 @@ cmsis_nn: clean print_info
117119
--exclude=gen_pack.sh \
118120
--transform "s|CMSIS-NN|CMSIS_NN|" \
119121
-cjf "$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.bz2" "$(PACKAGE_FOLDER)"
120-
$(MAKE) PACKAGE_NAME=$(PACKAGE_NAME) PACKAGE_VERSION=$(PACKAGE_VERSION) --no-builtin-rules postpackaging -C .
122+
$(MAKE) PACKAGE_NAME=$(PACKAGE_NAME) PACKAGE_VERSION=$(PACKAGE_VERSION) CMSIS_VERSION=$(CMSIS_VERSION) --no-builtin-rules postpackaging -C .
121123
@echo ----------------------------------------------------------
122124

123125
cmsis5: PACKAGE_NAME := "CMSIS"
@@ -199,5 +201,5 @@ postpackaging:
199201
@echo "PACKAGE_CHKSUM = $(PACKAGE_CHKSUM)"
200202
@echo "PACKAGE_SIZE = $(PACKAGE_SIZE)"
201203
@echo "PACKAGE_FILENAME = $(PACKAGE_FILENAME)"
202-
@cat extras/package_index.json.template | sed s/%%PACKAGENAME%%/$(PACKAGE_NAME)/ | sed s/%%VERSION%%/$(PACKAGE_VERSION)/ | sed s/%%FILENAME%%/$(PACKAGE_FILENAME)/ | sed s/%%CHECKSUM%%/$(PACKAGE_CHKSUM)/ | sed s/%%SIZE%%/$(PACKAGE_SIZE)/ > package_$(PACKAGE_NAME)_$(PACKAGE_VERSION)_index.json
204+
@cat extras/package_index.json.template | sed s/%%PACKAGENAME%%/$(PACKAGE_NAME)/ | sed s/%%VERSION%%/$(PACKAGE_VERSION)/ | sed s/%%CMSISVERSION%%/$(CMSIS_VERSION)/ | sed s/%%FILENAME%%/$(PACKAGE_FILENAME)/ | sed s/%%CHECKSUM%%/$(PACKAGE_CHKSUM)/ | sed s/%%SIZE%%/$(PACKAGE_SIZE)/ > package_$(PACKAGE_NAME)_$(PACKAGE_VERSION)_index.json
203205
@echo "package_$(PACKAGE_NAME)_$(PACKAGE_VERSION)_index.json created"

extras/package_index.json.template

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@
55
[
66
{
77
"host": "aarch64-linux-gnu",
8-
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%VERSION%%/%%FILENAME%%",
8+
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%CMSISVERSION%%/%%FILENAME%%",
99
"archiveFileName": "%%FILENAME%%",
1010
"checksum": "SHA-256:%%CHECKSUM%%",
1111
"size": "%%SIZE%%"
1212
},
1313
{
1414
"host": "arm64-apple-darwin",
15-
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%VERSION%%/%%FILENAME%%",
15+
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%CMSISVERSION%%/%%FILENAME%%",
1616
"archiveFileName": "%%FILENAME%%",
1717
"checksum": "SHA-256:%%CHECKSUM%%",
1818
"size": "%%SIZE%%"
1919
},
2020
{
2121
"host": "i686-mingw32",
22-
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%VERSION%%/%%FILENAME%%",
22+
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%CMSISVERSION%%/%%FILENAME%%",
2323
"archiveFileName": "%%FILENAME%%",
2424
"checksum": "SHA-256:%%CHECKSUM%%",
2525
"size": "%%SIZE%%"
2626
},
2727
{
2828
"host": "x86_64-apple-darwin",
29-
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%VERSION%%/%%FILENAME%%",
29+
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%CMSISVERSION%%/%%FILENAME%%",
3030
"archiveFileName": "%%FILENAME%%",
3131
"checksum": "SHA-256:%%CHECKSUM%%",
3232
"size": "%%SIZE%%"
3333
},
3434
{
3535
"host": "x86_64-pc-linux-gnu",
36-
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%VERSION%%/%%FILENAME%%",
36+
"url": "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/%%CMSISVERSION%%/%%FILENAME%%",
3737
"archiveFileName": "%%FILENAME%%",
3838
"checksum": "SHA-256:%%CHECKSUM%%",
3939
"size": "%%SIZE%%"

0 commit comments

Comments
 (0)