Skip to content

Commit

Permalink
modbus: migrate to SPDX identifier
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jerpelea authored and xiaoxiang781216 committed Dec 21, 2024
1 parent 7220a3b commit a53ac35
Show file tree
Hide file tree
Showing 40 changed files with 82 additions and 117 deletions.
20 changes: 1 addition & 19 deletions modbus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions modbus/Make.defs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions modbus/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions modbus/ascii/Make.defs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions modbus/ascii/mbascii.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/ascii/mbascii.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/ascii/mbascii.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/ascii/mbascii.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
2 changes: 2 additions & 0 deletions modbus/functions/Make.defs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfunccoils.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfunccoils.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfunccoils_m.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfunccoils_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncdiag.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncdiag.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncdisc.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncdisc.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncdisc_m.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncdisc_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncholding.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncholding.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncholding_m.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncholding_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncinput.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncinput.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncinput_m.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/functions/mbfuncinput_m.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (C) 2013 Armink <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbfuncother.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbfuncother.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/functions/mbutils.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/functions/mbutils.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/mb.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/mb.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
4 changes: 2 additions & 2 deletions modbus/mb_m.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/****************************************************************************
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
*
* Copyright (C) 2013 Armink <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2013 Armink <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
2 changes: 2 additions & 0 deletions modbus/nuttx/Make.defs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions modbus/nuttx/port.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/port.h
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/nuttx/portevent.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portevent.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
7 changes: 3 additions & 4 deletions modbus/nuttx/portevent_m.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/****************************************************************************
* apps/modbus/nuttx/portevent_m.c
*
* FreeModbus Library: NuttX Modbus Master Port
* Original work (c) 2006 Christian Walter <[email protected]>
* Modified work (c) 2016 Vytautas Lukenskas <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
* SPDX-FileCopyrightText: 2016 Vytautas Lukenskas <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/nuttx/portother.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portother.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/nuttx/portother_m.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portother_m.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/nuttx/portserial.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/portserial.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
7 changes: 3 additions & 4 deletions modbus/nuttx/portserial_m.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/****************************************************************************
* apps/modbus/nuttx/portserial_m.c
*
* FreeModbus Library: NuttX Modbus Master Port
* Original work (c) 2006 Christian Walter <[email protected]>
* Modified work (c) 2016 Vytautas Lukenskas <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
* SPDX-FileCopyrightText: 2016 Vytautas Lukenskas <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/nuttx/porttimer.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/nuttx/porttimer.c
*
* FreeModbus Library: NuttX Port
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
7 changes: 3 additions & 4 deletions modbus/nuttx/porttimer_m.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/****************************************************************************
* apps/modbus/nuttx/porttimer_m.c
*
* FreeModbus Library: NuttX Modbus Master Port
* Original work (c) 2006 Christian Walter <[email protected]>
* Modified work (c) 2016 Vytautas Lukenskas <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
* SPDX-FileCopyrightText: 2016 Vytautas Lukenskas <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
2 changes: 2 additions & 0 deletions modbus/rtu/Make.defs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 2 additions & 3 deletions modbus/rtu/mbcrc.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modbus/rtu/mbcrc.c
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
5 changes: 2 additions & 3 deletions modbus/rtu/mbcrc.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/****************************************************************************
* apps/modutils/rtu/mbcrc.h
*
* FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU.
* Copyright (c) 2006 Christian Walter <[email protected]>
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: 2006 Christian Walter <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
Expand Down
Loading

0 comments on commit a53ac35

Please sign in to comment.