mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-22 13:37:10 +00:00
TravisCI: remove all config and support files related to TravisCI
The project does not make use of TravisCI. Remove all the configuration and support files (that are also mostly bit-rotten by now). Tracked-On: #3286 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
parent
3a61530d4e
commit
b759708cad
@ -1,25 +0,0 @@
|
||||
# Build container based on CentOS 7
|
||||
FROM centos:centos7
|
||||
|
||||
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||
RUN yum -y update; yum clean all
|
||||
RUN yum -y install gcc \
|
||||
git \
|
||||
make \
|
||||
vim \
|
||||
libuuid-devel \
|
||||
openssl-devel \
|
||||
libpciaccess-devel \
|
||||
gnu-efi-devel \
|
||||
systemd-devel \
|
||||
libxml2-devel \
|
||||
libevent-devel \
|
||||
libusbx-devel \
|
||||
python34 \
|
||||
python34-pip
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,10 +0,0 @@
|
||||
# Build container based on Clearlinux
|
||||
FROM clearlinux:base
|
||||
|
||||
RUN swupd bundle-add -b os-clr-on-clr python3-basic
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,23 +0,0 @@
|
||||
# Build container based on Debian 8
|
||||
FROM debian:8
|
||||
|
||||
# Install dependencies.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y gcc make vim git \
|
||||
gnu-efi \
|
||||
libssl-dev \
|
||||
libpciaccess-dev \
|
||||
uuid-dev \
|
||||
libsystemd-dev \
|
||||
libevent-dev \
|
||||
libxml2-dev \
|
||||
libusb-1.0-0-dev \
|
||||
python3 \
|
||||
python3-pip \
|
||||
&& apt-get clean
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,25 +0,0 @@
|
||||
# Build container based on Fedora 26
|
||||
FROM fedora:26
|
||||
|
||||
RUN dnf -y update && dnf clean all
|
||||
RUN dnf -y install gcc \
|
||||
git \
|
||||
make \
|
||||
vim \
|
||||
findutils \
|
||||
libuuid-devel \
|
||||
openssl-devel \
|
||||
libpciaccess-devel \
|
||||
gnu-efi-devel \
|
||||
systemd-devel \
|
||||
libxml2-devel \
|
||||
libevent-devel \
|
||||
libusbx-devel \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,25 +0,0 @@
|
||||
# Build container based on Fedora 27
|
||||
FROM fedora:27
|
||||
|
||||
RUN dnf -y update && dnf clean all
|
||||
RUN dnf -y install gcc \
|
||||
git \
|
||||
make \
|
||||
vim \
|
||||
findutils \
|
||||
libuuid-devel \
|
||||
openssl-devel \
|
||||
libpciaccess-devel \
|
||||
gnu-efi-devel \
|
||||
systemd-devel \
|
||||
libxml2-devel \
|
||||
libevent-devel \
|
||||
libusbx-devel \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,25 +0,0 @@
|
||||
# Build container based on Fedora 28
|
||||
FROM fedora:28
|
||||
|
||||
RUN dnf -y update && dnf clean all
|
||||
RUN dnf -y install gcc \
|
||||
git \
|
||||
make \
|
||||
vim \
|
||||
findutils \
|
||||
libuuid-devel \
|
||||
openssl-devel \
|
||||
libpciaccess-devel \
|
||||
gnu-efi-devel \
|
||||
systemd-devel \
|
||||
libxml2-devel \
|
||||
libevent-devel \
|
||||
libusbx-devel \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,23 +0,0 @@
|
||||
# Build container based on Ubuntu 14.04
|
||||
FROM ubuntu:14.04
|
||||
|
||||
# Install dependencies.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y gcc make vim git \
|
||||
gnu-efi \
|
||||
libssl-dev \
|
||||
libpciaccess-dev \
|
||||
uuid-dev \
|
||||
libsystemd-journal-dev \
|
||||
libevent-dev \
|
||||
libxml2-dev \
|
||||
libusb-1.0-0-dev \
|
||||
python3 \
|
||||
python3-pip \
|
||||
&& apt-get clean
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,59 +0,0 @@
|
||||
# Build container based on Ubuntu 16.04
|
||||
FROM ubuntu:16.04
|
||||
|
||||
# Install dependencies.
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y gcc \
|
||||
git \
|
||||
make \
|
||||
gnu-efi \
|
||||
libssl-dev \
|
||||
libpciaccess-dev \
|
||||
uuid-dev \
|
||||
libsystemd-dev \
|
||||
libevent-dev \
|
||||
libxml2-dev \
|
||||
libusb-1.0-0-dev \
|
||||
python3 \
|
||||
python3-pip \
|
||||
libblkid-dev \
|
||||
e2fslibs-dev \
|
||||
pkg-config \
|
||||
&& apt-get clean
|
||||
|
||||
# Install gcc 7.3.*
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y software-properties-common \
|
||||
&& add-apt-repository ppa:ubuntu-toolchain-r/test \
|
||||
&& apt-get update \
|
||||
&& apt install g++-7 -y \
|
||||
&& update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 \
|
||||
--slave /usr/bin/g++ g++ /usr/bin/g++-7 \
|
||||
&& apt-get clean
|
||||
|
||||
# Update binutils to 2.27 (no PPA found unfortunately)
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y wget \
|
||||
&& wget https://mirrors.ocf.berkeley.edu/gnu/binutils/binutils-2.27.tar.gz \
|
||||
&& tar xzvf binutils-2.27.tar.gz \
|
||||
&& cd binutils-2.27 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -fr binutils-2.27 \
|
||||
&& apt-get clean
|
||||
|
||||
# Install header files for GPIO
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y openwince-include \
|
||||
&& cp /usr/include/openwince/arm/sa11x0/gpio.h /usr/include/linux/ \
|
||||
&& cp /usr/include/openwince/common.h /usr/include/ \
|
||||
&& apt-get clean
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,23 +0,0 @@
|
||||
# Build container based on Ubuntu 18.04
|
||||
FROM ubuntu:18.04
|
||||
|
||||
# Install dependencies.
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y gcc make vim git \
|
||||
gnu-efi \
|
||||
libssl-dev \
|
||||
libpciaccess-dev \
|
||||
uuid-dev \
|
||||
libsystemd-dev \
|
||||
libevent-dev \
|
||||
libxml2-dev \
|
||||
libusb-1.0-0-dev \
|
||||
python3 \
|
||||
python3-pip \
|
||||
&& apt-get clean
|
||||
|
||||
RUN pip3 install kconfiglib
|
||||
|
||||
WORKDIR /root/acrn
|
||||
|
||||
CMD ["/bin/bash"]
|
@ -1,87 +0,0 @@
|
||||
# Build containers for Project ACRN
|
||||
|
||||
## Introduction
|
||||
|
||||
This folder contains a number of Dockerfile that include
|
||||
all the build tools and dependencies to build the ACRN Project
|
||||
components, i.e. the `hypervisor`, `devicemodel` and `tools`
|
||||
|
||||
The workflow is pretty simple and can be summarized in these few steps:
|
||||
|
||||
1. Build the *build containers* based on your preferred OS
|
||||
1. Clone the Project ACRN repository
|
||||
1. Start the build container and give it the repository
|
||||
1. Build the Project ACRN components
|
||||
|
||||
The pre-requisite is that you have Docker installed on your machine.
|
||||
Explaining how to install it on your system is beyond the scope of this
|
||||
document, please visit https://www.docker.com for detailed instructions.
|
||||
|
||||
## Build the *build containers*
|
||||
|
||||
Each `Dockerfile` in this repo has an extension that tells what Linux
|
||||
distribution it is based on. To build a container using any of those,
|
||||
use this command:
|
||||
```
|
||||
$ sudo docker build -t <container-name> -f Dockerfile.<baseos> .
|
||||
```
|
||||
|
||||
As an example, to build a container based on CentOS 7, do:
|
||||
```
|
||||
$ sudo docker build -t centos7 -f Dockerfile.centos7 .
|
||||
```
|
||||
|
||||
## Clone Project ACRN
|
||||
|
||||
Follow these simple steps to clone the Project ACRN repositories
|
||||
```
|
||||
$ mkdir ~/acrn
|
||||
$ cd ~/acrn
|
||||
$ git clone https://github.com/projectacrn/acrn-hypervisor
|
||||
```
|
||||
|
||||
## Start the build container
|
||||
|
||||
Use this `~/acrn/acrn-hypervisor` folder and pass it on to your build container:
|
||||
```
|
||||
$ cd ~/acrn/acrn-hypervisor
|
||||
$ sudo docker run -ti -v $PWD:/root/acrn <container-name>
|
||||
```
|
||||
|
||||
Using CentOS 7 again as an example, that gives us:
|
||||
```
|
||||
$ cd ~/acrn/acrn-hypervisor
|
||||
$ sudo docker run -ti -v $PWD:/root/acrn centos7
|
||||
```
|
||||
|
||||
**Note:** if you encounter permission issues within the container (as it
|
||||
happens on a Fedora 27 host), try adding the `:z` parameter to the mount option.
|
||||
This will unlock the permission restriction (that comes from SElinux). Your
|
||||
command-line would then be:
|
||||
```
|
||||
$ cd ~/acrn/acrn-hypervisor
|
||||
$ sudo docker run -ti -v $PWD:/root/acrn:z centos7
|
||||
```
|
||||
|
||||
## Build the ACRN components
|
||||
|
||||
The steps above place you inside the container and give you access to
|
||||
the Project ACRN repository you cloned earlier. You can now build any
|
||||
of the components. Here are a few examples:
|
||||
```
|
||||
# make hypervisor PLATFORM=uefi
|
||||
# make devicemodel
|
||||
# make tools
|
||||
```
|
||||
|
||||
If you want to build it all, simply do:
|
||||
```
|
||||
# make PLATFORM=uefi
|
||||
```
|
||||
|
||||
You can do this for all build combinations.
|
||||
All the build dependencies and tools are pre-installed in the container as well as a
|
||||
couple of useful tools (`git` and `vim`) so you can directly edit files to experiment
|
||||
from within the container.
|
||||
|
||||
The tools to build the ACRN documentation is (still) missing from these containers.
|
38
.travis.yml
38
.travis.yml
@ -1,38 +0,0 @@
|
||||
sudo: required
|
||||
|
||||
language: c
|
||||
|
||||
env:
|
||||
global:
|
||||
- OS_TESTED_CL="clearlinux"
|
||||
- OS_TESTED_UBUNTU="ubuntu16.04"
|
||||
- OS_TESTED_FEDORA="fedora28"
|
||||
|
||||
matrix:
|
||||
- RELEASE=0
|
||||
PLATFORM=sbl
|
||||
|
||||
- RELEASE=1
|
||||
PLATFORM=sbl
|
||||
|
||||
- RELEASE=0
|
||||
PLATFORM=uefi
|
||||
|
||||
- RELEASE=1
|
||||
PLATFORM=uefi
|
||||
|
||||
services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- docker build -t ${OS_TESTED_CL} -f .travis-dockerfiles/Dockerfile.${OS_TESTED_CL} .
|
||||
- docker build -t ${OS_TESTED_UBUNTU} -f .travis-dockerfiles/Dockerfile.${OS_TESTED_UBUNTU} .
|
||||
- docker build -t ${OS_TESTED_FEDORA} -f .travis-dockerfiles/Dockerfile.${OS_TESTED_FEDORA} .
|
||||
- docker images
|
||||
|
||||
install: true
|
||||
|
||||
script:
|
||||
- docker run -v $PWD:/root/acrn ${OS_TESTED_CL} /bin/bash -c "make clean && make PLATFORM=$PLATFORM RELEASE=$RELEASE"
|
||||
- docker run -v $PWD:/root/acrn ${OS_TESTED_UBUNTU} /bin/bash -c "make clean && make PLATFORM=$PLATFORM RELEASE=$RELEASE"
|
||||
- docker run -v $PWD:/root/acrn ${OS_TESTED_FEDORA} /bin/bash -c "make clean && make PLATFORM=$PLATFORM RELEASE=$RELEASE"
|
Loading…
Reference in New Issue
Block a user