aboutsummaryrefslogtreecommitdiff
path: root/libflash/test
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 /libflash/test
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 'libflash/test')
-rw-r--r--libflash/test/mbox-server.c17
-rw-r--r--libflash/test/mbox-server.h3
-rw-r--r--libflash/test/stubs.c19
-rw-r--r--libflash/test/stubs.h18
-rw-r--r--libflash/test/test-blocklevel.c18
-rw-r--r--libflash/test/test-ecc.c18
-rw-r--r--libflash/test/test-flash.c18
-rw-r--r--libflash/test/test-ipmi-hiomap.c3
-rw-r--r--libflash/test/test-mbox.c17
9 files changed, 27 insertions, 104 deletions
diff --git a/libflash/test/mbox-server.c b/libflash/test/mbox-server.c
index e035788..69499dc 100644
--- a/libflash/test/mbox-server.c
+++ b/libflash/test/mbox-server.c
@@ -1,18 +1,5 @@
-/* Copyright 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
- *
- * 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 2017 IBM Corp. */
#include <stdio.h>
#include <stdlib.h>
diff --git a/libflash/test/mbox-server.h b/libflash/test/mbox-server.h
index 0a961ba..b573f34 100644
--- a/libflash/test/mbox-server.h
+++ b/libflash/test/mbox-server.h
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2017 IBM Corp. */
+
#include <stdint.h>
uint32_t mbox_server_total_size(void);
diff --git a/libflash/test/stubs.c b/libflash/test/stubs.c
index f113067..30ccf4c 100644
--- a/libflash/test/stubs.c
+++ b/libflash/test/stubs.c
@@ -1,19 +1,10 @@
-/* Copyright 2013-2017 IBM Corp.
+// SPDX-License-Identifier: Apache-2.0
+/*
+ * Stubs for libflash test
*
- * 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.
+ * Copyright 2013-2018 IBM Corp.
*/
-/* Stubs for libflash test */
+
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/libflash/test/stubs.h b/libflash/test/stubs.h
index bb87dba..ec408bc 100644
--- a/libflash/test/stubs.h
+++ b/libflash/test/stubs.h
@@ -1,18 +1,6 @@
-/* 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
- *
- * 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-2018 IBM Corp. */
+
#include <lock.h>
#include <stdint.h>
diff --git a/libflash/test/test-blocklevel.c b/libflash/test/test-blocklevel.c
index a67f588..4f5adc1 100644
--- a/libflash/test/test-blocklevel.c
+++ b/libflash/test/test-blocklevel.c
@@ -1,18 +1,6 @@
-/* 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
- *
- * 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-2018 IBM Corp. */
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/libflash/test/test-ecc.c b/libflash/test/test-ecc.c
index 5ce4c57..af5f42f 100644
--- a/libflash/test/test-ecc.c
+++ b/libflash/test/test-ecc.c
@@ -1,18 +1,6 @@
-/* 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-2018 IBM Corp. */
+
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/libflash/test/test-flash.c b/libflash/test/test-flash.c
index 3c04fd3..9cc8499 100644
--- a/libflash/test/test-flash.c
+++ b/libflash/test/test-flash.c
@@ -1,18 +1,6 @@
-/* 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 <stdio.h>
#include <stdlib.h>
#include <stdint.h>
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c
index e1bc5ef..30dbe24 100644
--- a/libflash/test/test-ipmi-hiomap.c
+++ b/libflash/test/test-ipmi-hiomap.c
@@ -1,3 +1,6 @@
+// SPDX-License-Identifier: Apache-2.0
+/* Copyright 2018-2019 IBM Corp. */
+
#include <assert.h>
#include <ccan/container_of/container_of.h>
#include <libflash/blocklevel.h>
diff --git a/libflash/test/test-mbox.c b/libflash/test/test-mbox.c
index 9bd6f7c..6e30b9e 100644
--- a/libflash/test/test-mbox.c
+++ b/libflash/test/test-mbox.c
@@ -1,18 +1,5 @@
-/* Copyright 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
- *
- * 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 2017-2018 IBM Corp. */
#include <stdio.h>
#include <stdlib.h>