Skip to content

openatv/enigma2

Repository files navigation

openATV 7.4

Build status

enigma2 build

Active Build Status - shows which box is currently being built

SonarCloud status

Vulnerabilities Security Rating Bugs Reliability Rating Maintainability Rating Quality Gate Status

Translation status

Translation status

Build server specs

Current OS

Ubuntu 24.04 LTS (GNU/Linux 6.8.0-31-generic x86_64)

Hardware requirements

RAM: 16GB

SWAP: 8GB

CPU: Multi core\thread Model

HDD: for Single Build 250GB Free, for Multibuild 500GB or more

Git repositories involved

DOXYGEN Documentation

Build instructions

  1. Install required packages

    sudo apt-get install -y autoconf automake bison bzip2 chrpath coreutils cpio curl cvs debianutils default-jre default-jre-headless diffstat flex g++ gawk gcc gcc-12 gcc-multilib g++-multilib gettext git gzip help2man info iputils-ping java-common libc6-dev libglib2.0-dev libncurses-dev libperl4-corelibs-perl libproc-processtable-perl libsdl1.2-dev libserf-dev libtool libxml2-utils make ncurses-bin patch perl pkg-config psmisc python3 python3-git python3-jinja2 python3-pexpect python3-pip python3-setuptools quilt socat sshpass subversion tar texi2html texinfo unzip wget xsltproc xterm xz-utils zip zlib1g-dev zstd fakeroot lz4 git-lfs
  2. Set python3 as preferred provider for python

    sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
    
    sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2
    
    sudo update-alternatives --config python
    ↳ Select python3
  3. Set your shell to /bin/bash

    sudo ln -sf /bin/bash /bin/sh
    
  4. Modify max_user_watches

    echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
    
    sudo sysctl -n -w fs.inotify.max_user_watches=524288
  5. Remove AppArmor to accelerate the build process.

    sudo apparmor_status
    
    sudo systemctl stop apparmor
    
    sudo systemctl disable apparmor
    
    sudo apt purge apparmor
    
  6. Add new user openatvbuilder

    sudo adduser openatvbuilder
  7. Switch to new user openatvbuilder

    su - openatvbuilder
  8. Add your git user and email

    git config --global user.email "[email protected]"
    
    git config --global user.name "Your Name"
  9. Create folder openatv7.4

    mkdir -p openatv7.4
  10. Switch to folder openatv7.4

    cd openatv7.4
  11. Clone oe-alliance repository

    git clone https://github.com/oe-alliance/build-enviroment.git -b 5.4
  12. Switch to folder build-enviroment

    cd build-enviroment
  13. Update build-enviroment

    make update
  14. Finally, you can either:

  • Build an image with feed (build time 5-12h)

    MACHINE=zgemmah9combo DISTRO=openatv DISTRO_TYPE=release make image
  • Build an image without feed (build time 1-2h)

    MACHINE=zgemmah9combo DISTRO=openatv DISTRO_TYPE=release make enigma2-image
  • Build the feeds

    MACHINE=zgemmah9combo DISTRO=openatv DISTRO_TYPE=release make feeds
  • Build specific packages

    MACHINE=zgemmah9combo DISTRO=openatv DISTRO_TYPE=release make init
    
    cd builds/openatv/release/zgemmah9combo/
    
    source env.source
    
    bitbake nfs-utils rpcbind ...