lappaport / fenix

One-stop script set to build Ubuntu/Debian images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

One-stop script set to build Ubuntu/Debian images

License:GNU General Public License v2.0


Languages

Language:C 88.3%Language:Shell 4.7%Language:GLSL 3.8%Language:Makefile 1.6%Language:Batchfile 0.7%Language:PHP 0.5%Language:CMake 0.2%Language:C++ 0.1%Language:Dockerfile 0.1%Language:Elixir 0.0%