Skip to content

manjaro-libhybris/manjaro-arm-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Manjaro libhybris Tools

Contains scripts and files needed to build and manage manjaro libhybris packages and images.

Dependencies

These scripts rely on certain packages, other than what's in the base package group, to be able to function. These packages are:

  • parted (arch repo)
  • libarchive (arch repo)
  • git (arch repo)
  • binfmt-user-static (AUR) or manjaro-arm-qemu-static (manjaro repo)
  • dosfstools (arch repo)
  • pacman (arch repo)
  • polkit (arch repo)
  • gnugpg (arch repo)
  • wget (arch repo)
  • systemd-nspawn with support for --resolv-conf=copy-host (arch repo)

Optional Dependencies

  • bmap-tools (AUR or manjaro repo) (for BMAP support in buildarmimg)

Installation (Manjaro based distributions only)

From github (tagged or GIT version)

  • Download the .zip or .tar.gz file from https://github.com/manjaro-libhybris/manjaro-arm-tools.
  • Extract it.
  • Copy the contents of lib/ to /usr/share/manjaro-arm-tools/lib/.
  • Copy the contents of bin/ to /usr/bin/. Remember to make them executable.
  • Create /var/lib/manjaro-arm-tools/pkg folder.
  • Create /var/lib/manjaro-arm-tools/img folder.
  • Create /var/lib/manjaro-arm-tools/tmp folder.
  • Create /var/cache/manjaro-arm-tools/img folder.
  • Create /var/cache/manjaro-arm-tools/pkg folder.
  • Install binfmt-qemu-static package and make sure systemd-binfmt is running

Usage

buildarmpkg

This script is used to create packages for ARM architectures. It assumes you have filled out the PACKAGER section of your /etc/makepkg.conf.

Options inside [ ] are optional. Use -h to see what the defaults are.

Syntax

sudo buildarmpkg -p package [-a architecture] [-k] [-i package file] [-b branch]

To build an aarch64 package against arm-unstable branch use the following command:

sudo buildarmpkg -p package -a aarch64 -b unstable

You can also build any packages, which will use the aarch64 architecture to build from.

sudo buildarmpkg -p package -a any

The built packages will be copied to $PKGDIR as specified in /usr/share/manjaro-arm-tools/lib/manjaro-arm-tools.conf and placed in a subdirectory for the respective architecture. Default package destination is /var/cache/manjaro-arm-tools/pkg/.

buildarmimg

Supported devices:

  • halium-9
  • halium-10
  • halium-11
  • xiaomi-onclite
  • xiaomi-lavender
  • xiaomi-miatoll
  • xiaomi-dandelion
  • google-sargo
  • samsung-starqlte

Supported editions:

  • minimal
  • phosh
  • nemomobile

This script will compress the image file and place it in /var/cache/manjaro-arm-tools/img/

Profiles that gets used are from this github repository.

Syntax

sudo buildarmimg [-d device] [-e edition] [-v version] [-n] [-x] [-i package-file.pkg.tar.xz] [-b branch] [-m]

buildrootfs

This script does exactly what it says it does. It builds a very small rootfs, to be used by buildarmimg. Right now only supports aarch64.

Syntax

sudo buildrootfs

To build an aarch64 rootfs:

sudo buildrootfs

A log is located at /var/log/manjaro-arm-tools/buildrootfs-$(date +%Y-%m-%d-%H.%M).log

getarmprofiles

This script will just clone or update the current profile list in /usr/share/manjaro-arm-tools/profiles/. So nothing fancy.

This would enable users to clone the profiles repository, make any changes they would like to their images and then build them locally. So if you made changes to the profiles yourself, don't run getarmprofiles and you will still have your edits.

But if you messed up your profiles somehow, you can start with the repo ones with:

sudo getarmprofiles -f

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages