Debian Build Release Flexbuild

From Variscite Wiki
Revision as of 19:59, 26 May 2025 by Luan (talk | contribs) (Created page with "== FlexBuild Overview == FlexBuild is a component-oriented lightweight build system and integration platform with capabilities of flexible, easy-to-use, scalable system build and distro deployment. Users can use FlexBuild to easily build Debian-based RootFS, Linux kernel, BSP components and miscellaneous userspace applications (e.g. graphics, multimedia, networking, connectivity, security, AI/ML, robotics, etc) against Debian-based library dependencies to streamline th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

FlexBuild Overview

FlexBuild is a component-oriented lightweight build system and integration platform with capabilities of flexible, easy-to-use, scalable system build and distro deployment.

Users can use FlexBuild to easily build Debian-based RootFS, Linux kernel, BSP components and miscellaneous userspace applications (e.g. graphics, multimedia, networking, connectivity, security, AI/ML, robotics, etc) against Debian-based library dependencies to streamline the system build with efficient CI/CD.

With flex-installer, users can also easily install various distros to the target storage device (SD/eMMC card or USB/SATA disk) on the target board or on a host machine.

Build Environment

  • Cross-build in Debian Docker container hosted on x86 Ubuntu or any other distro for arm64 target
  • Cross-build on x86 host machine running Debian 12 for arm64 target
  • Native-build on ARM board running Debian for arm64 target

Host System Requirement

  • Docker hosted on Ubuntu LTS host (e.g. 22.04, 20.04) or any other distro
 Refer to docker-setup.  
 Users can run `bld docker` to create a Debian docker and build inside the container.
  • Debian 12 host
 Refer to host_requirement.

Supported Distro for Target (arm64)

  • Debian-based userland (desktop, server)

FlexBuild Usage

$ cd flexbuild
$ . setup.env          (in host environment)
$ bld docker           (create or attach to docker)
$ . setup.env          (in docker environment)
$ bld host-dep         (install host dependent packages)

Build Desktop Debian Image

After the FlexBuild setup, you can skip the full setup and just run:

$ var_build_image imx8mm-var-dart debian:desktop "uboot linux"

Example usage:

Usage: var_build_image <machine> <components> <distro> [options]

Options:
  --clean     Clean the specified distribution
  --cleanall  Clean all build environments
  --config    Specify custom config file (default: sdk-var.yml)

Supported Debian distributions:
  debian:base    - Minimal Debian installation
  debian:server  - Debian with server packages
  debian:desktop - Debian with desktop environment

Examples:
  var_build_image imx8mm-var-dart debian:desktop "uboot linux"
  var_build_image imx8mm-var-dart debian:desktop --clean
  var_build_image --cleanall

More Info

Please refer to the following resources:


Internal Documentation: