blob: f82a7bf0337ccd1ae746574b8ab2d5113b46b612 [file] [log] [blame]
Joel Stanley57ce2902015-11-23 21:48:21 +10301#!/bin/bash
2
3Dockerfile=$(cat << EOF
4FROM ubuntu:15.10
5RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -yy
6RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -yy make gcc libsystemd-dev libc6-dev pkg-config
Patrick Williams0a47d9a2021-04-13 20:31:44 -05007RUN groupadd -g ${GROUPS[0]} ${USER} && useradd -d ${HOME} -m -u ${UID} -g ${GROUPS[0]} ${USER}
Joel Stanley57ce2902015-11-23 21:48:21 +10308USER ${USER}
9ENV HOME ${HOME}
10RUN /bin/bash
11EOF
12)
13
14docker pull ubuntu:15.10
15docker build -t temp - <<< "${Dockerfile}"
16
17gcc --version
18
19mkdir -p linux
20wget https://raw.githubusercontent.com/openbmc/linux/dev-4.3/include/uapi/linux/bt-host.h -O linux/bt-host.h
21
22docker run --cap-add=sys_admin --net=host --rm=true --user="${USER}" \
Patrick Williams0a47d9a2021-04-13 20:31:44 -050023 -w "${PWD}" -v "${HOME}":"${HOME}" -t temp make "KERNEL_HEADERS=$PWD"