aboutsummaryrefslogtreecommitdiff
path: root/external/xscom-utils
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-07-18 12:30:00 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-07-26 15:08:03 +1000
commit5ef3dd30a98796359c45cbeaf1ce7c381a9120e6 (patch)
tree473cf267823efb0710d892d54e264543d1ba8a1d /external/xscom-utils
parent53baedfd19436e8cc33151a0c17cb57863f7303a (diff)
downloadskiboot-5ef3dd30a98796359c45cbeaf1ce7c381a9120e6.zip
skiboot-5ef3dd30a98796359c45cbeaf1ce7c381a9120e6.tar.gz
skiboot-5ef3dd30a98796359c45cbeaf1ce7c381a9120e6.tar.bz2
SPDX-ify all skiboot code
Use Software Package Data Exchange (SPDX) to indicate license for each file that is unique to skiboot. At the same time, ensure the (C) who and years are correct. See https://spdx.org/ Signed-off-by: Stewart Smith <stewart@linux.ibm.com> [oliver: Added a few missing files] Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'external/xscom-utils')
-rw-r--r--external/xscom-utils/Makefile1
-rwxr-xr-xexternal/xscom-utils/adu_scoms.py16
-rw-r--r--external/xscom-utils/getscom.c17
-rw-r--r--external/xscom-utils/getsram.c17
-rw-r--r--external/xscom-utils/putscom.c17
-rw-r--r--external/xscom-utils/sram.c17
-rw-r--r--external/xscom-utils/sram.h17
-rw-r--r--external/xscom-utils/xscom.c17
-rw-r--r--external/xscom-utils/xscom.h16
9 files changed, 25 insertions, 110 deletions
diff --git a/external/xscom-utils/Makefile b/external/xscom-utils/Makefile
index 2eda4ea..b0b1089 100644
--- a/external/xscom-utils/Makefile
+++ b/external/xscom-utils/Makefile
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: Apache-2.0
CC = $(CROSS_COMPILE)gcc
XSCOM_VERSION ?= $(shell ../../make_version.sh xscom-utils)
diff --git a/external/xscom-utils/adu_scoms.py b/external/xscom-utils/adu_scoms.py
index a1b7d89..4d1f3fa 100755
--- a/external/xscom-utils/adu_scoms.py
+++ b/external/xscom-utils/adu_scoms.py
@@ -1,22 +1,10 @@
#!/usr/bin/python
-
+# SPDX-License-Identifier: Apache-2.0
+#
# Python library for in-band SCom access
# (based on xscom-utils from OPAL firmware)
#
# Copyright 2018 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.
import os, sys, struct, getopt
diff --git a/external/xscom-utils/getscom.c b/external/xscom-utils/getscom.c
index dab4994..430a23e 100644
--- a/external/xscom-utils/getscom.c
+++ b/external/xscom-utils/getscom.c
@@ -1,17 +1,8 @@
-/* Copyright 2014-2016 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * getscom
*
- * 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
- * imitations under the License.
+ * Copyright 2014-2017 IBM Corp.
*/
#include <stdio.h>
diff --git a/external/xscom-utils/getsram.c b/external/xscom-utils/getsram.c
index 18c52c7..a3e53e1 100644
--- a/external/xscom-utils/getsram.c
+++ b/external/xscom-utils/getsram.c
@@ -1,17 +1,8 @@
-/* Copyright 2014-2016 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Read SRAM
*
- * 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
- * imitations under the License.
+ * Copyright 2014-2018 IBM Corp.
*/
#include <stdio.h>
diff --git a/external/xscom-utils/putscom.c b/external/xscom-utils/putscom.c
index 84b6f89..ba575e0 100644
--- a/external/xscom-utils/putscom.c
+++ b/external/xscom-utils/putscom.c
@@ -1,17 +1,8 @@
-/* Copyright 2014-2016 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * getscom
*
- * 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
- * imitations under the License.
+ * Copyright 2014-2017 IBM Corp.
*/
#include <stdio.h>
diff --git a/external/xscom-utils/sram.c b/external/xscom-utils/sram.c
index 52f92b8..fd3fe8c 100644
--- a/external/xscom-utils/sram.c
+++ b/external/xscom-utils/sram.c
@@ -1,18 +1,5 @@
-/* Copyright 2014-2016 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
- * imitations under the License.
- */
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2014-2019 IBM Corp. */
#include <stdint.h>
#include <stdio.h>
diff --git a/external/xscom-utils/sram.h b/external/xscom-utils/sram.h
index 1db128c..92ab512 100644
--- a/external/xscom-utils/sram.h
+++ b/external/xscom-utils/sram.h
@@ -1,18 +1,5 @@
-/* Copyright 2014-2016 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
- * imitations under the License.
- */
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2014-2016 IBM Corp. */
#ifndef __SRAM_H
#define __SRAM_H
diff --git a/external/xscom-utils/xscom.c b/external/xscom-utils/xscom.c
index 2425730..f742336 100644
--- a/external/xscom-utils/xscom.c
+++ b/external/xscom-utils/xscom.c
@@ -1,17 +1,8 @@
-/* Copyright 2014-2016 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Do XSCOMs through linux debugfs interface
*
- * 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
- * imitations under the License.
+ * Copyright 2014-2017 IBM Corp.
*/
#define _LARGEFILE64_SOURCE
diff --git a/external/xscom-utils/xscom.h b/external/xscom-utils/xscom.h
index 4932315..8929fb2 100644
--- a/external/xscom-utils/xscom.h
+++ b/external/xscom-utils/xscom.h
@@ -1,17 +1,5 @@
-/* Copyright 2014-2016 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
- * imitations under the License.
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2014-2017 IBM Corp.
*/
#ifndef __XSCOM_H