Skip to content

Instantly share code, notes, and snippets.

@kergoth

kergoth/.env Secret

Last active September 30, 2016 16:22
Show Gist options
  • Save kergoth/f5f8f5361f2c1ca7817c105cfb58931e to your computer and use it in GitHub Desktop.
Save kergoth/f5f8f5361f2c1ca7817c105cfb58931e to your computer and use it in GitHub Desktop.
bitbake docker bits
COREBASE="$PWD"
PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
alias ls="ls --color=auto"
alias mktemp="/usr/bin/mktemp"
bitbake () {
docker run --rm -it -v "$PWD:$PWD" -v "$COREBASE/..:$COREBASE/.." -v ~/.ssh:/home/build/.ssh -v "$XDG_CONFIG_HOME/git:/home/build/.config/git" cbrake/oe-build /bin/bash -c "cd \"$PWD\" && env \"PATH=$PATH\" \"BUILDDIR=$BUILDDIR\" \"BB_ENV_EXTRAWHITE=$BB_ENV_EXTRAWHITE\" bitbake \"\$@\"" - "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment