Project

General

Profile

Actions

Feature #1025

closed

Test pisentry build on RPi 4

Added by Hammel over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
Systems
Target version:
Start date:
22 Aug 2023
Due date:
% Done:

100%

Estimated time:
Severity:
01 - Critical

Description

Check that the PiSentry apps, built against the RPi 4 staging tree and toolchain, run on the RPi 4.


Related issues

Blocked by PiBox - Bug #1026: cross.sh in app builds has hard coded toolchain prefixClosedHammel23 Aug 2023

Actions
Actions #1

Updated by Hammel over 1 year ago

  • % Done changed from 0 to 10

Failure: appmgr fails to build.

gnu/stubs-soft.h: No such file or directory

This is because the toolchain prefix is hardcoded in the cross.sh script. It needs to be extracted from the $TC directory from the *-gcc.

This change will need to be applied to ALL apps, which will be quite a bit of work.

Actions #2

Updated by Hammel over 1 year ago

The cross.sh script should identify the toolchain prefix like so:

TCPREFIX=$(cd ${TC}/bin && ls -1 *gcc | sed 's/-gcc//')

Then use that in the configure command.

PKG_CONFIG_PATH="" \
    PKG_CONFIG_LIBDIR=${STAGING_DIR}/usr/lib/pkgconfig:${STAGING_DIR}/usr/share/pkgconfig \
    PKG_CONFIG_SYSROOT_DIR=$STAGING_DIR \
    PATH=$TOOLCHAIN/bin:$PATH \
    CFLAGS="-g --sysroot=$STAGING_DIR -I$STAGING_DIR/usr/lib/glib-2.0/include -I$STAGING/usr/lib/gtk-2.0/include" \
    LDFLAGS="-L$STAGING_DIR/usr/lib -L$STAGING_DIR/lib --sysroot=$STAGING_DIR/" \
    ./configure --host="${TCPREFIX}" 

Tested this against appmgr and it appears to work for RPi4. Need to verify it works for RPi2 and RPi.

Actions #3

Updated by Hammel over 1 year ago

Verified - works with all three hw builds.

Now to verify it works with the meta build.

Actions #4

Updated by Hammel over 1 year ago

  • Related to Bug #1026: cross.sh in app builds has hard coded toolchain prefix added
Actions #5

Updated by Hammel over 1 year ago

  • Related to deleted (Bug #1026: cross.sh in app builds has hard coded toolchain prefix)
Actions #6

Updated by Hammel over 1 year ago

  • Blocked by Bug #1026: cross.sh in app builds has hard coded toolchain prefix added
Actions #7

Updated by Hammel about 1 year ago

  • Status changed from In Progress to Closed
  • % Done changed from 10 to 100

Tested on RPi4 hardware with TFT display. Works perfectly.

All updates have been committed and pushed.

Closing issue.

Actions

Also available in: Atom PDF