Created
April 30, 2014 16:38
-
-
Save kergoth/11432097 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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