Rename matcha.ld and add OSS headers. matcha.ld should be springbok.ld. Added Apache 2 headers for open-sourcing. Change-Id: I8ca40f05c5bdb769a9e34f152a0e9399cba74d22
diff --git a/CMakeLists.txt b/CMakeLists.txt index f1bb05e..96a4313 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -27,7 +27,7 @@ add_subdirectory($ENV{ROOTDIR}/sw/pigweed pw) -set(LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/springbok/matcha.ld" CACHE PATH "Linker script for springbok") +set(LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/springbok/springbok.ld" CACHE PATH "Linker script for springbok") set(TEST_RUNNER "${CMAKE_CURRENT_SOURCE_DIR}/scripts/test_runner.py" CACHE PATH "Test runner script path")
diff --git a/hello_vec/Makefile b/hello_vec/Makefile index fcae97d..c006178 100644 --- a/hello_vec/Makefile +++ b/hello_vec/Makefile
@@ -24,7 +24,7 @@ LDFLAGS += -Wl,--gc-sections LDFLAGS += -Wl,--print-memory-usage LDFLAGS += -Wl,-Map=${BUILDDIR}/hello_vec.map -LDFLAGS += -T${ROOTDIR}/springbok/matcha.ld +LDFLAGS += -T${ROOTDIR}/springbok/springbok.ld CC := ${SHODANROOTDIR}/cache/toolchain_vp/bin/riscv32-unknown-elf-gcc CPP := ${SHODANROOTDIR}/cache/toolchain_vp/bin/riscv32-unknown-elf-g++
diff --git a/springbok/CMakeLists.txt b/springbok/CMakeLists.txt index 365e1ac..1e1b36b 100644 --- a/springbok/CMakeLists.txt +++ b/springbok/CMakeLists.txt
@@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# 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. enable_language(ASM)
diff --git a/springbok/crt0.S b/springbok/crt0.S index 5adebba..c7514ee 100644 --- a/springbok/crt0.S +++ b/springbok/crt0.S
@@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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. + .section .text._start .align 2 .globl _start
diff --git a/springbok/include/springbok.h b/springbok/include/springbok.h index 385d5b2..66c6b87 100644 --- a/springbok/include/springbok.h +++ b/springbok/include/springbok.h
@@ -1,3 +1,19 @@ +/* + * Copyright 2022 Google LLC + * + * 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. + */ + #ifndef SPRINGBOK_H #define SPRINGBOK_H #include <springbok_intrinsics.h>
diff --git a/springbok/include/springbok_intrinsics.h b/springbok/include/springbok_intrinsics.h index e829416..5096cee 100644 --- a/springbok/include/springbok_intrinsics.h +++ b/springbok/include/springbok_intrinsics.h
@@ -1,3 +1,19 @@ +/* + * Copyright 2022 Google LLC + * + * 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. + */ + #pragma once #define SPRINGBOK_SIMPRINT_ERROR (0)
diff --git a/springbok/springbok.cpp b/springbok/springbok.cpp index d6d659e..3a7706d 100644 --- a/springbok/springbok.cpp +++ b/springbok/springbok.cpp
@@ -1,3 +1,17 @@ +// Copyright 2022 Google LLC +// +// 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. + #include <stdint.h> #include "springbok.h"
diff --git a/springbok/matcha.ld b/springbok/springbok.ld similarity index 80% rename from springbok/matcha.ld rename to springbok/springbok.ld index 639f700..9782844 100644 --- a/springbok/matcha.ld +++ b/springbok/springbok.ld
@@ -1,3 +1,19 @@ +/* + * Copyright 2022 Google LLC + * + * 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. + */ + ITCM_LENGTH = DEFINED(__itcm_length__) ? __itcm_length__ : 64K; DTCM_LENGTH = DEFINED(__dtcm_length__) ? __dtcm_length__ : 4M;
diff --git a/springbok/springbok_gloss.cpp b/springbok/springbok_gloss.cpp index eb18b71..0f55e64 100644 --- a/springbok/springbok_gloss.cpp +++ b/springbok/springbok_gloss.cpp
@@ -1,3 +1,17 @@ +// Copyright 2022 Google LLC +// +// 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. + #include <stdlib.h> #include <errno.h> #include <sys/stat.h>