Project

General

Profile

Actions

Bug #1026

closed

cross.sh in app builds has hard coded toolchain prefix

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

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

100%

Estimated time:
Severity:
01 - Critical

Description

This was discovered in RM #1025
All app's that use cross.sh need this update.

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.

Apps that need this update
  1. appmgr
  2. launcher
  3. piboxd
  4. piclock
  5. pipics
  6. videofe
  7. musicfe
  8. picam
  9. pixm
  10. pibox-network-config
  11. libpibox
  12. raspi2fb
  13. pistore
  14. pinet
  15. pidialer

After testing the app build manually it should also be tested under the metabuild.


Related issues

Blocks PiBox - Feature #1025: Test pisentry build on RPi 4ClosedHammel22 Aug 2023

Actions
Actions

Also available in: Atom PDF