aboutsummaryrefslogtreecommitdiff
path: root/lib/libavb
diff options
context:
space:
mode:
authorTom Rini2018-06-19 11:21:44 -0400
committerTom Rini2018-06-19 11:55:05 -0400
commit897a1d947e7e50cf03113dcbe505ffb63dce45a9 (patch)
treef1aeb5a2e73d9110f76f6c4199d7664718c6230a /lib/libavb
parente3f7c4f851c0410a86d9455b3c31b0290e7401f9 (diff)
libavb: Update SPDX tag style
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'lib/libavb')
-rw-r--r--lib/libavb/Makefile4
-rw-r--r--lib/libavb/avb_chain_partition_descriptor.c3
-rw-r--r--lib/libavb/avb_chain_partition_descriptor.h3
-rw-r--r--lib/libavb/avb_cmdline.c3
-rw-r--r--lib/libavb/avb_cmdline.h3
-rw-r--r--lib/libavb/avb_crypto.c3
-rw-r--r--lib/libavb/avb_crypto.h3
-rw-r--r--lib/libavb/avb_descriptor.c3
-rw-r--r--lib/libavb/avb_descriptor.h3
-rw-r--r--lib/libavb/avb_footer.c3
-rw-r--r--lib/libavb/avb_footer.h3
-rw-r--r--lib/libavb/avb_hash_descriptor.c3
-rw-r--r--lib/libavb/avb_hash_descriptor.h3
-rw-r--r--lib/libavb/avb_hashtree_descriptor.c3
-rw-r--r--lib/libavb/avb_hashtree_descriptor.h3
-rw-r--r--lib/libavb/avb_kernel_cmdline_descriptor.c3
-rw-r--r--lib/libavb/avb_kernel_cmdline_descriptor.h3
-rw-r--r--lib/libavb/avb_ops.h3
-rw-r--r--lib/libavb/avb_property_descriptor.c3
-rw-r--r--lib/libavb/avb_property_descriptor.h3
-rw-r--r--lib/libavb/avb_rsa.c3
-rw-r--r--lib/libavb/avb_rsa.h3
-rw-r--r--lib/libavb/avb_sha.h3
-rw-r--r--lib/libavb/avb_sha256.c3
-rw-r--r--lib/libavb/avb_sha512.c3
-rw-r--r--lib/libavb/avb_slot_verify.c3
-rw-r--r--lib/libavb/avb_slot_verify.h3
-rw-r--r--lib/libavb/avb_sysdeps.h3
-rw-r--r--lib/libavb/avb_sysdeps_posix.c3
-rw-r--r--lib/libavb/avb_util.c3
-rw-r--r--lib/libavb/avb_util.h3
-rw-r--r--lib/libavb/avb_vbmeta_image.c3
-rw-r--r--lib/libavb/avb_vbmeta_image.h3
-rw-r--r--lib/libavb/avb_version.c3
-rw-r--r--lib/libavb/avb_version.h3
-rw-r--r--lib/libavb/libavb.h3
36 files changed, 36 insertions, 73 deletions
diff --git a/lib/libavb/Makefile b/lib/libavb/Makefile
index c8ff080dbca..b983fe768e5 100644
--- a/lib/libavb/Makefile
+++ b/lib/libavb/Makefile
@@ -1,8 +1,6 @@
+# SPDX-License-Identifier: GPL-2.0+
#
# (C) Copyright 2017 Linaro Limited
-#
-# SPDX-License-Identifier: GPL-2.0+
-#
obj-$(CONFIG_LIBAVB) += avb_chain_partition_descriptor.o avb_cmdline.o
obj-$(CONFIG_LIBAVB) += avb_crypto.o avb_footer.o avb_hashtree_descriptor.o
diff --git a/lib/libavb/avb_chain_partition_descriptor.c b/lib/libavb/avb_chain_partition_descriptor.c
index e6e8f71fb85..e2993063103 100644
--- a/lib/libavb/avb_chain_partition_descriptor.c
+++ b/lib/libavb/avb_chain_partition_descriptor.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_chain_partition_descriptor.h"
diff --git a/lib/libavb/avb_chain_partition_descriptor.h b/lib/libavb/avb_chain_partition_descriptor.h
index a841828b6db..80e2271782e 100644
--- a/lib/libavb/avb_chain_partition_descriptor.h
+++ b/lib/libavb/avb_chain_partition_descriptor.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_cmdline.c b/lib/libavb/avb_cmdline.c
index 1481b5c36bc..91a6615c740 100644
--- a/lib/libavb/avb_cmdline.c
+++ b/lib/libavb/avb_cmdline.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_cmdline.h"
diff --git a/lib/libavb/avb_cmdline.h b/lib/libavb/avb_cmdline.h
index e94f0d8309f..9af3a999942 100644
--- a/lib/libavb/avb_cmdline.h
+++ b/lib/libavb/avb_cmdline.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#ifdef AVB_INSIDE_LIBAVB_H
diff --git a/lib/libavb/avb_crypto.c b/lib/libavb/avb_crypto.c
index af9d77045e7..f1836d5fc31 100644
--- a/lib/libavb/avb_crypto.c
+++ b/lib/libavb/avb_crypto.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_crypto.h"
diff --git a/lib/libavb/avb_crypto.h b/lib/libavb/avb_crypto.h
index cede08f1bc6..d8f649b137c 100644
--- a/lib/libavb/avb_crypto.h
+++ b/lib/libavb/avb_crypto.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_descriptor.c b/lib/libavb/avb_descriptor.c
index 6422293293c..fb0b305f2cc 100644
--- a/lib/libavb/avb_descriptor.c
+++ b/lib/libavb/avb_descriptor.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_descriptor.h"
diff --git a/lib/libavb/avb_descriptor.h b/lib/libavb/avb_descriptor.h
index 13a3efde279..d4f42ac964a 100644
--- a/lib/libavb/avb_descriptor.h
+++ b/lib/libavb/avb_descriptor.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_footer.c b/lib/libavb/avb_footer.c
index f8b68739422..697a7152175 100644
--- a/lib/libavb/avb_footer.c
+++ b/lib/libavb/avb_footer.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_footer.h"
diff --git a/lib/libavb/avb_footer.h b/lib/libavb/avb_footer.h
index 975136aa016..62a6e658d1b 100644
--- a/lib/libavb/avb_footer.h
+++ b/lib/libavb/avb_footer.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_hash_descriptor.c b/lib/libavb/avb_hash_descriptor.c
index 6dfaf621d83..cd1438e0cd8 100644
--- a/lib/libavb/avb_hash_descriptor.c
+++ b/lib/libavb/avb_hash_descriptor.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_hash_descriptor.h"
diff --git a/lib/libavb/avb_hash_descriptor.h b/lib/libavb/avb_hash_descriptor.h
index 3d4352068af..bede97f818f 100644
--- a/lib/libavb/avb_hash_descriptor.h
+++ b/lib/libavb/avb_hash_descriptor.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_hashtree_descriptor.c b/lib/libavb/avb_hashtree_descriptor.c
index da902775691..2a61b35a8ff 100644
--- a/lib/libavb/avb_hashtree_descriptor.c
+++ b/lib/libavb/avb_hashtree_descriptor.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_hashtree_descriptor.h"
diff --git a/lib/libavb/avb_hashtree_descriptor.h b/lib/libavb/avb_hashtree_descriptor.h
index 3d3e647fe1c..d7f3eb501a3 100644
--- a/lib/libavb/avb_hashtree_descriptor.h
+++ b/lib/libavb/avb_hashtree_descriptor.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_kernel_cmdline_descriptor.c b/lib/libavb/avb_kernel_cmdline_descriptor.c
index 5457ddeeb3a..fa3fe4537b4 100644
--- a/lib/libavb/avb_kernel_cmdline_descriptor.c
+++ b/lib/libavb/avb_kernel_cmdline_descriptor.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_kernel_cmdline_descriptor.h"
diff --git a/lib/libavb/avb_kernel_cmdline_descriptor.h b/lib/libavb/avb_kernel_cmdline_descriptor.h
index 655918d8f04..246fbdacf39 100644
--- a/lib/libavb/avb_kernel_cmdline_descriptor.h
+++ b/lib/libavb/avb_kernel_cmdline_descriptor.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_ops.h b/lib/libavb/avb_ops.h
index 36134346f6a..8bbdc7c31b9 100644
--- a/lib/libavb/avb_ops.h
+++ b/lib/libavb/avb_ops.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_property_descriptor.c b/lib/libavb/avb_property_descriptor.c
index 2627cd0d64f..589c96310ab 100644
--- a/lib/libavb/avb_property_descriptor.c
+++ b/lib/libavb/avb_property_descriptor.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_property_descriptor.h"
diff --git a/lib/libavb/avb_property_descriptor.h b/lib/libavb/avb_property_descriptor.h
index 2a708961e96..917c58f9fea 100644
--- a/lib/libavb/avb_property_descriptor.h
+++ b/lib/libavb/avb_property_descriptor.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_rsa.c b/lib/libavb/avb_rsa.c
index 269f7d00b46..bbf15626b85 100644
--- a/lib/libavb/avb_rsa.c
+++ b/lib/libavb/avb_rsa.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT OR BSD-3-Clause
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: (MIT or BSD-3-Clause)
*/
/* Implementation of RSA signature verification which uses a pre-processed
diff --git a/lib/libavb/avb_rsa.h b/lib/libavb/avb_rsa.h
index f5c6a9c7c7f..8741790e094 100644
--- a/lib/libavb/avb_rsa.h
+++ b/lib/libavb/avb_rsa.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT OR BSD-3-Clause */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: (MIT or BSD-3-Clause)
*/
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
diff --git a/lib/libavb/avb_sha.h b/lib/libavb/avb_sha.h
index f1d5f5af94c..365aaadc2f7 100644
--- a/lib/libavb/avb_sha.h
+++ b/lib/libavb/avb_sha.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#ifdef AVB_INSIDE_LIBAVB_H
diff --git a/lib/libavb/avb_sha256.c b/lib/libavb/avb_sha256.c
index b81c2428974..d24c7015f67 100644
--- a/lib/libavb/avb_sha256.c
+++ b/lib/libavb/avb_sha256.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2005, 2007 Olivier Gay <olivier.gay@a3.epfl.ch>
* All rights reserved.
@@ -5,8 +6,6 @@
* FIPS 180-2 SHA-224/256/384/512 implementation
* Last update: 02/02/2007
* Issue date: 04/30/2005
- *
- * SPDX-License-Identifier: BSD-3-Clause
*/
#include "avb_sha.h"
diff --git a/lib/libavb/avb_sha512.c b/lib/libavb/avb_sha512.c
index 128986dfbb6..a5e7297aa70 100644
--- a/lib/libavb/avb_sha512.c
+++ b/lib/libavb/avb_sha512.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (C) 2005, 2007 Olivier Gay <olivier.gay@a3.epfl.ch>
* All rights reserved.
@@ -5,8 +6,6 @@
* FIPS 180-2 SHA-224/256/384/512 implementation
* Last update: 02/02/2007
* Issue date: 04/30/2005
- *
- * SPDX-License-Identifier: BSD-3-Clause
*/
#include "avb_sha.h"
diff --git a/lib/libavb/avb_slot_verify.c b/lib/libavb/avb_slot_verify.c
index 66ac6f03bb6..a941850d934 100644
--- a/lib/libavb/avb_slot_verify.c
+++ b/lib/libavb/avb_slot_verify.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_slot_verify.h"
diff --git a/lib/libavb/avb_slot_verify.h b/lib/libavb/avb_slot_verify.h
index d6030604691..73fd70d4ce2 100644
--- a/lib/libavb/avb_slot_verify.h
+++ b/lib/libavb/avb_slot_verify.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_sysdeps.h b/lib/libavb/avb_sysdeps.h
index 345c2b29a6a..f032de4a2e0 100644
--- a/lib/libavb/avb_sysdeps.h
+++ b/lib/libavb/avb_sysdeps.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_sysdeps_posix.c b/lib/libavb/avb_sysdeps_posix.c
index 0f208474225..e9addc1c877 100644
--- a/lib/libavb/avb_sysdeps_posix.c
+++ b/lib/libavb/avb_sysdeps_posix.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include <stdarg.h>
diff --git a/lib/libavb/avb_util.c b/lib/libavb/avb_util.c
index 169f83d4083..405d625351e 100644
--- a/lib/libavb/avb_util.c
+++ b/lib/libavb/avb_util.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_util.h"
diff --git a/lib/libavb/avb_util.h b/lib/libavb/avb_util.h
index e566d7766ae..26dc6b045ac 100644
--- a/lib/libavb/avb_util.h
+++ b/lib/libavb/avb_util.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_vbmeta_image.c b/lib/libavb/avb_vbmeta_image.c
index 2acca7d5e13..a7e2322b9e0 100644
--- a/lib/libavb/avb_vbmeta_image.c
+++ b/lib/libavb/avb_vbmeta_image.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_vbmeta_image.h"
diff --git a/lib/libavb/avb_vbmeta_image.h b/lib/libavb/avb_vbmeta_image.h
index 85a3e1beec6..24f8519ff60 100644
--- a/lib/libavb/avb_vbmeta_image.h
+++ b/lib/libavb/avb_vbmeta_image.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/avb_version.c b/lib/libavb/avb_version.c
index 92a2edfc465..1f20722e6ca 100644
--- a/lib/libavb/avb_version.c
+++ b/lib/libavb/avb_version.c
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: MIT
/*
* Copyright (C) 2017 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#include "avb_version.h"
diff --git a/lib/libavb/avb_version.h b/lib/libavb/avb_version.h
index a36da62d5c9..57c6ece851c 100644
--- a/lib/libavb/avb_version.h
+++ b/lib/libavb/avb_version.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2017 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#if !defined(AVB_INSIDE_LIBAVB_H) && !defined(AVB_COMPILATION)
diff --git a/lib/libavb/libavb.h b/lib/libavb/libavb.h
index dab17cef6e0..ac92a2bcb8a 100644
--- a/lib/libavb/libavb.h
+++ b/lib/libavb/libavb.h
@@ -1,7 +1,6 @@
+/* SPDX-License-Identifier: MIT */
/*
* Copyright (C) 2016 The Android Open Source Project
- *
- * SPDX-License-Identifier: MIT
*/
#ifndef LIBAVB_H_