## # Yocto Project Dev Day Prague 2017 # crops session # Tim Orling # # workflow for the poky container (also works with oe core) # # These instructions are tailored for Mac OS X # Windows and Linux will differ # # download Docker poky container # default is based on Ubuntu, other distros are available docker pull crops/poky # create volume (for sanity, different name than the eSDK session) docker volume create --name pokyvolume # set proper ownership docker run -it --rm -v pokyvolume:/workdir busybox chown -R 1000:1000 /workdir # download Docker samba container docker pull crops/samba # create the instance (for sanity, different name than the eSDK session) # NOTE: the eSDK instance of samba cannot also be running or the host port # will already be in use docker create -t -p 445:445 --name samba2 -v pokyvolume:/workdir crops/samba docker start samba2 # Mac will not allow us to connect to loopback/127.0.0.1 for samba # workaround (for sanity, different ip addr than eSDK session) sudo ifconfig lo0 127.0.0.3 alias up # # Open the Finder and hit Command-K # In the "Server Address" box, type smb://127.0.0.3/workdir # and hit "Connect" # When prompted, choose to login as Guest # # run the poky container docker run --rm -it -v pokyvolume:/workdir crops/poky --workdir=/workdir # you will now be at a bash prompt _inside_ the Docker container # clone poky (or your desired OpenEmbedded layers) git clone git://git.yoctoproject.org/poky # setup the build environment . ./poky/oe-init-build-env build-devday # build something bitbake quilt-native # as an excercise for the user: # run through the devtool examples in the container # Profit! # # Extra credit: run a different distro container docker pull crops/poky:debian-9 # run the debian-9 poky container docker run --rm -it -v pokyvolume:/workdir crops/poky:debian-9 --workdir=/workdir # we already cloned poky in this workdir # setup the build environment . ./poky/oe-init-build-env build-with-debian # build something bitbake quilt-native # Profit!