- all RAN code, CI code, configuration files, dockerfiles, in CSSL v1.0
- all deployment code (openshift, charts, ancillary files like shell
scripts), in MIT
- documentation in CC-BY-4.0
- exceptions might apply and are listed in NOTICE
- there is a new LICENSES folder with all licenses
- CONTRIBUTIONS.md has been updated accordingly
For automated changes based on OAI PL v1.1:
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.{c,h,cpp}
perl -i~ -0pe 's/\/\*.*Licensed to the OpenAirInterface.*openairinterface.org\n#?/\/*\n * SPDX-License-Identifier: LicenseRef-CSSL-1.0\n/s' **/*.ts
perl -i~ -0pe 's/<!--.*Licensed to the OpenAirInterface.*openairinterface.org\n.*-->/<!-- SPDX-License-Identifier: LicenseRef-CSSL-1.0 -->/s' **/*.xml
The rest (cmake, files with missing license, cmake) manually.
42 lines
1.1 KiB
Docker
42 lines
1.1 KiB
Docker
# SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
|
|
|
#---------------------------------------------------------------------
|
|
#
|
|
# Dockerfile for the Open-Air-Interface BUILD service
|
|
# Valid for Ubuntu 22.04
|
|
#
|
|
#---------------------------------------------------------------------
|
|
FROM ubuntu:xenial AS oai-cppcheck
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && \
|
|
apt-get upgrade --yes && \
|
|
apt-get install --yes \
|
|
build-essential \
|
|
vim \
|
|
cppcheck
|
|
|
|
WORKDIR /oai-ran
|
|
COPY . .
|
|
|
|
WORKDIR /oai-ran/common/utils/T
|
|
RUN make
|
|
|
|
WORKDIR /oai-ran
|
|
RUN mkdir -p cmake_targets/log && \
|
|
cppcheck --enable=warning --force --xml --xml-version=2 \
|
|
--inline-suppr \
|
|
-i openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder.c \
|
|
--suppressions-list=ci-scripts/cppcheck_suppressions.list \
|
|
-I common/utils \
|
|
-I openair3/NAS/COMMON/UTIL \
|
|
-j`nproc` . 2> cmake_targets/log/cppcheck.xml 1> cmake_targets/log/cppcheck_build.txt
|
|
|
|
RUN grep -E -c 'severity="error' cmake_targets/log/cppcheck.xml
|
|
|
|
RUN grep -E -c 'severity="warning' cmake_targets/log/cppcheck.xml
|
|
|
|
RUN cat cmake_targets/log/cppcheck.xml
|