From 58c5ac8531aebafa249a68424f13b9c7b42b2268 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 24 May 2018 10:51:21 +0200 Subject: [PATCH] Add missing license headers and RAT excludes --- .rat-excludes | 28 ++++++++++++++++++++++++++++ nimble/host/src/ble_hs_flow.c | 19 +++++++++++++++++++ porting/examples/dummy/Makefile | 19 +++++++++++++++++++ porting/examples/dummy/main.c | 19 +++++++++++++++++++ porting/nimble/Makefile.controller | 17 +++++++++++++++++ porting/nimble/Makefile.defs | 17 +++++++++++++++++ porting/nimble/Makefile.mesh | 17 +++++++++++++++++ porting/nimble/Makefile.tinycrypt | 17 +++++++++++++++++ version.yml | 19 +++++++++++++++++++ 9 files changed, 172 insertions(+) create mode 100644 .rat-excludes diff --git a/.rat-excludes b/.rat-excludes new file mode 100644 index 000000000..2c0be75b4 --- /dev/null +++ b/.rat-excludes @@ -0,0 +1,28 @@ +# Can't easily add license to rat-excludes file. +.rat-excludes + +# Ignore documentation folder +docs + +# Non-source files +RELEASE_NOTES.md +.gitignore +README.md +pts-gap.txt +pts-gatt.txt +pts-l2cap.txt +pts-sm.txt +94654-20170317-085122560.tpg +94654-20170317-085441153.pts + +# tinycrypt - BSD License. +tinycrypt + +# Bluetooth Mesh - Apache 2.0 License +mesh + +# Queue implementation - BSD License +queue.h + +# mbuf implementation - BSD License +os_mbuf.c diff --git a/nimble/host/src/ble_hs_flow.c b/nimble/host/src/ble_hs_flow.c index db0c6b926..ca93389e8 100644 --- a/nimble/host/src/ble_hs_flow.c +++ b/nimble/host/src/ble_hs_flow.c @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + #include "syscfg/syscfg.h" #include "nimble/ble_hci_trans.h" #include "ble_hs_priv.h" diff --git a/porting/examples/dummy/Makefile b/porting/examples/dummy/Makefile index 7d4c6211f..11685f902 100644 --- a/porting/examples/dummy/Makefile +++ b/porting/examples/dummy/Makefile @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# + # Configure NimBLE variables NIMBLE_ROOT := ../../.. NIMBLE_CFG_TINYCRYPT := 1 diff --git a/porting/examples/dummy/main.c b/porting/examples/dummy/main.c index 6b7c0829c..4c17d9502 100644 --- a/porting/examples/dummy/main.c +++ b/porting/examples/dummy/main.c @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + #include "nimble/nimble_port.h" int main(int argc, char **argv) diff --git a/porting/nimble/Makefile.controller b/porting/nimble/Makefile.controller index f10da9ca0..b6e2ce4e2 100644 --- a/porting/nimble/Makefile.controller +++ b/porting/nimble/Makefile.controller @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# + NIMBLE_CFLAGS += \ -DNIMBLE_CFG_CONTROLLER=1 \ diff --git a/porting/nimble/Makefile.defs b/porting/nimble/Makefile.defs index 347c10804..86dda3a7b 100644 --- a/porting/nimble/Makefile.defs +++ b/porting/nimble/Makefile.defs @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# + ifeq (,$(NIMBLE_ROOT)) $(error NIMBLE_ROOT shall be defined) endif diff --git a/porting/nimble/Makefile.mesh b/porting/nimble/Makefile.mesh index ef64e214d..e4a8d479c 100644 --- a/porting/nimble/Makefile.mesh +++ b/porting/nimble/Makefile.mesh @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# + NIMBLE_INCLUDE += \ $(NIMBLE_ROOT)/nimble/host/mesh/include \ diff --git a/porting/nimble/Makefile.tinycrypt b/porting/nimble/Makefile.tinycrypt index dd0986032..c9ae0298f 100644 --- a/porting/nimble/Makefile.tinycrypt +++ b/porting/nimble/Makefile.tinycrypt @@ -1,3 +1,20 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# + NIMBLE_INCLUDE += \ $(NIMBLE_ROOT)/ext/tinycrypt/include \ diff --git a/version.yml b/version.yml index db103d80e..13e5152bb 100644 --- a/version.yml +++ b/version.yml @@ -1,3 +1,22 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you 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. +# + # Newt uses this file to determine the version of a checked out repo. # This should always be 0.0.0 in the master branch. repo.version: 0.0.0