Closed gmacario closed 6 years ago
Testing branch locally on gmacario@mv-linux-powerhorse
cd ~/github/gmacario/easy-build
git fetch --all --prune
git checkout feature/update-ubuntu-16.04
docker build -t gmacario/build-yocto:pull-263 build-yocto/
Run the container
mkdir -p ~/tmp/new1 && cd ~/tmp/new1
docker run -ti --volume=${PWD}/shared:/home/build/shared gmacario/build-yocto:pull-263
Clone the Yocto metadata
mkdir -p ~/shared && sudo chown build.build ~/shared
cd ~/shared
git clone -b pyro git://git.yoctoproject.org/poky
Create the build environment and build the image
cd ~/shared && source ~/shared/poky/oe-init-build-env ~/shared/build-test01
bitbake -k core-image-minimal
Result:
gmacario@mv-linux-powerhorse:~/tmp/new1 $ docker run -ti --volume=${PWD}/shared:/home/build/shared gmacario/build-yocto:pull-261
build@88d35d2b92fb:~$ mkdir -p ~/shared && sudo chown build.build ~/shared
build@88d35d2b92fb:~$ cd ~/shared
git clone -b pyro git://git.yoctoproject.org/pokybuild@88d35d2b92fb:~/shared$ git clone -b pyro git://git.yoctoproject.org/poky
Cloning into 'poky'...
remote: Counting objects: 378698, done.
remote: Compressing objects: 100% (90575/90575), done.
remote: Total 378698 (delta 281629), reused 378570 (delta 281501)
Receiving objects: 100% (378698/378698), 136.20 MiB | 2.91 MiB/s, done.
Resolving deltas: 100% (281629/281629), done.
Checking connectivity... done.
build@88d35d2b92fb:~/shared$ cd ~/shared && source ~/shared/poky/oe-init-build-env ~/shared/build-test01
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.
You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.
The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
http://yoctoproject.org/documentation
For more information about OpenEmbedded see their website:
http://www.openembedded.org/
### Shell environment set up for builds. ###
You can now run 'bitbake <target>'
Common targets are:
core-image-minimal
core-image-sato
meta-toolchain
meta-ide-support
You can also run generated qemu images with a command like 'runqemu qemux86'
build@88d35d2b92fb:~/shared/build-test01$ bitbake -k core-image-minimal
Parsing recipes: 100% |#######################################################################################################################| Time: 0:00:24
Parsing of 831 .bb files complete (0 cached, 831 parsed). 1300 targets, 48 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.34.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "i586-poky-linux"
MACHINE = "qemux86"
DISTRO = "poky"
DISTRO_VERSION = "2.3.2"
TUNE_FEATURES = "m32 i586"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "pyro:072430b9b3a78b318b66371c36e2986d2ed5cba4"
NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/releases/uninative/1.7/x86_64-nativesdk-libc.tar.bz2;sha256sum=ed033c868b87852b07957a4400f3b744c00aef5d6470346ea1a59b6d3e03075e
--2017-09-15 12:25:42-- http://downloads.yoctoproject.org/releases/uninative/1.7/x86_64-nativesdk-libc.tar.bz2
Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.29.63
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2286285 (2.2M) [application/octet-stream]
Saving to: ‘/home/build/shared/build-test01/downloads/uninative/ed033c868b87852b07957a4400f3b744c00aef5d6470346ea1a59b6d3e03075e/x86_64-nativesdk-libc.tar.bz2’
2017-09-15 12:25:48 (373 KB/s) - ‘/home/build/shared/build-test01/downloads/uninative/ed033c868b87852b07957a4400f3b744c00aef5d6470346ea1a59b6d3e03075e/x86_64-nativesdk-libc.tar.bz2’ saved [2286285/2286285]
Initialising tasks: 100% |####################################################################################################################| Time: 0:00:05
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: libpng-native-1.6.28-r0 do_fetch: Failed to fetch URL http://distfiles.gentoo.org/distfiles/libpng-1.6.28.tar.xz, attempting MIRRORS if available
WARNING: v86d-0.1.10-r2 do_fetch: Failed to fetch URL http://distfiles.gentoo.org/distfiles/v86d-0.1.10.tar.bz2, attempting MIRRORS if available
NOTE: Tasks Summary: Attempted 2426 tasks of which 6 didn't need to be rerun and all succeeded.
Summary: There were 2 WARNING messages shown.
build@88d35d2b92fb:~/shared/build-test01$
LGTM, merging
Based on previous PR https://github.com/gmacario/easy-build/pull/261
Thanks @zzeroo for his contribution
Signed-off-by: Gianpaolo Macario gianpaolo_macario@mentor.com