EO-College/sarbian

Script to prepare image build environment

Opened this issue · 0 comments

Add a script to setup the build environment, i.e. installing packages required for building the image and the installer.

Features of the script:

  • install packages for live build:
    • live-build
      - build external packages:
    • ASF MapReady
    • Oracle JDK (at least i386)
    • PolSAR Pro
    • SNAP i386 version
      - [ ] download SNAP installer
      - [ ] place package files in sarbian-xfce/config/packages.chroot
      - [ ] place SNAP and OST installer in sarbian-xfce/config/includes.chroot/usr/local/bin

The script must be able handle situations in which any part of the result is already fulfilled.

The script will need some options to control how much of the build preparation should be rerun and what should be included/excluded.

  • clean-all:
    • remove installers from includes.chroot
    • remove packages from packages.chroot
    • remove build, cache, pkg directories
    • rerun all package-* and download-* scripts

Currently, most download functionality is able to work with the local cache folder. This needs to be extended to pkg dir.

Also, the cleanup script should be more fine-grained.

  • Each task script should be able to:

    • see, if software is built and in build tree: do nothing
    • option clean: clean build tree for this software, build software new, but do not redownload, use local cache (if possible)
    • option clean-cache: build software new and redownload (ignore/delete cache)