/fenix

One-stop script set to build Ubuntu/Debian images

Primary LanguageCGNU General Public License v2.0GPL-2.0

Fenix script set to build Ubuntu/Debian images

Documentation Licence Version PRs Welcome

Supported build host:

  • Ubuntu Bionic 18.04 x64
  • Docker

How to use

  • Install essential packages
$ sudo apt-get install git make lsb-release qemu-user-static
  • Clone Fenix repository
$ mkdir -p ~/project/khadas
$ cd ~/project/khadas
$ git clone --depth 1 https://github.com/khadas/fenix
$ cd fenix
  • Setup build environment
$ source env/setenv.sh
  • Build image
$ make

Somethings with Redhat series

  • Close SELinux
$ vim /etc/selinux/config
$ SELINUX=enforcing --> SELINUX=disabled
$ sudo reboot

Build in Docker

  • Build Docker image
$ cd fenix
$ docker build -t fenix .
  • Build image in Docker

Run fenix in docker.

$ docker run -it --name fenix -v $(pwd):/home/khadas/fenix -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --privileged --device=/dev/loop0:/dev/loop0 --cap-add SYS_ADMIN fenix

We are in Docker container now, start to build.

khadas@919cab43f66d:~/fenix$ source env/setenv.sh
khadas@919cab43f66d:~/fenix$ make

To restart the Docker container a second time.

$ docker start fenix
$ docker exec -ti fenix bash