Skip to content

Instantly share code, notes, and snippets.

@mabnhdev
Created April 29, 2019 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mabnhdev/42d4775f51df4bbe675ce0a0c9c4c4b0 to your computer and use it in GitHub Desktop.
Save mabnhdev/42d4775f51df4bbe675ce0a0c9c4c4b0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Repoduce boost build failure x86_64 x32 ABI in thud
BASEDIR=$(realpath $HOME)
PROJDIR=$BASEDIR/boost-issue-x32-repro
BRANCH=thud
[ -e $PROJDIR ] || git -C $BASEDIR clone git://git.yoctoproject.org/poky $PROJDIR -b $BRANCH
[ -e $PROJDIR/meta-intel ] || git -C $PROJDIR clone git://git.yoctoproject.org/meta-intel -b $BRANCH
cd $PROJDIR
. oe-init-build-env
grep meta-intel conf/bblayers.conf || bitbake-layers add-layer $PROJDIR/meta-intel
grep corei7 conf/local.conf || echo 'MACHINE = "intel-corei7-64"' >> conf/local.conf
grep x86-64-x32 conf/local.conf || echo 'DEFAULTTUNE = "x86-64-x32"' >> conf/local.conf
bitbake boost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment