From 5ef3dd30a98796359c45cbeaf1ce7c381a9120e6 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Thu, 18 Jul 2019 12:30:00 +1000 Subject: 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 [oliver: Added a few missing files] Signed-off-by: Oliver O'Halloran --- hdata/test/Makefile.check | 1 + hdata/test/dtdiff_wrap.sh | 5 ++++- hdata/test/hdata_to_dt.c | 19 +++++-------------- hdata/test/stubs.c | 18 +++--------------- 4 files changed, 13 insertions(+), 30 deletions(-) (limited to 'hdata/test') diff --git a/hdata/test/Makefile.check b/hdata/test/Makefile.check index 368fcba..4c579ae 100644 --- a/hdata/test/Makefile.check +++ b/hdata/test/Makefile.check @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 # -*-Makefile-*- HDATA_TEST := hdata/test/hdata_to_dt diff --git a/hdata/test/dtdiff_wrap.sh b/hdata/test/dtdiff_wrap.sh index 75c18ba..e746e25 100755 --- a/hdata/test/dtdiff_wrap.sh +++ b/hdata/test/dtdiff_wrap.sh @@ -1,8 +1,11 @@ #!/bin/bash - +# SPDX-License-Identifier: Apache-2.0 +# # Takes /dev/stdin as dtb, saves to file, does dtdiff # Also runs parameter through a dts->dtb->dts conversion # in order to work around dtc bugs. +# +# Copyright 2018 IBM Corp. T=$(mktemp) cp /dev/stdin $T.dtb diff --git a/hdata/test/hdata_to_dt.c b/hdata/test/hdata_to_dt.c index 8692177..56c0429 100644 --- a/hdata/test/hdata_to_dt.c +++ b/hdata/test/hdata_to_dt.c @@ -1,19 +1,10 @@ -/* Copyright 2013-2019 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 +/* + * Given a hdata dump, output the device tree. * - * 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. */ -/* Given a hdata dump, output the device tree. */ + #include #include #include diff --git a/hdata/test/stubs.c b/hdata/test/stubs.c index 3637633..1d924b6 100644 --- a/hdata/test/stubs.c +++ b/hdata/test/stubs.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-2019 IBM Corp. */ + #include #include #include -- cgit v1.1