From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Tedd Ho-Jeong An <tedd.an@linux.intel.com>
Cc: "linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>,
Tedd Ho-Jeong An <tedd.an@intel.com>
Subject: Re: [PATCH] tools: Add SPDX License Identifier
Date: Tue, 29 Sep 2020 14:40:31 -0700 [thread overview]
Message-ID: <CABBYNZ+_SahEOM7V=v7_YM=X8Av5+qeh96J0soZm22XDQ6KpQw@mail.gmail.com> (raw)
In-Reply-To: <20200929212448.64395-1-tedd.an@linux.intel.com>
Hi Tedd,
On Tue, Sep 29, 2020 at 2:27 PM <tedd.an@linux.intel.com> wrote:
>
> From: Tedd Ho-Jeong An <tedd.an@intel.com>
>
> This patch adds SPDX License Identifier and removes the license text.
>
> -------------------------------------
> License COUNT
> -------------------------------------
> GPL-2.0-or-later : 97
> LGPL-2.1-or-later : 38
> GPL-2.0-only : 2
>
> License: GPL-2.0-or-later
> tools/l2cap-tester.c
> tools/hcisecfilter.c
> tools/ciptool.c
> tools/btsnoop.c
> tools/check-selftest.c
> tools/btpclientctl.c
> tools/hci-tester.c
> tools/hcitool.c
> tools/btiotest.c
> tools/oobtest.c
> tools/btinfo.c
> tools/hwdb.c
> tools/hciattach_bcm43xx.c
> tools/mgmt-tester.c
> tools/hex2hcd.c
> tools/hciattach_st.c
> tools/smp-tester.c
> tools/bluetooth-player.c
> tools/hciattach_tialt.c
> tools/gap-tester.c
> tools/bluemoon.c
> tools/bneptest.c
> tools/gatt-service.c
> tools/rctest.c
> tools/rfcomm-tester.c
> tools/hcieventmask.c
> tools/hciattach_ti.c
> tools/seq2bseq.c
> tools/scotest.c
> tools/bcmfw.c
> tools/hciconfig.c
> tools/btattach.c
> tools/l2ping.c
> tools/obexctl.c
> tools/l2test.c
> tools/hciattach_intel.c
> tools/hciattach.h
> tools/create-image.c
> tools/bnep-tester.c
> tools/userchan-tester.c
> tools/rfcomm.c
> tools/btmon-logger.c
> tools/hcidump.c
> tools/rtlfw.c
> tools/hciattach_qualcomm.c
> tools/btproxy.c
> tools/nokfw.c
> tools/hciattach_ath3k.c
> tools/3dsp.c
> tools/bdaddr.c
> tools/sco-tester.c
> tools/hciattach.c
> tools/amptest.c
> tools/btgatt-server.c
> tools/btgatt-client.c
> tools/cltest.c
> tools/ibeacon.c
> tools/mcaptest.c
> tools/hid2hci.c
> tools/btmgmt.c
> tools/advtest.c
> tools/eddystone.c
> tools/avtest.c
> tools/mpris-proxy.c
> tools/avinfo.c
> tools/sdptool.c
> tools/btconfig.c
> tools/update_compids.sh
> tools/parser/parser.h
> tools/parser/obex.c
> tools/parser/amp.c
> tools/parser/sdp.c
> tools/parser/tcpip.c
> tools/parser/sap.c
> tools/parser/cmtp.c
> tools/parser/avctp.c
> tools/parser/lmp.c
> tools/parser/ppp.c
> tools/parser/rfcomm.h
> tools/parser/hci.c
> tools/parser/sdp.h
> tools/parser/parser.c
> tools/parser/rfcomm.c
> tools/parser/avdtp.c
> tools/parser/avrcp.c
> tools/parser/ericsson.c
> tools/parser/hcrp.c
> tools/parser/bpa.c
> tools/parser/hidp.c
> tools/parser/bnep.c
> tools/parser/capi.c
> tools/parser/att.c
> tools/parser/l2cap.c
> tools/parser/smp.c
> tools/parser/csr.c
> tools/parser/l2cap.h
> tools/parse_companies.pl
>
> License: LGPL-2.1-or-later
> tools/test-runner.c
> tools/btpclient.c
> tools/meshctl.c
> tools/mesh-cfgclient.c
> tools/mesh/model.h
> tools/mesh/util.h
> tools/mesh/config-model.h
> tools/mesh/cfgcli.h
> tools/mesh/mesh-db.c
> tools/mesh/mesh-db.h
> tools/mesh/keys.c
> tools/mesh/util.c
> tools/mesh/agent.h
> tools/mesh/remote.c
> tools/mesh/keys.h
> tools/mesh/agent.c
> tools/mesh/cfgcli.c
> tools/mesh/remote.h
> tools/mesh-gatt/prov.c
> tools/mesh-gatt/util.h
> tools/mesh-gatt/prov.h
> tools/mesh-gatt/net.c
> tools/mesh-gatt/util.c
> tools/mesh-gatt/prov-db.h
> tools/mesh-gatt/crypto.c
> tools/mesh-gatt/crypto.h
> tools/mesh-gatt/gatt.c
> tools/mesh-gatt/config-server.c
> tools/mesh-gatt/keys.h
> tools/mesh-gatt/onoff-model.c
> tools/mesh-gatt/net.h
> tools/mesh-gatt/gatt.h
> tools/mesh-gatt/node.c
> tools/mesh-gatt/config-client.c
> tools/mesh-gatt/mesh-net.h
> tools/mesh-gatt/node.h
> tools/mesh-gatt/onoff-model.h
> tools/mesh-gatt/prov-db.c
>
> License: GPL-2.0-only
> tools/obex-server-tool.c
> tools/obex-client-tool.c
> ---
> tools/3dsp.c | 15 +--------------
> tools/advtest.c | 15 +--------------
> tools/amptest.c | 15 +--------------
> tools/avinfo.c | 15 +--------------
> tools/avtest.c | 15 +--------------
> tools/bcmfw.c | 15 +--------------
> tools/bdaddr.c | 15 +--------------
> tools/bluemoon.c | 15 +--------------
> tools/bluetooth-player.c | 15 +--------------
> tools/bnep-tester.c | 15 +--------------
> tools/bneptest.c | 15 +--------------
> tools/btattach.c | 15 +--------------
> tools/btconfig.c | 15 +--------------
> tools/btgatt-client.c | 15 +--------------
> tools/btgatt-server.c | 11 +----------
> tools/btinfo.c | 15 +--------------
> tools/btiotest.c | 15 +--------------
> tools/btmgmt.c | 15 +--------------
> tools/btmon-logger.c | 15 +--------------
> tools/btpclient.c | 15 +--------------
> tools/btpclientctl.c | 15 +--------------
> tools/btproxy.c | 15 +--------------
> tools/btsnoop.c | 15 +--------------
> tools/check-selftest.c | 15 +--------------
> tools/ciptool.c | 15 +--------------
> tools/cltest.c | 15 +--------------
> tools/create-image.c | 15 +--------------
> tools/eddystone.c | 15 +--------------
> tools/gap-tester.c | 15 +--------------
> tools/gatt-service.c | 15 +--------------
> tools/hci-tester.c | 15 +--------------
> tools/hciattach.c | 15 +--------------
> tools/hciattach.h | 15 +--------------
> tools/hciattach_ath3k.c | 15 +--------------
> tools/hciattach_bcm43xx.c | 15 +--------------
> tools/hciattach_intel.c | 15 +--------------
> tools/hciattach_qualcomm.c | 15 +--------------
> tools/hciattach_st.c | 15 +--------------
> tools/hciattach_ti.c | 15 +--------------
> tools/hciattach_tialt.c | 15 +--------------
> tools/hciconfig.c | 15 +--------------
> tools/hcidump.c | 15 +--------------
> tools/hcieventmask.c | 15 +--------------
> tools/hcisecfilter.c | 15 +--------------
> tools/hcitool.c | 15 +--------------
> tools/hex2hcd.c | 15 +--------------
> tools/hid2hci.c | 15 +--------------
> tools/hwdb.c | 15 +--------------
> tools/ibeacon.c | 15 +--------------
> tools/l2cap-tester.c | 15 +--------------
> tools/l2ping.c | 15 +--------------
> tools/l2test.c | 15 +--------------
> tools/mcaptest.c | 15 +--------------
> tools/mesh-cfgclient.c | 11 +----------
> tools/mesh-gatt/config-client.c | 15 +--------------
> tools/mesh-gatt/config-server.c | 15 +--------------
> tools/mesh-gatt/crypto.c | 15 +--------------
> tools/mesh-gatt/crypto.h | 15 +--------------
> tools/mesh-gatt/gatt.c | 15 +--------------
> tools/mesh-gatt/gatt.h | 15 +--------------
> tools/mesh-gatt/keys.h | 15 +--------------
> tools/mesh-gatt/mesh-net.h | 15 +--------------
> tools/mesh-gatt/net.c | 15 +--------------
> tools/mesh-gatt/net.h | 15 +--------------
> tools/mesh-gatt/node.c | 15 +--------------
> tools/mesh-gatt/node.h | 15 +--------------
> tools/mesh-gatt/onoff-model.c | 15 +--------------
> tools/mesh-gatt/onoff-model.h | 15 +--------------
> tools/mesh-gatt/prov-db.c | 15 +--------------
> tools/mesh-gatt/prov-db.h | 15 +--------------
> tools/mesh-gatt/prov.c | 15 +--------------
> tools/mesh-gatt/prov.h | 15 +--------------
> tools/mesh-gatt/util.c | 15 +--------------
> tools/mesh-gatt/util.h | 15 +--------------
> tools/mesh/agent.c | 15 +--------------
> tools/mesh/agent.h | 15 +--------------
> tools/mesh/cfgcli.c | 12 +-----------
> tools/mesh/cfgcli.h | 12 +-----------
> tools/mesh/config-model.h | 15 +--------------
> tools/mesh/keys.c | 12 +-----------
> tools/mesh/keys.h | 12 +-----------
> tools/mesh/mesh-db.c | 11 +----------
> tools/mesh/mesh-db.h | 11 +----------
> tools/mesh/model.h | 12 +-----------
> tools/mesh/remote.c | 11 +----------
> tools/mesh/remote.h | 11 +----------
> tools/mesh/util.c | 11 +----------
> tools/mesh/util.h | 11 +----------
> tools/meshctl.c | 15 +--------------
> tools/mgmt-tester.c | 15 +--------------
> tools/mpris-proxy.c | 15 +--------------
> tools/nokfw.c | 15 +--------------
> tools/obex-client-tool.c | 14 +-------------
> tools/obex-server-tool.c | 14 +-------------
> tools/obexctl.c | 15 +--------------
> tools/oobtest.c | 15 +--------------
> tools/parse_companies.pl | 1 +
> tools/parser/amp.c | 15 +--------------
> tools/parser/att.c | 15 +--------------
> tools/parser/avctp.c | 15 +--------------
> tools/parser/avdtp.c | 15 +--------------
> tools/parser/avrcp.c | 15 +--------------
> tools/parser/bnep.c | 15 +--------------
> tools/parser/bpa.c | 15 +--------------
> tools/parser/capi.c | 15 +--------------
> tools/parser/cmtp.c | 15 +--------------
> tools/parser/csr.c | 15 +--------------
> tools/parser/ericsson.c | 15 +--------------
> tools/parser/hci.c | 15 +--------------
> tools/parser/hcrp.c | 15 +--------------
> tools/parser/hidp.c | 15 +--------------
> tools/parser/l2cap.c | 15 +--------------
> tools/parser/l2cap.h | 15 +--------------
> tools/parser/lmp.c | 15 +--------------
> tools/parser/obex.c | 15 +--------------
> tools/parser/parser.c | 15 +--------------
> tools/parser/parser.h | 15 +--------------
> tools/parser/ppp.c | 15 +--------------
> tools/parser/rfcomm.c | 15 +--------------
> tools/parser/rfcomm.h | 15 +--------------
> tools/parser/sap.c | 15 +--------------
> tools/parser/sdp.c | 15 +--------------
> tools/parser/sdp.h | 15 +--------------
> tools/parser/smp.c | 15 +--------------
> tools/parser/tcpip.c | 15 +--------------
> tools/rctest.c | 15 +--------------
> tools/rfcomm-tester.c | 15 +--------------
> tools/rfcomm.c | 15 +--------------
> tools/rtlfw.c | 15 +--------------
> tools/sco-tester.c | 15 +--------------
> tools/scotest.c | 15 +--------------
> tools/sdptool.c | 15 +--------------
> tools/seq2bseq.c | 15 +--------------
> tools/smp-tester.c | 15 +--------------
> tools/test-runner.c | 15 +--------------
> tools/update_compids.sh | 1 +
> tools/userchan-tester.c | 15 +--------------
> 137 files changed, 137 insertions(+), 1841 deletions(-)
>
> diff --git a/tools/3dsp.c b/tools/3dsp.c
> index 77a70c037..99c1ac82b 100644
> --- a/tools/3dsp.c
> +++ b/tools/3dsp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/advtest.c b/tools/advtest.c
> index 050b570df..de036e783 100644
> --- a/tools/advtest.c
> +++ b/tools/advtest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/amptest.c b/tools/amptest.c
> index 557470781..193cadd25 100644
> --- a/tools/amptest.c
> +++ b/tools/amptest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/avinfo.c b/tools/avinfo.c
> index e45b50918..2f68f53e7 100644
> --- a/tools/avinfo.c
> +++ b/tools/avinfo.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2018 Pali Rohár <pali.rohar@gmail.com>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/avtest.c b/tools/avtest.c
> index 59fb1da8a..ca37b3b46 100644
> --- a/tools/avtest.c
> +++ b/tools/avtest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2009-2010 Nokia Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/bcmfw.c b/tools/bcmfw.c
> index 80d8e71a2..f9d2ef363 100644
> --- a/tools/bcmfw.c
> +++ b/tools/bcmfw.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2013 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/bdaddr.c b/tools/bdaddr.c
> index 952e99077..bc0478d46 100644
> --- a/tools/bdaddr.c
> +++ b/tools/bdaddr.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/bluemoon.c b/tools/bluemoon.c
> index 800541110..8b62b1e7b 100644
> --- a/tools/bluemoon.c
> +++ b/tools/bluemoon.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/bluetooth-player.c b/tools/bluetooth-player.c
> index c1005c9b7..bdfd9aa46 100644
> --- a/tools/bluetooth-player.c
> +++ b/tools/bluetooth-player.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/bnep-tester.c b/tools/bnep-tester.c
> index ec4ad2668..dfeb0ed0b 100644
> --- a/tools/bnep-tester.c
> +++ b/tools/bnep-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2014 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/bneptest.c b/tools/bneptest.c
> index 8bc7596b6..76ec1cfcd 100644
> --- a/tools/bneptest.c
> +++ b/tools/bneptest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2015 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btattach.c b/tools/btattach.c
> index 56315d050..4ce1be78d 100644
> --- a/tools/btattach.c
> +++ b/tools/btattach.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btconfig.c b/tools/btconfig.c
> index c1ef5834a..f75899777 100644
> --- a/tools/btconfig.c
> +++ b/tools/btconfig.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
> index bc762dba1..523d6ec30 100644
> --- a/tools/btgatt-client.c
> +++ b/tools/btgatt-client.c
> @@ -1,23 +1,10 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> * BlueZ - Bluetooth protocol stack for Linux
> *
> * Copyright (C) 2014 Google Inc.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btgatt-server.c b/tools/btgatt-server.c
> index 5b7857b00..aa3448765 100644
> --- a/tools/btgatt-server.c
> +++ b/tools/btgatt-server.c
> @@ -1,19 +1,10 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> * BlueZ - Bluetooth protocol stack for Linux
> *
> * Copyright (C) 2014 Google Inc.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btinfo.c b/tools/btinfo.c
> index 5e609739c..5f3650c78 100644
> --- a/tools/btinfo.c
> +++ b/tools/btinfo.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btiotest.c b/tools/btiotest.c
> index 6c778e3c5..cb8cc3534 100644
> --- a/tools/btiotest.c
> +++ b/tools/btiotest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2009-2010 Nokia Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btmgmt.c b/tools/btmgmt.c
> index 48c9e5887..b0b837d34 100644
> --- a/tools/btmgmt.c
> +++ b/tools/btmgmt.c
> @@ -1,22 +1,9 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> * BlueZ - Bluetooth protocol stack for Linux
> *
> * Copyright (C) 2011 Intel Corporation. All rights reserved.
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btmon-logger.c b/tools/btmon-logger.c
> index 9c23d3c5e..a770ad575 100644
> --- a/tools/btmon-logger.c
> +++ b/tools/btmon-logger.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btpclient.c b/tools/btpclient.c
> index 38e326670..bdfff5df8 100644
> --- a/tools/btpclient.c
> +++ b/tools/btpclient.c
> @@ -1,23 +1,10 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> *
> * Copyright (C) 2011-2017 Intel Corporation. All rights reserved.
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btpclientctl.c b/tools/btpclientctl.c
> index 519d81c0d..6553f2f3a 100644
> --- a/tools/btpclientctl.c
> +++ b/tools/btpclientctl.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btproxy.c b/tools/btproxy.c
> index a98bbb73f..f6143038c 100644
> --- a/tools/btproxy.c
> +++ b/tools/btproxy.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/btsnoop.c b/tools/btsnoop.c
> index 9f304377c..41baf6e3d 100644
> --- a/tools/btsnoop.c
> +++ b/tools/btsnoop.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/check-selftest.c b/tools/check-selftest.c
> index 0de6362da..9a6f22d57 100644
> --- a/tools/check-selftest.c
> +++ b/tools/check-selftest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/ciptool.c b/tools/ciptool.c
> index b898ae8b7..0d6272da9 100644
> --- a/tools/ciptool.c
> +++ b/tools/ciptool.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/cltest.c b/tools/cltest.c
> index 44a17a892..2766fcd23 100644
> --- a/tools/cltest.c
> +++ b/tools/cltest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/create-image.c b/tools/create-image.c
> index ca9d0112c..3f2cf03d8 100644
> --- a/tools/create-image.c
> +++ b/tools/create-image.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/eddystone.c b/tools/eddystone.c
> index 4764c677c..4a593e823 100644
> --- a/tools/eddystone.c
> +++ b/tools/eddystone.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/gap-tester.c b/tools/gap-tester.c
> index 2aa404267..942c37d27 100644
> --- a/tools/gap-tester.c
> +++ b/tools/gap-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/gatt-service.c b/tools/gatt-service.c
> index 374a4c9df..631c4f249 100644
> --- a/tools/gatt-service.c
> +++ b/tools/gatt-service.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2014 Instituto Nokia de Tecnologia - INdT
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hci-tester.c b/tools/hci-tester.c
> index 7873e7aea..0fb74e69c 100644
> --- a/tools/hci-tester.c
> +++ b/tools/hci-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2013 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach.c b/tools/hciattach.c
> index 9a02173bf..276a4e56e 100644
> --- a/tools/hciattach.c
> +++ b/tools/hciattach.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach.h b/tools/hciattach.h
> index 249aab49e..26c0d5424 100644
> --- a/tools/hciattach.h
> +++ b/tools/hciattach.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2003-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #include <termios.h>
> diff --git a/tools/hciattach_ath3k.c b/tools/hciattach_ath3k.c
> index eb2a2aeb6..d119155bb 100644
> --- a/tools/hciattach_ath3k.c
> +++ b/tools/hciattach_ath3k.c
> @@ -1,20 +1,7 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> * Copyright (c) 2009-2010 Atheros Communications Inc.
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach_bcm43xx.c b/tools/hciattach_bcm43xx.c
> index be82cd011..dbb5a3fe3 100644
> --- a/tools/hciattach_bcm43xx.c
> +++ b/tools/hciattach_bcm43xx.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2014 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach_intel.c b/tools/hciattach_intel.c
> index 0f0b60f2b..e243b3d07 100644
> --- a/tools/hciattach_intel.c
> +++ b/tools/hciattach_intel.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach_qualcomm.c b/tools/hciattach_qualcomm.c
> index 29d15a5fe..77b6db170 100644
> --- a/tools/hciattach_qualcomm.c
> +++ b/tools/hciattach_qualcomm.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (c) 2010, Code Aurora Forum. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach_st.c b/tools/hciattach_st.c
> index b34964cb7..4a7186aa6 100644
> --- a/tools/hciattach_st.c
> +++ b/tools/hciattach_st.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2005-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach_ti.c b/tools/hciattach_ti.c
> index 183839443..24efceaa1 100644
> --- a/tools/hciattach_ti.c
> +++ b/tools/hciattach_ti.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2005-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciattach_tialt.c b/tools/hciattach_tialt.c
> index 78498edcf..520b383a1 100644
> --- a/tools/hciattach_tialt.c
> +++ b/tools/hciattach_tialt.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2005-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hciconfig.c b/tools/hciconfig.c
> index a7b0b0a86..491f21613 100644
> --- a/tools/hciconfig.c
> +++ b/tools/hciconfig.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hcidump.c b/tools/hcidump.c
> index 33d429b6c..2b08056ea 100644
> --- a/tools/hcidump.c
> +++ b/tools/hcidump.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hcieventmask.c b/tools/hcieventmask.c
> index b5f818d30..0e7fe5fd7 100644
> --- a/tools/hcieventmask.c
> +++ b/tools/hcieventmask.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hcisecfilter.c b/tools/hcisecfilter.c
> index 18c903334..46cdbf381 100644
> --- a/tools/hcisecfilter.c
> +++ b/tools/hcisecfilter.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hcitool.c b/tools/hcitool.c
> index 9250c41f2..c6a909373 100644
> --- a/tools/hcitool.c
> +++ b/tools/hcitool.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hex2hcd.c b/tools/hex2hcd.c
> index 1148bbb46..674d62744 100644
> --- a/tools/hex2hcd.c
> +++ b/tools/hex2hcd.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2013 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hid2hci.c b/tools/hid2hci.c
> index 1e0f7aa2a..80aee9ed6 100644
> --- a/tools/hid2hci.c
> +++ b/tools/hid2hci.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> * hid2hci : switch the radio on devices that support
> * it from HID to HCI and back
> @@ -6,20 +7,6 @@
> * Copyright (C) 2008-2009 Mario Limonciello <mario_limonciello@dell.com>
> * Copyright (C) 2009-2011 Kay Sievers <kay.sievers@vrfy.org>
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/hwdb.c b/tools/hwdb.c
> index 8a42dce39..4b37c753d 100644
> --- a/tools/hwdb.c
> +++ b/tools/hwdb.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/ibeacon.c b/tools/ibeacon.c
> index 40078d5ed..8dd1f4616 100644
> --- a/tools/ibeacon.c
> +++ b/tools/ibeacon.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/l2cap-tester.c b/tools/l2cap-tester.c
> index 1ef4e9213..42d2b5615 100644
> --- a/tools/l2cap-tester.c
> +++ b/tools/l2cap-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2013 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/l2ping.c b/tools/l2ping.c
> index db120a550..c44ce872f 100644
> --- a/tools/l2ping.c
> +++ b/tools/l2ping.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/l2test.c b/tools/l2test.c
> index 0d846ed93..6e07f7b84 100644
> --- a/tools/l2test.c
> +++ b/tools/l2test.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -7,20 +8,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mcaptest.c b/tools/mcaptest.c
> index 82663d8de..dcef0b908 100644
> --- a/tools/mcaptest.c
> +++ b/tools/mcaptest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2014 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c
> index 3987e3179..28465a679 100644
> --- a/tools/mesh-cfgclient.c
> +++ b/tools/mesh-cfgclient.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/config-client.c b/tools/mesh-gatt/config-client.c
> index bfc788258..3ec42d94a 100644
> --- a/tools/mesh-gatt/config-client.c
> +++ b/tools/mesh-gatt/config-client.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/config-server.c b/tools/mesh-gatt/config-server.c
> index 9e9b93959..a53f4c200 100644
> --- a/tools/mesh-gatt/config-server.c
> +++ b/tools/mesh-gatt/config-server.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/crypto.c b/tools/mesh-gatt/crypto.c
> index 493b502ca..c65974bb0 100644
> --- a/tools/mesh-gatt/crypto.c
> +++ b/tools/mesh-gatt/crypto.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/crypto.h b/tools/mesh-gatt/crypto.h
> index e8f16f35d..f1cb7af26 100644
> --- a/tools/mesh-gatt/crypto.h
> +++ b/tools/mesh-gatt/crypto.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #include <stdbool.h>
> diff --git a/tools/mesh-gatt/gatt.c b/tools/mesh-gatt/gatt.c
> index 1bd9868df..b99234f91 100644
> --- a/tools/mesh-gatt/gatt.c
> +++ b/tools/mesh-gatt/gatt.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/gatt.h b/tools/mesh-gatt/gatt.h
> index 2878587b1..5af02f408 100644
> --- a/tools/mesh-gatt/gatt.h
> +++ b/tools/mesh-gatt/gatt.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #include "gdbus/gdbus.h"
> diff --git a/tools/mesh-gatt/keys.h b/tools/mesh-gatt/keys.h
> index 477ff1309..8921909e2 100644
> --- a/tools/mesh-gatt/keys.h
> +++ b/tools/mesh-gatt/keys.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #define KR_PHASE_NONE 0x00
> diff --git a/tools/mesh-gatt/mesh-net.h b/tools/mesh-gatt/mesh-net.h
> index 76a98224c..29c8de06c 100644
> --- a/tools/mesh-gatt/mesh-net.h
> +++ b/tools/mesh-gatt/mesh-net.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> /* Proxy PDU Types */
> diff --git a/tools/mesh-gatt/net.c b/tools/mesh-gatt/net.c
> index d74e1f5a5..2fdd0d4be 100644
> --- a/tools/mesh-gatt/net.c
> +++ b/tools/mesh-gatt/net.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/net.h b/tools/mesh-gatt/net.h
> index b388d616c..980e4bb3d 100644
> --- a/tools/mesh-gatt/net.h
> +++ b/tools/mesh-gatt/net.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #include "gdbus/gdbus.h"
> diff --git a/tools/mesh-gatt/node.c b/tools/mesh-gatt/node.c
> index 6afa6d6ab..6afda3387 100644
> --- a/tools/mesh-gatt/node.c
> +++ b/tools/mesh-gatt/node.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/node.h b/tools/mesh-gatt/node.h
> index a5b5c7520..073bd8133 100644
> --- a/tools/mesh-gatt/node.h
> +++ b/tools/mesh-gatt/node.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> struct mesh_node;
> diff --git a/tools/mesh-gatt/onoff-model.c b/tools/mesh-gatt/onoff-model.c
> index be519c969..9dfedd85a 100644
> --- a/tools/mesh-gatt/onoff-model.c
> +++ b/tools/mesh-gatt/onoff-model.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/onoff-model.h b/tools/mesh-gatt/onoff-model.h
> index 31599056d..a5e01ed40 100644
> --- a/tools/mesh-gatt/onoff-model.h
> +++ b/tools/mesh-gatt/onoff-model.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #define GENERIC_ONOFF_SERVER_MODEL_ID 0x1000
> diff --git a/tools/mesh-gatt/prov-db.c b/tools/mesh-gatt/prov-db.c
> index 44096e1e1..2fb08f799 100644
> --- a/tools/mesh-gatt/prov-db.c
> +++ b/tools/mesh-gatt/prov-db.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/prov-db.h b/tools/mesh-gatt/prov-db.h
> index b8584a8c3..288211220 100644
> --- a/tools/mesh-gatt/prov-db.h
> +++ b/tools/mesh-gatt/prov-db.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> bool prov_db_show(const char *filename);
> diff --git a/tools/mesh-gatt/prov.c b/tools/mesh-gatt/prov.c
> index 598c94ebf..1f3f62dfd 100644
> --- a/tools/mesh-gatt/prov.c
> +++ b/tools/mesh-gatt/prov.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
> #ifdef HAVE_CONFIG_H
> #include <config.h>
> diff --git a/tools/mesh-gatt/prov.h b/tools/mesh-gatt/prov.h
> index 2587df8fb..83156dd71 100644
> --- a/tools/mesh-gatt/prov.h
> +++ b/tools/mesh-gatt/prov.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> struct prov;
> diff --git a/tools/mesh-gatt/util.c b/tools/mesh-gatt/util.c
> index 564665e5d..e845c4112 100644
> --- a/tools/mesh-gatt/util.c
> +++ b/tools/mesh-gatt/util.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh-gatt/util.h b/tools/mesh-gatt/util.h
> index dba2c480b..51698a8ed 100644
> --- a/tools/mesh-gatt/util.h
> +++ b/tools/mesh-gatt/util.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #include <stdbool.h>
> diff --git a/tools/mesh/agent.c b/tools/mesh/agent.c
> index 0258a3803..ee0fade24 100644
> --- a/tools/mesh/agent.c
> +++ b/tools/mesh/agent.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh/agent.h b/tools/mesh/agent.h
> index 7f95798f1..aa1fbb0eb 100644
> --- a/tools/mesh/agent.h
> +++ b/tools/mesh/agent.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #define MAX_HEXADECIMAL_OOB_LEN 128
> diff --git a/tools/mesh/cfgcli.c b/tools/mesh/cfgcli.c
> index 292bb7e19..1c20db85a 100644
> --- a/tools/mesh/cfgcli.c
> +++ b/tools/mesh/cfgcli.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,17 +6,6 @@
> * Copyright (C) 2019-2020 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh/cfgcli.h b/tools/mesh/cfgcli.h
> index 89a67f5de..7281caa46 100644
> --- a/tools/mesh/cfgcli.h
> +++ b/tools/mesh/cfgcli.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,17 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - *
> */
>
> struct mesh_group {
> diff --git a/tools/mesh/config-model.h b/tools/mesh/config-model.h
> index f08d3b890..584c5934a 100644
> --- a/tools/mesh/config-model.h
> +++ b/tools/mesh/config-model.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017, 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #define CONFIG_SERVER_MODEL_ID 0x0000
> diff --git a/tools/mesh/keys.c b/tools/mesh/keys.c
> index c4070cb75..c08348bff 100644
> --- a/tools/mesh/keys.c
> +++ b/tools/mesh/keys.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,17 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh/keys.h b/tools/mesh/keys.h
> index fa51044ef..f59705601 100644
> --- a/tools/mesh/keys.h
> +++ b/tools/mesh/keys.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,17 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - *
> */
>
> void keys_add_net_key(uint16_t net_idx);
> diff --git a/tools/mesh/mesh-db.c b/tools/mesh/mesh-db.c
> index 7f2d5b358..d86913006 100644
> --- a/tools/mesh/mesh-db.c
> +++ b/tools/mesh/mesh-db.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh/mesh-db.h b/tools/mesh/mesh-db.h
> index 49af33e87..d1d734bf3 100644
> --- a/tools/mesh/mesh-db.h
> +++ b/tools/mesh/mesh-db.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> #include "mesh/mesh-config.h"
> diff --git a/tools/mesh/model.h b/tools/mesh/model.h
> index 35bb80efc..7359ea7df 100644
> --- a/tools/mesh/model.h
> +++ b/tools/mesh/model.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,17 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - *
> */
>
> #define VENDOR_ID_INVALID 0xFFFF
> diff --git a/tools/mesh/remote.c b/tools/mesh/remote.c
> index f68ef4b41..9b265bee4 100644
> --- a/tools/mesh/remote.c
> +++ b/tools/mesh/remote.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2019-2020 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh/remote.h b/tools/mesh/remote.h
> index 482817c5a..bb4fb1191 100644
> --- a/tools/mesh/remote.h
> +++ b/tools/mesh/remote.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> bool remote_add_node(const uint8_t uuid[16], uint16_t unicast,
> diff --git a/tools/mesh/util.c b/tools/mesh/util.c
> index 41a629177..29641439f 100644
> --- a/tools/mesh/util.c
> +++ b/tools/mesh/util.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2017, 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mesh/util.h b/tools/mesh/util.h
> index 3b6a2f521..f075ffc6f 100644
> --- a/tools/mesh/util.h
> +++ b/tools/mesh/util.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: LGPL-2.1-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,16 +6,6 @@
> * Copyright (C) 2017, 2019 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> */
>
> #include <stdbool.h>
> diff --git a/tools/meshctl.c b/tools/meshctl.c
> index 57998fded..9d7df2ccd 100644
> --- a/tools/meshctl.c
> +++ b/tools/meshctl.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2017 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mgmt-tester.c b/tools/mgmt-tester.c
> index 337a05b45..3b722207f 100644
> --- a/tools/mgmt-tester.c
> +++ b/tools/mgmt-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/mpris-proxy.c b/tools/mpris-proxy.c
> index 617f80586..91a25501d 100644
> --- a/tools/mpris-proxy.c
> +++ b/tools/mpris-proxy.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/nokfw.c b/tools/nokfw.c
> index 6209642b5..629c15794 100644
> --- a/tools/nokfw.c
> +++ b/tools/nokfw.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2013 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c
> index 3d61c00d7..ab9332896 100644
> --- a/tools/obex-client-tool.c
> +++ b/tools/obex-client-tool.c
> @@ -1,22 +1,10 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> /*
> *
> * OBEX library with GLib integration
> *
> * Copyright (C) 2011 Intel Corporation. All rights reserved.
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/obex-server-tool.c b/tools/obex-server-tool.c
> index b20dfaa6b..ec280cc7b 100644
> --- a/tools/obex-server-tool.c
> +++ b/tools/obex-server-tool.c
> @@ -1,22 +1,10 @@
> +// SPDX-License-Identifier: GPL-2.0-only
> /*
> *
> * OBEX library with GLib integration
> *
> * Copyright (C) 2011 Intel Corporation. All rights reserved.
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License version 2 as
> - * published by the Free Software Foundation.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/obexctl.c b/tools/obexctl.c
> index 0709f692c..e671d253b 100644
> --- a/tools/obexctl.c
> +++ b/tools/obexctl.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2013 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/oobtest.c b/tools/oobtest.c
> index c228b65b1..c095036fe 100644
> --- a/tools/oobtest.c
> +++ b/tools/oobtest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parse_companies.pl b/tools/parse_companies.pl
> index d5b281505..9006492b4 100755
> --- a/tools/parse_companies.pl
> +++ b/tools/parse_companies.pl
> @@ -1,4 +1,5 @@
> #!/usr/bin/perl
> +# SPDX-License-Identifier: GPL-2.0-or-later
>
> # parse companies from
> # https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers
> diff --git a/tools/parser/amp.c b/tools/parser/amp.c
> index 7c85fb96c..797531470 100644
> --- a/tools/parser/amp.c
> +++ b/tools/parser/amp.c
> @@ -1,23 +1,10 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> *
> * Copyright (C) 2012 Intel Corporation.
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/att.c b/tools/parser/att.c
> index 688ed48a2..bef583a1a 100644
> --- a/tools/parser/att.c
> +++ b/tools/parser/att.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2011 André Dieb Martins <andre.dieb@gmail.com>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/avctp.c b/tools/parser/avctp.c
> index 5038443a4..ef2067b5d 100644
> --- a/tools/parser/avctp.c
> +++ b/tools/parser/avctp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/avdtp.c b/tools/parser/avdtp.c
> index 18569c895..bb7bbadab 100644
> --- a/tools/parser/avdtp.c
> +++ b/tools/parser/avdtp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/avrcp.c b/tools/parser/avrcp.c
> index dfc6d0580..e73a6317e 100644
> --- a/tools/parser/avrcp.c
> +++ b/tools/parser/avrcp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2011 Intel Corporation.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/bnep.c b/tools/parser/bnep.c
> index c3bbae74f..ee1c9ec80 100644
> --- a/tools/parser/bnep.c
> +++ b/tools/parser/bnep.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/bpa.c b/tools/parser/bpa.c
> index aac010b39..ab24cf645 100644
> --- a/tools/parser/bpa.c
> +++ b/tools/parser/bpa.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/capi.c b/tools/parser/capi.c
> index ef6ac0664..2a2445e4a 100644
> --- a/tools/parser/capi.c
> +++ b/tools/parser/capi.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/cmtp.c b/tools/parser/cmtp.c
> index e7ac4b55c..09a30f8d2 100644
> --- a/tools/parser/cmtp.c
> +++ b/tools/parser/cmtp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2002-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/csr.c b/tools/parser/csr.c
> index 718baab32..c112e138b 100644
> --- a/tools/parser/csr.c
> +++ b/tools/parser/csr.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/ericsson.c b/tools/parser/ericsson.c
> index d148c93f7..09b7cec68 100644
> --- a/tools/parser/ericsson.c
> +++ b/tools/parser/ericsson.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/hci.c b/tools/parser/hci.c
> index 41f6fe087..d395e37f5 100644
> --- a/tools/parser/hci.c
> +++ b/tools/parser/hci.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/hcrp.c b/tools/parser/hcrp.c
> index 7c46cb6ea..7a5a19237 100644
> --- a/tools/parser/hcrp.c
> +++ b/tools/parser/hcrp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/hidp.c b/tools/parser/hidp.c
> index 703049a7a..696b1eb87 100644
> --- a/tools/parser/hidp.c
> +++ b/tools/parser/hidp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/l2cap.c b/tools/parser/l2cap.c
> index e43761cf7..562093ad0 100644
> --- a/tools/parser/l2cap.c
> +++ b/tools/parser/l2cap.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/l2cap.h b/tools/parser/l2cap.h
> index 788aef006..43da7c6b4 100644
> --- a/tools/parser/l2cap.h
> +++ b/tools/parser/l2cap.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifndef __L2CAP_H
> diff --git a/tools/parser/lmp.c b/tools/parser/lmp.c
> index a7879fb37..e99902b0e 100644
> --- a/tools/parser/lmp.c
> +++ b/tools/parser/lmp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/obex.c b/tools/parser/obex.c
> index 51719aa9c..157ea2cce 100644
> --- a/tools/parser/obex.c
> +++ b/tools/parser/obex.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/parser.c b/tools/parser/parser.c
> index 61c5b1cda..5ed6a42d0 100644
> --- a/tools/parser/parser.c
> +++ b/tools/parser/parser.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/parser.h b/tools/parser/parser.h
> index b7e1d7568..c5d9cf9a6 100644
> --- a/tools/parser/parser.h
> +++ b/tools/parser/parser.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifndef __PARSER_H
> diff --git a/tools/parser/ppp.c b/tools/parser/ppp.c
> index 55aaa60fe..43075575a 100644
> --- a/tools/parser/ppp.c
> +++ b/tools/parser/ppp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2004-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/rfcomm.c b/tools/parser/rfcomm.c
> index d800b7e6d..6f2952021 100644
> --- a/tools/parser/rfcomm.c
> +++ b/tools/parser/rfcomm.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/rfcomm.h b/tools/parser/rfcomm.h
> index a9faa0bf8..c3a1dfb22 100644
> --- a/tools/parser/rfcomm.h
> +++ b/tools/parser/rfcomm.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifndef __RFCOMM_H
> diff --git a/tools/parser/sap.c b/tools/parser/sap.c
> index 0a875fc7c..0b91bc08d 100644
> --- a/tools/parser/sap.c
> +++ b/tools/parser/sap.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012 Tieto Poland
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/sdp.c b/tools/parser/sdp.c
> index 7477037b8..90af47e5b 100644
> --- a/tools/parser/sdp.c
> +++ b/tools/parser/sdp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/sdp.h b/tools/parser/sdp.h
> index ed55a23ea..1b5b3bb71 100644
> --- a/tools/parser/sdp.h
> +++ b/tools/parser/sdp.h
> @@ -1,3 +1,4 @@
> +/* SPDX-License-Identifier: GPL-2.0-or-later */
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifndef __SDP_H
> diff --git a/tools/parser/smp.c b/tools/parser/smp.c
> index 817e08e85..a372e5e5f 100644
> --- a/tools/parser/smp.c
> +++ b/tools/parser/smp.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2011 Intel Corporation.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/parser/tcpip.c b/tools/parser/tcpip.c
> index 8ccfb007c..91de10458 100644
> --- a/tools/parser/tcpip.c
> +++ b/tools/parser/tcpip.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2003-2011 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/rctest.c b/tools/rctest.c
> index bc8ed875d..494359a88 100644
> --- a/tools/rctest.c
> +++ b/tools/rctest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/rfcomm-tester.c b/tools/rfcomm-tester.c
> index 2d3be27d8..dcf19ecd2 100644
> --- a/tools/rfcomm-tester.c
> +++ b/tools/rfcomm-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2014 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/rfcomm.c b/tools/rfcomm.c
> index 177d8f828..8e1db8eba 100644
> --- a/tools/rfcomm.c
> +++ b/tools/rfcomm.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/rtlfw.c b/tools/rtlfw.c
> index 375f07592..7ff2dabf9 100644
> --- a/tools/rtlfw.c
> +++ b/tools/rtlfw.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2013 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/sco-tester.c b/tools/sco-tester.c
> index 651fbe01d..471f89418 100644
> --- a/tools/sco-tester.c
> +++ b/tools/sco-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2013 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/scotest.c b/tools/scotest.c
> index 08bc8a8d2..e6a88770f 100644
> --- a/tools/scotest.c
> +++ b/tools/scotest.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -6,20 +7,6 @@
> * Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/sdptool.c b/tools/sdptool.c
> index 3c5d840d9..686d28362 100644
> --- a/tools/sdptool.c
> +++ b/tools/sdptool.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -9,20 +10,6 @@
> * Copyright (C) 2002-2003 Jean Tourrilhes <jt@hpl.hp.com>
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/seq2bseq.c b/tools/seq2bseq.c
> index 9268ecd06..1806fd5a6 100644
> --- a/tools/seq2bseq.c
> +++ b/tools/seq2bseq.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2013 Intel Corporation
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/smp-tester.c b/tools/smp-tester.c
> index c32519e0c..f64c1ab63 100644
> --- a/tools/smp-tester.c
> +++ b/tools/smp-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2013 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/test-runner.c b/tools/test-runner.c
> index bd3c73001..6b7c33734 100644
> --- a/tools/test-runner.c
> +++ b/tools/test-runner.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: LGPL-2.1-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
> *
> *
> - * This library is free software; you can redistribute it and/or
> - * modify it under the terms of the GNU Lesser General Public
> - * License as published by the Free Software Foundation; either
> - * version 2.1 of the License, or (at your option) any later version.
> - *
> - * This library is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> - * Lesser General Public License for more details.
> - *
> - * You should have received a copy of the GNU Lesser General Public
> - * License along with this library; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> diff --git a/tools/update_compids.sh b/tools/update_compids.sh
> index be39f8858..606d6cf9c 100755
> --- a/tools/update_compids.sh
> +++ b/tools/update_compids.sh
> @@ -1,4 +1,5 @@
> #!/bin/bash
> +# SPDX-License-Identifier: GPL-2.0-or-later
> # Download the list of company IDs from bluetooth.org and generate a diff which
> # can be applied to source tree to update bt_compidtostr(). Usage:
> #
> diff --git a/tools/userchan-tester.c b/tools/userchan-tester.c
> index 8fb088827..c17644fb8 100644
> --- a/tools/userchan-tester.c
> +++ b/tools/userchan-tester.c
> @@ -1,3 +1,4 @@
> +// SPDX-License-Identifier: GPL-2.0-or-later
> /*
> *
> * BlueZ - Bluetooth protocol stack for Linux
> @@ -5,20 +6,6 @@
> * Copyright (C) 2014-2015 Intel Corporation. All rights reserved.
> *
> *
> - * This program is free software; you can redistribute it and/or modify
> - * it under the terms of the GNU General Public License as published by
> - * the Free Software Foundation; either version 2 of the License, or
> - * (at your option) any later version.
> - *
> - * This program is distributed in the hope that it will be useful,
> - * but WITHOUT ANY WARRANTY; without even the implied warranty of
> - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> - * GNU General Public License for more details.
> - *
> - * You should have received a copy of the GNU General Public License
> - * along with this program; if not, write to the Free Software
> - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> - *
> */
>
> #ifdef HAVE_CONFIG_H
> --
> 2.25.4
>
Applied, thanks.
--
Luiz Augusto von Dentz
next prev parent reply other threads:[~2020-09-29 21:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-29 21:24 [PATCH] tools: Add SPDX License Identifier tedd.an
2020-09-29 21:40 ` Luiz Augusto von Dentz [this message]
2020-09-29 21:52 ` bluez.test.bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABBYNZ+_SahEOM7V=v7_YM=X8Av5+qeh96J0soZm22XDQ6KpQw@mail.gmail.com' \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=tedd.an@intel.com \
--cc=tedd.an@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).