Skip to content

Instantly share code, notes, and snippets.

@kergoth
Created April 30, 2014 16:38
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 kergoth/11432097 to your computer and use it in GitHub Desktop.
Save kergoth/11432097 to your computer and use it in GitHub Desktop.
if not set -q SCHROOT_SESSION_ID
function bitbake
chroot_cmd bitbake $argv
end
function bb
chroot_cmd sh -c 'eval "$(~/bb/bin/bb init -)"; bb "$@"' sh $argv
end
if not set -q bitbake_default_chroot
set -g bitbake_default_chroot centos-6-64
end
function bitbake_set_chroot
set -g bitbake_default_chroot $argv[1]
end
function chroot_cmd
schroot -p -c $bitbake_default_chroot -- sh -c '. /scratch/buildtools/environment-setup-i686-melsdk-linux; env BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SCHROOT_CHROOT_NAME" "$@"' sh $argv
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment