1# Copyright 2020 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4# 5# Copyright 2020 Google Inc. 6# 7# Licensed under the Apache License, Version 2.0 (the "License"); 8# you may not use this file except in compliance with the License. 9# You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, software 14# distributed under the License is distributed on an "AS IS" BASIS, 15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16# See the License for the specific language governing permissions and 17# limitations under the License. 18# 19################################################################################ 20 21FROM gcr.io/oss-fuzz-base/base-builder 22 23RUN apt-get -y update && \ 24 apt-get install -y \ 25 autoconf \ 26 bison \ 27 build-essential \ 28 flex \ 29 gawk \ 30 gettext \ 31 git \ 32 gperf \ 33 help2man \ 34 libncurses5-dev \ 35 libssl-dev \ 36 libtool \ 37 libtool-bin \ 38 pkg-config \ 39 software-properties-common \ 40 texinfo \ 41 udev \ 42 cmake \ 43 libglib2.0-dev 44 45ARG CLONE_DEFAULTS="--depth 5" 46 47# Use ToT alsa utils for the latest topology patches. 48RUN cd /tmp && \ 49git clone $CLONE_DEFAULTS https://github.com/thesofproject/alsa-lib.git && \ 50git clone $CLONE_DEFAULTS https://github.com/thesofproject/alsa-utils.git && \ 51cd /tmp/alsa-lib && ./gitcompile && make install && \ 52cd /tmp/alsa-utils && ./gitcompile && make install 53 54ARG GITHUB_SOF=https://github.com/thesofproject 55 56RUN cd $SRC && git clone $CLONE_DEFAULTS $GITHUB_SOF/sof 57WORKDIR sof 58COPY build.sh $SRC/ 59