modbus: migrate to SPDX identifier

Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2024-12-20 05:58:52 +01:00 committed by Xiang Xiao
parent 5d59828c1f
commit 1e4f1fd303
40 changed files with 82 additions and 117 deletions

View file

@ -1,25 +1,7 @@
# ##############################################################################
# apps/modbus/CMakeLists.txt
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
# file to you under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
#
# ##############################################################################
# ##############################################################################
# apps/modbus/CMakeLists.txt
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/Makefile
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/ascii/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/ascii/mbascii.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/ascii/mbascii.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/functions/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfunccoils.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfunccoils_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncdiag.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncdisc.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncdisc_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncholding.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncholding_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncinput.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncinput_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncother.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbutils.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/mb.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,8 +1,8 @@
/****************************************************************************
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
*
* Copyright (C) 2013 Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/nuttx/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/port.h
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portevent.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,10 +1,9 @@
/****************************************************************************
* apps/modbus/nuttx/portevent_m.c
*
* FreeModbus Library: NuttX Modbus Master Port
* Original work (c) 2006 Christian Walter <wolti@sil.at>
* Modified work (c) 2016 Vytautas Lukenskas <lukevyta@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
* SPDX-FileCopyrightText: 2016 Vytautas Lukenskas <lukevyta@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portother.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portother_m.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portserial.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,10 +1,9 @@
/****************************************************************************
* apps/modbus/nuttx/portserial_m.c
*
* FreeModbus Library: NuttX Modbus Master Port
* Original work (c) 2006 Christian Walter <wolti@sil.at>
* Modified work (c) 2016 Vytautas Lukenskas <lukevyta@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
* SPDX-FileCopyrightText: 2016 Vytautas Lukenskas <lukevyta@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/porttimer.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,10 +1,9 @@
/****************************************************************************
* apps/modbus/nuttx/porttimer_m.c
*
* FreeModbus Library: NuttX Modbus Master Port
* Original work (c) 2006 Christian Walter <wolti@sil.at>
* Modified work (c) 2016 Vytautas Lukenskas <lukevyta@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
* SPDX-FileCopyrightText: 2016 Vytautas Lukenskas <lukevyta@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/rtu/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/rtu/mbcrc.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modutils/rtu/mbcrc.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/rtu/mbrtu.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/rtu/mbrtu.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/rtu/mbrtu_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2013 China Beijing Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 China Beijing Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/rtu/mbrtu_m.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2013 China Beijing Armink <armink.ztl@gmail.com>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 China Beijing Armink <armink.ztl@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,6 +1,8 @@
############################################################################
# apps/modbus/tcp/Make.defs
#
# SPDX-License-Identifier: Apache-2.0
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/tcp/mbtcp.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions

View file

@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/tcp/mbtcp.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <wolti@sil.at>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions