Building 12.0.1 on RPi4 Slackware aarch64 shows x86 in stead of arm in configuration

  • PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 make image


    I am trying to build LibreELEC 12.0.1 on a RPi4 with Slackware aarch64.

    To my surprise
    PROJECT=RPi
    ARCH=aarch64
    DEVICE=RPi4
    make image

    shows as stdout:

    Buildsystem configuration:
    ======================================================
    - CPU: x86-64
    - Kernel Architecture: x86

    I don't understand why it will build for x86. How can I force it to build for aarch64?

    Edited once, last by CvH: Merged a post created by Johpin into this post. (December 24, 2024 at 1:42 PM).

  • Buildsystem configuration:
    ======================================================
    - CPU: x86-64
    - Kernel Architecture: x86

    that tells you that you are building at a x86-64 machine, nothing more

    so you build a aarch64 image at a x86-64 machine :)

  • that tells you that you are building at a x86-64 machine, nothing more

    so you build a aarch64 image at a x86-64 machine :)

    The build machine is a Raspberry Pi 4B with 4 GB RAM, not x86-64. The LibreELEC version schould be for a RPI4 aarch64.

    The command "make image" shows as stdout also:

    '/home/john/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/build/kernel-firmware-20240312/.copied-firmware/intel/ibt-hw-37.8.bseq' -> '/home/john/LibreELEC.tv/build.LibreELEC-Generic.x86_64-12.0-devel/install_pkg/kernel-firmware-20240312/usr/lib/kernel-overlays/base/lib/firmware/intel/ibt-hw-37.8.bseq'

    indicating it is building a LibreELEC version for Intel x86

  • If you really did:

    Bash
    PROJECT=RPi
    ARCH=aarch64
    DEVICE=RPi4
    make image

    You do get a X86 build. Put the command in one one line:

    Bash
    PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 make image

    or export the variables:

    Bash
    export PROJECT=RPi
    export ARCH=aarch64
    export DEVICE=RPi4
    make image
  • Thanks for your suggestion!

    After applying" PROJECT=RPi ARCH=aarch64 DEVICE=RPi4 make image" in one line it build LibreELEC-RPi4.aarch64-12.0-devel-20241225124644-7e0b15d.img.gz on Slackware 15 aarch64 successfully.