aboutsummaryrefslogtreecommitdiff
path: root/external/gard
diff options
context:
space:
mode:
Diffstat (limited to 'external/gard')
-rw-r--r--external/gard/Makefile1
-rw-r--r--external/gard/Makefile.dist1
-rw-r--r--external/gard/config.h7
-rw-r--r--external/gard/gard.c17
-rw-r--r--external/gard/gard.h16
-rw-r--r--external/gard/rules.mk1
-rw-r--r--external/gard/units.c6
7 files changed, 19 insertions, 30 deletions
diff --git a/external/gard/Makefile b/external/gard/Makefile
index 50589cf..e249cf8 100644
--- a/external/gard/Makefile
+++ b/external/gard/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0
# This tool is a linux userland tool and should be completely stand alone
include rules.mk
GET_ARCH = ../../external/common/get_arch.sh
diff --git a/external/gard/Makefile.dist b/external/gard/Makefile.dist
index 759b3ea..4d44a04 100644
--- a/external/gard/Makefile.dist
+++ b/external/gard/Makefile.dist
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0
#Prevent make from trying to remake arch links symlinks
#which are fixed files now
ARCH_LINKS :=
diff --git a/external/gard/config.h b/external/gard/config.h
index 2e0347f..d3edaea 100644
--- a/external/gard/config.h
+++ b/external/gard/config.h
@@ -1,4 +1,9 @@
-/* For CCAN */
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * For CCAN
+ *
+ * Copyright 2015-2017 IBM Corp
+ */
#include <endian.h>
#include <byteswap.h>
diff --git a/external/gard/gard.c b/external/gard/gard.c
index ba15e87..f8c1032 100644
--- a/external/gard/gard.c
+++ b/external/gard/gard.c
@@ -1,17 +1,8 @@
-/* Copyright 2013-2017 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Manipulate GARD records in the GARD partition
*
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright 2013-2019 IBM Corp.
*/
#include <fcntl.h>
diff --git a/external/gard/gard.h b/external/gard/gard.h
index 191cbaf..5999cf9 100644
--- a/external/gard/gard.h
+++ b/external/gard/gard.h
@@ -1,17 +1,5 @@
-/* Copyright 2013-2014 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2013-2017 IBM Corp.
*/
#include <stdint.h>
diff --git a/external/gard/rules.mk b/external/gard/rules.mk
index 9e8b581..8db66b8 100644
--- a/external/gard/rules.mk
+++ b/external/gard/rules.mk
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0
.DEFAULT_GOAL := all
override CFLAGS += -O2 -Wall -Werror -Wno-stringop-truncation -I.
diff --git a/external/gard/units.c b/external/gard/units.c
index 554d85c..62033a1 100644
--- a/external/gard/units.c
+++ b/external/gard/units.c
@@ -1,5 +1,4 @@
-#include "gard.h"
-
+// SPDX-License-Identifier: Apache-2.0
/*
* Each chip has a set of "units" that are detailed by the System MRW. Granted
* they're pretty much fixed for a given chip generation so hardcoding them here
@@ -8,8 +7,11 @@
* These tables we generated from obj/genfiles/errl/errludtarget.H. Which is
* generated as a part of the hostboot build process. Yeah that's about as
* dumb as it sounds, but whatever.
+ *
+ * Copyright 2017 IBM Corp
*/
+#include "gard.h"
/*
* Notes: