Skip to content

Commit bb0c6d4

Browse files
committed
ci(stm32variant): add date of last generation
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 6eee5c6 commit bb0c6d4

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

CI/update/stm32variant.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
import datetime
23
import json
34
import re
45
import subprocess
@@ -103,6 +104,8 @@
103104
#endif
104105
"""
105106

107+
year = datetime.datetime.now().year
108+
106109
# Choice is based on the fact Tone and Servo do not need output nor compare
107110
# capabilities, and thus select timer instance which have the less outputs/compare
108111
# capabilities:
@@ -1191,6 +1194,7 @@ def print_peripheral():
11911194

11921195
periph_c_file.write(
11931196
periph_c_template.render(
1197+
year=year,
11941198
mcu_file=mcu_file.name,
11951199
db_release=db_release,
11961200
peripherals_list=(
@@ -1616,6 +1620,7 @@ def print_variant(generic_list, alt_syswkup_list):
16161620

16171621
variant_h_file.write(
16181622
variant_h_template.render(
1623+
year=year,
16191624
pins_number_list=pins_number_list,
16201625
alt_pins_list=alt_pins_list,
16211626
alt_syswkup_list=alt_syswkup_list,
@@ -1636,6 +1641,7 @@ def print_variant(generic_list, alt_syswkup_list):
16361641

16371642
variant_cpp_file.write(
16381643
variant_cpp_template.render(
1644+
year=year,
16391645
generic_list=generic_list,
16401646
pinnames_list=pinnames_list,
16411647
analog_pins_list=analog_pins_list,
@@ -1840,6 +1846,7 @@ def print_general_clock(generic_list):
18401846
generic_clock_template = j2_env.get_template(generic_clock_filename)
18411847
generic_clock_file.write(
18421848
generic_clock_template.render(
1849+
year=year,
18431850
generic_list=generic_list,
18441851
)
18451852
)

CI/update/templates/PeripheralPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020, STMicroelectronics
3+
* Copyright (c) 2020-{{year}}, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

CI/update/templates/generic_clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020, STMicroelectronics
3+
* Copyright (c) 2020-{{year}}, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

CI/update/templates/variant_generic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020, STMicroelectronics
3+
* Copyright (c) 2020-{{year}}, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

CI/update/templates/variant_generic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*******************************************************************************
3-
* Copyright (c) 2020, STMicroelectronics
3+
* Copyright (c) 2020-{{year}}, STMicroelectronics
44
* All rights reserved.
55
*
66
* This software component is licensed by ST under BSD 3-Clause license,

0 commit comments

Comments
 (0)