blob: a029670cfa532b07709ef63032acf42bfb57b141 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
BUILDDIR ?= build
WGET ?= wget
PYTHON ?= python3
$(BUILDDIR):
mkdir -p $(BUILDDIR)
.PRECIOUS: $(BUILDDIR)/%.jar
$(BUILDDIR)/%.jar:
mkdir -p $(BUILDDIR)
$(WGET) --tries=10 -N -O $@ $$($(PYTHON) tools/get_p2_url.py $*)
touch $@
$(BUILDDIR)/%.dir: $(BUILDDIR)/%.jar
mkdir -p $@
rm -rf $@
unzip -d $@ $<
.PHONY: update_svd
update_svd: $(BUILDDIR)/com.st.stm32cube.ide.mcu.productdb.debug.dir
rm -rf svd
mkdir -p svd
cp $</resources/cmsis/STMicroelectronics_CMSIS_SVD/{*.svd,License.html} svd/
.PHONY: update_xml
update_xml: $(BUILDDIR)/com.st.stm32cube.common.mx.dir
rm -rf mx_mcu_db
mkdir -p mx_mcu_db
cp $</about.html mx_mcu_db/License.html
cp -r $</db/mcu/* mx_mcu_db/
update_prog_db: $(BUILDDIR)/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64.dir
rm -rf prog_db
mkdir -p prog_db
cp $</about.html prog_db/License.html
cp $</tools/Data_Base/*.xml prog_db/
# The following file contains garbage data on the µC's memories.
#stm32targets.xml: $(BUILDDIR)/com.st.stm32cube.ide.mcu.productdb.dir
# cp $</resources/board_def/$@ $@
#$(BUILDDIR)/com.st.stm32cube.ide.mcu.productdb.dir:
|