Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cbrake/master #37

Merged
merged 2 commits into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ fi # if -e ${OE_ENV_FILE}
# UPDATE_ALL() - Make sure everything is up to date
###############################################################################
yoe_update_all() {
CWD=`pwd`
CWD=$(pwd)
cd ${OE_BASE}
git pull && git submodule sync && git submodule update
cd $CWD
Expand Down Expand Up @@ -387,7 +387,7 @@ yoe_clean_sstate() {
}

# Docker integration
# set DOCKER_REPO to something like cbrake/oe-build
# set DOCKER_REPO to something like yoedistro/yoe-build:stretch
# Note, set DOCKER_REPO outside of envsetup.sh, otherwise
# it will get set in container, which is not what you want.
# local.sh is a good place to set DOCKER_REPO
Expand Down Expand Up @@ -430,11 +430,20 @@ bitbake() {
# Machine independent install scripts
###############################################################################

yoe_check_install_dependencies() {
if ! pv -V 1>/dev/null; then
echo "ERROR: Please install the pv utility (http://www.ivarch.com/programs/pv.shtml)"
return 1
fi
}

# write a WIC image to media (SD, USB, etc)
yoe_install_wic_image() {
yoe_install_image() {
DRIVE=$1
IMAGE_NAME=$2

yoe_check_install_dependencies || return 1

if [ ! $DRIVE ] || [ ! $IMAGE_NAME ]; then
echo "Usage: yoe_install_wic_image /dev/sdX image_name"
echo "Warning, make sure you specify your SD card and not a workstation disk"
Expand Down
5 changes: 1 addition & 4 deletions local.sh.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,4 @@
# export HOST_IP=10.10.10.10

# configure docker container to run bitbake in
#export DOCKER_REPO=cbrake/oe-build:stretch



#export DOCKER_REPO=yoedistro/yoe-build:stretch