Skip to content

Commit 5d8e3ed

Browse files
authored
Onboarding the bios-bmc-smm-error-logger (#14213)
It does onboard the project bios bmc smm error logger. Changes: * Create the project folder under projects. * Create build.sh * Create Dockerfile * Uncomment the `ubuntu-24-04` to allow onboarding projects with `ubuntu-24-04`. --------- Signed-off-by: Javan Lacerda <javanlacerda@google.com>
1 parent e363b4e commit 5d8e3ed

File tree

5 files changed

+70
-1
lines changed

5 files changed

+70
-1
lines changed

infra/ci/check_base_os.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
SUPPORTED_VERSIONS = [
2929
'legacy',
3030
# 'ubuntu-20-04',
31-
# 'ubuntu-24-04',
31+
'ubuntu-24-04',
3232
]
3333

3434
# A map from the base_os_version in project.yaml to the expected Dockerfile

infra/presubmit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ class ProjectYamlChecker:
104104
'view_restrictions',
105105
'file_github_issue',
106106
'indexer', # Flags specific to infra/indexer.
107+
'base_os_version',
107108
]
108109

109110
REQUIRED_SECTIONS = ['main_repo']
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright 2016 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
17+
FROM gcr.io/oss-fuzz-base/base-builder:ubuntu-24-04
18+
19+
RUN apt-get update && apt-get install --reinstall -y patchelf libboost-all-dev git python3-pip python3-venv libmount-dev libcap-dev gperf vim clang-18 libc++-18-dev lsb-release wget software-properties-common gnupg systemd make pkg-config libsystemd-dev libfmt-dev cmake ninja-build
20+
RUN python3 -m venv /env && . /env/bin/activate && pip install meson mako inflection pyyaml jinja2 jsonschema
21+
22+
ENV CC=clang-18
23+
ENV CXX=clang++-18
24+
25+
RUN git clone --branch fuzzing https://github.com/javanlacerda/bios-bmc-smm-error-logger
26+
COPY build.sh $SRC/
27+
WORKDIR $SRC/bios-bmc-smm-error-logger
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash -eu
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
unset CFLAGS
19+
unset CXXFLAGS
20+
unset RUSTFLAGS
21+
22+
rm -rf $OUT/*
23+
24+
source /env/bin/activate
25+
meson setup build -Ddefault_library=static -Dtests=disabled -Dcpp_std=c++23 -Dread-interval-ms=10000 -Dmemory-region-size=1048576 -Dmemory-region-offset=3220176896 -Dbmc-interface-version=3 -Dqueue-region-size=16384 -Due-region-size=768 -Dmagic-number-byte1=2319403398 -Dmagic-number-byte2=1343703436 -Dmagic-number-byte3=2173375339 -Dmagic-number-byte4=3360702380 --buildtype=debug -Dfuzzing=true -Dcpp_args="-stdlib=libstdc++"
26+
ninja -C build
27+
28+
cp build/src/bios-bmc-smm-error-logger_fuzzer $OUT
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
homepage: "https://github.com/openbmc/docs/blob/master/designs/bios-bmc-smm-error-logging.md"
2+
language: c++
3+
primary_contact: "javanlacerda@google.com"
4+
auto_ccs:
5+
- pedroysb@google.com
6+
7+
main_repo: "https://github.com/javanlacerda/bios-bmc-smm-error-logger"
8+
fuzzing_engines:
9+
- libfuzzer
10+
sanitizers:
11+
- address
12+
13+
base_os_version: ubuntu-24-04

0 commit comments

Comments
 (0)