[genpinmap] use current year instead of constant one

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
Frederic.Pillon 2018-03-20 09:32:08 +01:00
parent 0042fa24ba
commit 3debe0419a

View file

@ -1,6 +1,7 @@
import sys import sys
import re import re
import os import os
import datetime
from xml.dom import minidom from xml.dom import minidom
from xml.dom.minidom import parse, Node from xml.dom.minidom import parse, Node
io_list = [] #'PIN','name' io_list = [] #'PIN','name'
@ -188,7 +189,7 @@ def store_qspi (pin, name, signal):
def print_header(): def print_header():
s = ("""/* s = ("""/*
******************************************************************************* *******************************************************************************
* Copyright (c) 2016, STMicroelectronics * Copyright (c) %i, STMicroelectronics
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
@ -223,7 +224,7 @@ def print_header():
// If you change them, you will have to know what you do // If you change them, you will have to know what you do
// ===== // =====
""" % re.sub('\.c$', '', out_filename)) """ % (datetime.datetime.now().year, re.sub('\.c$', '', out_filename)))
out_file.write( s) out_file.write( s)
def print_all_lists(): def print_all_lists():