From: Richard Weinberger Date: Wed, 3 May 2023 13:17:04 +0000 (+0200) Subject: Update README X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7ba182be14942f60f1721a361fea1d7d9b51f2e4;p=users%2Frw%2Fkaktus.git Update README Signed-off-by: Richard Weinberger --- diff --git a/README b/README index 4e1da90..0dd6ccf 100644 --- a/README +++ b/README @@ -1,50 +1,9 @@ -Required Packages for the Build Host ------------------------------------- - -See https://docs.yoctoproject.org/ref-manual/system-requirements.html?highlight=zypper#required-packages-for-the-build-host - -OR - -Debian/Ubuntu: - -$ apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ - build-essential chrpath socat cpio python3 python3-pip python3-pexpect \ - xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ - pylint3 xterm make xsltproc docbook-utils fop dblatex xmlto zstd liblz4-tool - -Fedora: - -$ dnf install gawk make wget tar bzip2 gzip python3 unzip perl patch \ - diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \ - ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \ - python3-pexpect findutils which file cpio python python3-pip xz python3-GitPython \ - python3-jinja2 SDL-devel xterm rpcgen docbook-style-dsssl docbook-style-xsl \ - docbook-dtds docbook-utils fop libxslt dblatex xmlto zstd lz4 - -SUSE: - -$ zypper install python gcc gcc-c++ git chrpath make wget python-xml \ - diffstat makeinfo python-curses patch socat python3 python3-curses tar python3-pip \ - python3-pexpect xz which python3-Jinja2 Mesa-libEGL1 libSDL-devel xterm rpcgen pip3 \ - install GitPython dblatex xmlto zstd lz4 - - -When not building one of the above distros, please use docker or some chroot. - -This repo contains an example Ubuntu container. - -$ cd docker -$ docker build --build-arg UID=$(id -u) -t kaktus_builder . -$ docker run -it -v /path/to/yocto-rpi-example:/home/builder/yocto kaktus_builder -container$ cd /home/builder/yocto/ - Installing KAS -------------- -$ git clone https://github.com/siemens/kas.git -$ cd kas -$ git checkout 3.0.2 -$ sudo pip3 install . +$ python3 -m pip install --user kas + +Also make sure to have either podman or docker installed. Building -------- @@ -52,7 +11,7 @@ Building Open kaktus.yml and set machine: either to raspberrypi4-64 or raspberrypi3-64. Other variants should work too, but are untested. -$ kas build kaktus.yml +$ kas-container build kaktus.yml The final image will be build/tmp/deploy/images/raspberrypi3-64/kaktus-image-raspberrypi3-64.wic.bz2