]> code.ossystems Code Review - openembedded-core.git/log
openembedded-core.git
8 years agopiglit: Backport linker flag patch
Jussi Kukkonen [Tue, 13 Sep 2016 08:46:40 +0000 (11:46 +0300)]
piglit: Backport linker flag patch

Use the correct build system patch instead of adding linker flags
in recipe. Also update upstream status for the other build patch.

Fixes [YOCTO #9851].

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fix a race issue on lockdir
Robert Yang [Wed, 14 Sep 2016 09:45:57 +0000 (02:45 -0700)]
runqemu: fix a race issue on lockdir

There might be a race issue when multi runqemu processess are
running at the same time:
| Traceback (most recent call last):
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/scripts/runqemu", line 920, in <module>
|     ret = main()
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/scripts/runqemu", line 911, in main
|     config.setup_network()
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/scripts/runqemu", line 760, in setup_network
|     self.setup_tap()
|   File "/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-ipk/build/scripts/runqemu", line 697, in setup_tap
|     os.mkdir(lockdir)
| FileExistsError: [Errno 17] File exists: '/tmp/qemu-tap-locks'

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agopython-smartpm: use md5 as the digest for rpm_sys channel
Markus Lehtonen [Wed, 14 Sep 2016 08:46:06 +0000 (11:46 +0300)]
python-smartpm: use md5 as the digest for rpm_sys channel

Use md5 sum instead of mtime as the "digest" method for rpm_sys channel.
The digest is used to determine if the channel has been updated. It was
found out that mtime was not a reliable digest. On some systems mtime
of the rpm db does not get updated after every transaction if transactions
(smart install / remove commands) are fired in quick succession. As a
consequence smartpm cache and rpm db get out of sync.

[YOCTO #10244]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolib/oe/copy_buildsystem: fix building eSDK with indirect paths in BBLAYERS
Paul Eggleton [Wed, 14 Sep 2016 05:09:52 +0000 (17:09 +1200)]
lib/oe/copy_buildsystem: fix building eSDK with indirect paths in BBLAYERS

Indirect paths (e.g. ${TOPDIR}/../meta-something) do generally work if
used in BBLAYERS in bblayers.conf. However, if you built an extensible
SDK with this configuration then the creation of the workspace within
the SDK using devtool in do_populate_sdk_ext failed. This is because
the copy_buildsystem code was no longer correctly recognising that the
core layer ("meta") was part of a repository (e.g. openembedded-core /
poky) that should be shipped together - because of the indirection - and
thus it was splitting out the meta directory, and a number of places in
the code assume that the meta directory is next to the scripts
directory. Use os.path.abspath() to flatten out any indirections.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoclasses/populate_sdk_ext: ensure we clean the right temporary TMPDIR path
Paul Eggleton [Wed, 14 Sep 2016 05:09:51 +0000 (17:09 +1200)]
classes/populate_sdk_ext: ensure we clean the right temporary TMPDIR path

After we run the build system within the eSDK internally as part of the
sstate filtering that happens during do_populate_sdk_ext, we need to
ensure that the TMPDIR created during that process gets deleted. However
we were using the TMPDIR path for the build producing the eSDK which may
not be the same (since that value would typically be filtered out) thus
if the user had set TMPDIR to something other than the default, the
temporary TMPDIR would not be deleted which not only led to extraneous
junk entering the SDK but also failures during install because the
TMPDIR path was different. In order to fix this, force TMPDIR to a known
value during the sstate filtering run so we know what to delete
afterwards.

Fixes [YOCTO #10210].

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoeudev: Add missing pkgconfig dependencies
Richard Purdie [Tue, 13 Sep 2016 13:56:48 +0000 (14:56 +0100)]
eudev: Add missing pkgconfig dependencies

Building eudev from scratch in an sstate build results in configure errors
since the pkg-config macros can't be found. Add in a missing pkg-config
dependency using the appropriate class to avoid such failures.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoautotools: Correctly filter m4 files view to setscene dependencies
Richard Purdie [Tue, 13 Sep 2016 13:56:15 +0000 (14:56 +0100)]
autotools: Correctly filter m4 files view to setscene dependencies

Currently when you run builds from sstate, you can see warnings like:

WARNING: systemd-1_230+gitAUTOINC+3a74d4fc90-r0 do_configure: /data/poky-master/tmp-glibc/sstate-control/manifest-intel-corei7-64-glibc-initial.populate_sysroot not found
WARNING: systemd-1_230+gitAUTOINC+3a74d4fc90-r0 do_configure: /data/poky-master/tmp-glibc/sstate-control/manifest-intel-corei7-64-libgcc-initial.populate_sysroot not found

This is due to co_configure wanting to copy a limited number of m4 macros,
only listed in a recipes DEPENDS but that set is still larger than the set of
recipes which get restored from sstate.

For build determinism and to avoid these warnings, we need to make this
function match what the sstate code does. We really don't want to duplicate
the functionality since keeping things in sync would be hard so we create
a data structure which can be passed into the same underlying function,
setscene_depvalid().

[YOCTO #10030]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agokernel-yocto: remove do_shared_workdir from SRCTREECOVEREDTASKS
André Draszik [Tue, 13 Sep 2016 09:07:10 +0000 (10:07 +0100)]
kernel-yocto: remove do_shared_workdir from SRCTREECOVEREDTASKS

Various recipes depend on the kernel's do_shared_workdir
task, a quick grep suggests all external kernel modules
(via module.bbclass), but also perf, and potentially any
additional headers as outlined in linux-libc-headers.inc
are affected.

Having do_shared_workdir in SRCTREECOVEREDTASKS means this
task is removed when externalsrc is enabled, making all
those recipes fail as the task they depend on,
virtual/kernel:do_shared_workdir, doesn't exist.

Remove do_shared_workdir from SRCTREECOVEREDTASKS so that
all those recipes work even if externalsrc is activated.

According to the comment in here, the reason for
do_shared_workdir to be removed as a task is because it
modifies the source tree, but that doesn't seem to be
case.

Signed-off-by: Andre Draszik <git@andred.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agolinux-yocto/4.1: update to 4.1.32
Bruce Ashfield [Fri, 9 Sep 2016 15:47:51 +0000 (11:47 -0400)]
linux-yocto/4.1: update to 4.1.32

Integrating the korg stable update

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
8 years agolinux-yocto/4.4: update to 4.4.20
Bruce Ashfield [Fri, 9 Sep 2016 15:48:18 +0000 (11:48 -0400)]
linux-yocto/4.4: update to 4.4.20

Integrating the korg -stable release.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
8 years agolinux-yocto/4.8: update to v4.8-rc6
Bruce Ashfield [Mon, 12 Sep 2016 14:27:41 +0000 (10:27 -0400)]
linux-yocto/4.8: update to v4.8-rc6

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
8 years agogtk-doc: require perl-native only if api-documentation feature is enabled
Alexander Kanavin [Thu, 8 Sep 2016 11:49:24 +0000 (14:49 +0300)]
gtk-doc: require perl-native only if api-documentation feature is enabled

This should reduce build times.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoimage.bbclass: also mask debugfs versions of masked images
André Draszik [Mon, 5 Sep 2016 08:33:54 +0000 (09:33 +0100)]
image.bbclass: also mask debugfs versions of masked images

When IMAGE_GEN_DEBUGFS is enabled, and IMAGE_FSTYPES_DEBUGFS is left
at its default (as suggested by local.conf.sample.extended),
recipe parsing fails:

  bitbake kern-tools-native # or anything else for that matter
  ERROR: <poky.git>/meta/recipes-core/images/build-appliance-image_15.0.0.bb: No IMAGE_CMD defined for IMAGE_FSTYPES entry 'debugfs_vmdk' - possibly invalid type name or missing support class
  ERROR: Failed to parse recipe: <poky.git>/meta/recipes-core/images/build-appliance-image_15.0.0.bb

  Summary: There was 1 WARNING message shown.
  Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

i.e. bitbake doesn't even finish parsing...

Since IMAGE_FSTYPES_DEBUGFS is based on IMAGE_FSTYPES, and
since the build-appliance-image is setting IMAGE_FSTYPES
to vmdk, image.bbclass/image_types.bbclass will be trying
to build a debugfs_vmdk, causing the error, as this is not
implemented.

One solution to solving this problem could be as simple as
adding a line
  IMAGE_FSTYPES_DEBUGFS_remove = "vmdk"
to the build-appliance-image recipe, but that is very
specific to the error encountered and carries the risk of
the error being reintroduced in another recipe.

Another solution could be to add 'debugfs_vmdk' to
IMAGE_TYPES_MASKED in image-vm.bbclass, but again, this
approach doesn't seem generic enough.

None of the live and vm type images have an implementation
for building a debugfs version, it doesn't seem to make
sense to build debugfs versions of any of them anyway, and
given IMAGE_TYPES_MASKED appears to be intended for those
image types exclusively, it seems the right approach is to
unconditionally also mask all debugfs_ flavours from
IMAGE_TYPES_MASKED to achieve a generic solution.

Do that so.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoimage.bbclass: do not check size of the debugfs image
André Draszik [Mon, 5 Sep 2016 08:34:42 +0000 (09:34 +0100)]
image.bbclass: do not check size of the debugfs image

The debugfs is supposed to be used in addition to the
normal image for debugging purposes, it doesn't make
sense to artificially limit its maximum size.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agovalgrind: MIPS: Make toolchain basename generic
Zubair Lutfullah Kakakhel [Thu, 8 Sep 2016 13:14:17 +0000 (14:14 +0100)]
valgrind: MIPS: Make toolchain basename generic

For the hard float case, COMPATIBLE_HOST should be set to ".*-linux"
since OE can support multiple distro layers, not just poky.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogst-player: specify PV
Markus Lehtonen [Mon, 12 Sep 2016 10:15:29 +0000 (13:15 +0300)]
gst-player: specify PV

Define PV in order to avoid package version being plain "git". Use the
version number found from configure.ac plus the git revision.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosstate.bbclass: normalize whitelisted paths
Max Krummenacher [Sun, 11 Sep 2016 17:13:20 +0000 (19:13 +0200)]
sstate.bbclass: normalize whitelisted paths

Without this a whitelisted path containing /../ breaks the test for a file
allowed to be provided by more than one recipe.

Noticed when local.conf contains:
DEPLOY_DIR = "${TOPDIR}/../deploy"

|ERROR: core-image-minimal-1.0-r0 do_image_complete: The recipe
| core-image-minimal is trying to install files into a shared area when those
| files already exist. Those files and their manifest location are:
| .../poky/deploy/images/qemux86/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
| Matched in b'manifest-qemux86-linux-yocto.deploy'

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-plugins-good.inc: Fix libv4l2 packageconfig dependency
Carlos Rafael Giani [Sat, 10 Sep 2016 18:14:47 +0000 (20:14 +0200)]
gstreamer1.0-plugins-good.inc: Fix libv4l2 packageconfig dependency

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/populate_sdk_ext: exclude image tasks from locked signatures
Amarnath Valluri [Tue, 6 Sep 2016 13:13:06 +0000 (16:13 +0300)]
classes/populate_sdk_ext: exclude image tasks from locked signatures

Tasks for image recipes cannot be locked and should be excluded from eSDK
generated locked-sigs.inc. get_sdk_install_targets() was not returning right
image targets to be excluded incase of 'minimal' sdk. This change fixes the issue.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/gobject-introspecton-data: lazy assign GI_DATA_ENABLED
Ross Burton [Mon, 12 Sep 2016 11:46:26 +0000 (12:46 +0100)]
classes/gobject-introspecton-data: lazy assign GI_DATA_ENABLED

By letting a recipe assign GI_DATA_ENABLED trivially there is a simple and clear
way to disable gobject-introspection for specific build configurations.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoclasses/gtk-doc: lazy assign GTKDOC_ENABLED
Ross Burton [Mon, 12 Sep 2016 11:46:26 +0000 (12:46 +0100)]
classes/gtk-doc: lazy assign GTKDOC_ENABLED

By letting a recipe assign GTKDOC_ENABLED trivially there is a simple and clear
way to disable gtk-doc for specific build configurations.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: cleanup d.getVar(var, 0)
Robert Yang [Mon, 12 Sep 2016 08:32:08 +0000 (01:32 -0700)]
meta: cleanup d.getVar(var, 0)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agometa: cleanup d.getVar(var, 1)
Robert Yang [Mon, 12 Sep 2016 08:32:07 +0000 (01:32 -0700)]
meta: cleanup d.getVar(var, 1)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotestimage: add createrepo-native to testimage depends
bavery [Fri, 9 Sep 2016 16:25:16 +0000 (09:25 -0700)]
testimage: add createrepo-native to testimage depends

The smart tests need createrepo to be in the native sysroot. It needs
to be one of the depends for testimage.

Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-plugins-bad: Fix packageconfigs and patches
Carlos Rafael Giani [Fri, 26 Aug 2016 18:53:20 +0000 (20:53 +0200)]
gstreamer1.0-plugins-bad: Fix packageconfigs and patches

This reintroduces fixes and changes which were introduced in the original
gstreamer1.0-plugins-bad 1.8.1 upgrade commit.

* packageconfigs changed since GStreamer 1.6.3
  (they often do between minor version increases like 1.6 -> 1.8)
* hls,tinyalsa packageconfigs moved into the .inc file
* vulkan packageconfig dropped since there are no vulkan libraries in OE
  (libxcb alone is not enough)
* reintroduced glimagesink downrank patch (it was removed because it was
  dangling before)
* fixed patch line numbers

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-omx: inherit upstream-version-is-even
Maxin B. John [Fri, 9 Sep 2016 08:06:40 +0000 (11:06 +0300)]
gstreamer1.0-omx: inherit upstream-version-is-even

Since gstreamer1.0-omx follows the GStreamer versioning style, inherit
upstream-version-is-even for checking the upstream version of the package.

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobitbake.conf: Add BBSERVER to HASHBASE_WHITELIST
Ed Bartosh [Fri, 9 Sep 2016 08:02:54 +0000 (11:02 +0300)]
bitbake.conf: Add BBSERVER to HASHBASE_WHITELIST

Using BBSERVER variable in checksum calculations causes
unnecessary rebuilds when running memres bitbake.

Whitelisted BBSERVER variable to prevent this unwanted
behaviour.

[YOCTO #10201]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa: Remove linux user utilized for rpm test.
Edwin Plauchu [Fri, 9 Sep 2016 00:16:04 +0000 (19:16 -0500)]
oeqa: Remove linux user utilized for rpm test.

When trying to re-test smart rpm tests. A fail arises
due to a linux user previously created upon the image.
We've added a few lines to delete such user and his home dir
when finishing test.

[YOCTO #9204]

Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa.buildperf: another fix for splitting 'nevr' string
Markus Lehtonen [Thu, 8 Sep 2016 16:47:46 +0000 (19:47 +0300)]
oeqa.buildperf: another fix for splitting 'nevr' string

When processing buildstats we determine recipe name, epoch, version and
revision from the per-recipe buildstat directory name.  One previous
patch made an assumption that package version starts with a number.
That might not be true because of a packaging mistake or whatever
reason. Thus, if a version starting with a number is not found, fall
back to the "old" method of just taking the second-last dash-delimited
part (the one before revision).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibical: fix build failure after changing machine
Maxin B. John [Thu, 8 Sep 2016 15:46:54 +0000 (18:46 +0300)]
libical: fix build failure after changing machine

libical build QA fails when libical is built for e.g. qemux86-64 already, and
is then built for generic86-64 in a way that install is re-run:

$ MACHINE=qemux86-64 bitbake libical
$ MACHINE=genericx86-64 bitbake -f -Cinstall libical

ERROR: libical-2.0.0-r0 do_populate_sysroot: QA Issue: libical.pc failed
sanity test (tmpdir) in path

[YOCTO #10223]

Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agotiff: Update download URL
Jussi Kukkonen [Thu, 8 Sep 2016 13:35:31 +0000 (16:35 +0300)]
tiff: Update download URL

remotesensing.org domain has been taken over by someone unrelated.
There does not seem to be an up-to-date tiff homepage, but
osgeo.org is a reliable download site.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorpm: remove redundant removals
Ross Burton [Thu, 8 Sep 2016 16:18:18 +0000 (17:18 +0100)]
rpm: remove redundant removals

These were noticed by the use of bashisms (rm *.{foo,bar}) and lots of these rm
commands are deleting files which don't exist in the first place.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agoglibc: remove hard-coded reference to gcc -E
Jérémy Rosen [Wed, 7 Sep 2016 09:08:47 +0000 (11:08 +0200)]
glibc: remove hard-coded reference to gcc -E

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolibpcre: explicitely specify CCLD_FOR_BUILD for this recipe
Jérémy Rosen [Wed, 7 Sep 2016 09:08:49 +0000 (11:08 +0200)]
libpcre: explicitely specify CCLD_FOR_BUILD for this recipe

libpcre uses CCLD_FOR_BUILD as the name of the host command to use for
linking. This is not a standard autotools symbol but particular to this
recipe. We need to set it explicitely

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agorpm: manually cleanup sysck
Jérémy Rosen [Wed, 7 Sep 2016 09:08:48 +0000 (11:08 +0200)]
rpm: manually cleanup sysck

version 5.4.1 of rpm was not properly distclean before release, which
causes problems when cross-compiling.

The previous version this recipe called make distclean, but that would
trigger a call to ./configure which would fail when no gcc is
available and make the whole do_configure fail further down the line

This patch manually removes the files from the recipe.

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agosanity: fix hardcoded references to gcc
Jérémy Rosen [Wed, 7 Sep 2016 09:08:46 +0000 (11:08 +0200)]
sanity: fix hardcoded references to gcc

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agobusybox: allow overriding compiler name in KConfig
Jérémy Rosen [Wed, 7 Sep 2016 09:08:45 +0000 (11:08 +0200)]
busybox: allow overriding compiler name in KConfig

The KConfig infrastructure needs to build HOST binaries in order to
provide its infratstructure. Yocto needs to force the HOSTCC and HOSTCPP
variables to BUILD_CC and BUILD_CPP to make sure that the proper compiler
is used when compiling host binaries

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-libc-headers: allow overriding compiler name in KConfig
Jérémy Rosen [Wed, 7 Sep 2016 09:08:44 +0000 (11:08 +0200)]
linux-libc-headers: allow overriding compiler name in KConfig

The KConfig infrastructure needs to build HOST binaries in order to
provide its infratstructure. Yocto needs to force the HOSTCC and HOSTCPP
variables to BUILD_CC and BUILD_CPP to make sure that the proper compiler
is used when compiling host binaries

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agolinux-yocto: allow overriding compiler name in KConfig
Jérémy Rosen [Wed, 7 Sep 2016 09:08:43 +0000 (11:08 +0200)]
linux-yocto: allow overriding compiler name in KConfig

The KConfig infrastructure needs to build HOST binaries in order to
provide its infratstructure. Yocto needs to force the HOSTCC and HOSTCPP
variables to BUILD_CC and BUILD_CPP to make sure that the proper compiler
is used when compiling host binaries

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agocross: export CC family from BUILD_* for cross compilers
Jérémy Rosen [Wed, 7 Sep 2016 09:08:42 +0000 (11:08 +0200)]
cross: export CC family from BUILD_* for cross compilers

cross-compilers are native recipes that need to be compiled by the host's
compiler. However they do not use native.bbclass

As a consequence, the various CC, CXX etc environment variables are not
correctly set and they will not honor the host compiler name provided
by the BUILD_* variables.

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogstreamer1.0-plugins-good: enable v4l2-probe
Nicolas Dechesne [Fri, 26 Aug 2016 12:05:00 +0000 (13:05 +0100)]
gstreamer1.0-plugins-good: enable v4l2-probe

A new mechanism to probe v4l2 M2M devices was implemented in gst 1.8 series, in
order to get such devices probed we now need to enable v4l2-probe compile option
which upstream decided to keep disabled by default (unfortunately), see [1].

With this feature disabled, it is not possible to get v4l2 M2M device to work in
Gstreamer which is a common use case on many embedded platforms. This patch
enables this new option as soon as v4l2 support is enabled in gstreamer -good.

[1] https://bugzilla.gnome.org/show_bug.cgi?id=758085

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agou-boot: Set u-boot binary permissions to 0644
Marek Vasut [Sun, 4 Sep 2016 16:20:44 +0000 (18:20 +0200)]
u-boot: Set u-boot binary permissions to 0644

The U-Boot binary is not an executable, it is a binary file,
set it's permissions to 0644 instead of 0755.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agouseradd: do not delete users and groups during configure
Joe Slater [Tue, 16 Aug 2016 18:16:20 +0000 (11:16 -0700)]
useradd: do not delete users and groups during configure

If two recipes both create the same users and groups, the
second recipe can delete items created by the first causing
things like "chown" to fail for the first recipe.

Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agooeqa/parselogs: Don't use cwd for file transfers
Richard Purdie [Fri, 9 Sep 2016 12:19:02 +0000 (13:19 +0100)]
oeqa/parselogs: Don't use cwd for file transfers

If you run:

MACHINE=A bitbake <image> -c testimage
MACHINE=B bitbake <image> -c testimage

and A has errors in parselogs, machine B can pick these up and cause
immense confusion. This is because the test transfers the log files
to cwd which is usually TOPDIR. This is clearly bad and this patch
uses a subdir of WORKDIR to ensure machines don't contaminate each
other.

Also ensure any previous logs are cleaned up from any existing
transfer directory.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa.runtime.smart: work around smart race issues
Markus Lehtonen [Fri, 9 Sep 2016 08:27:11 +0000 (11:27 +0300)]
oeqa.runtime.smart: work around smart race issues

Yucku hack around test failures which ultimately are caused by a race in
smartpm itself. Issuing smartpm commands in quick succession causes
races in package cache of smartpm on some systems. This patch mitigates
the problem by sleeping for 1 second after each smartpm command that
modifies the system.

[YOCTO #10244]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agooeqa/runtime/smart: Prune feeds to save memory
Richard Purdie [Thu, 8 Sep 2016 10:24:00 +0000 (11:24 +0100)]
oeqa/runtime/smart: Prune feeds to save memory

Full package feed indexes overload a 256MB image so reduce the number of rpms
the feed. Filter to p* since we use the psplash packages and this leaves some
allarch and machine arch packages too.

[YOCTO #8771]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc: only depend on native gtk-doc for documentation generation
Ross Burton [Mon, 5 Sep 2016 21:26:09 +0000 (22:26 +0100)]
gtk-doc: only depend on native gtk-doc for documentation generation

Now that gtk-doc-native works correctly, the gtk-doc class doesn't need to
depend on target gtk-doc.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogtk-doc: use pkg-config-native in native gtk-doc.m4
Ross Burton [Mon, 5 Sep 2016 21:25:44 +0000 (22:25 +0100)]
gtk-doc: use pkg-config-native in native gtk-doc.m4

When building gtk-doc-native the m4 functions for autoconf should use
pkg-config-native instead of pkg-config so that they can find the native
tooling.

This means that it is possible to generate gtk-doc without building the target
packages.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agogstreamer: remove packaged copy of gtk-doc.m4
Ross Burton [Mon, 5 Sep 2016 21:25:17 +0000 (22:25 +0100)]
gstreamer: remove packaged copy of gtk-doc.m4

The gstreamer common module ships a copy of gtk-doc.m4 that will be used in
preference to our patched form, so delete it before configure is executed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
8 years agogobject-introspection: set GI_SCANNER_DISABLE_CACHE for native
Robert Yang [Mon, 5 Sep 2016 06:56:24 +0000 (23:56 -0700)]
gobject-introspection: set GI_SCANNER_DISABLE_CACHE for native

The native recipe should not write files to $HOME/.cache as target, this can
avoid problems when multi builds are running on the same host like:
|   File "./g-ir-scanner", line 66, in <module>
|     sys.exit(scanner_main(sys.argv))
|   File "../gobject-introspection-1.48.0/giscanner/scannermain.py", line 543, in scanner_main
|     transformer = create_transformer(namespace, options)
|   File "../gobject-introspection-1.48.0/giscanner/scannermain.py", line 389, in create_transformer
|     symbol_filter_cmd=options.symbol_filter_cmd)
|   File "../gobject-introspection-1.48.0/giscanner/transformer.py", line 54, in __init__
|     self._cachestore = CacheStore()
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 61, in __init__
|     self._check_cache_version()
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 89, in _check_cache_version
|     self._clean()
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 141, in _clean
|     self._remove_filename(os.path.join(self._directory, filename))
|   File "../gobject-introspection-1.48.0/giscanner/cachestore.py", line 123, in _remove_filename
|     os.unlink(filename)
| FileNotFoundError: [Errno 2] No such file or directory: '/home/pokybuild/.cache/g-ir-scanner/0a47aa95823c95a0b5d1bd610b60d02f35785f26'
| Makefile:3518: recipe for target 'GModule-2.0.gir' failed

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agodistro-alias.inc: rename gtk-doc-stub to gtk-doc
Alexander Kanavin [Fri, 15 Jul 2016 13:08:38 +0000 (16:08 +0300)]
distro-alias.inc: rename gtk-doc-stub to gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoclutter-1.0: do not use the prepackaged clutter.types file when generating gtk-doc
Alexander Kanavin [Fri, 2 Sep 2016 11:39:10 +0000 (14:39 +0300)]
clutter-1.0: do not use the prepackaged clutter.types file when generating gtk-doc

Doing so will fail when x11 is disabled in particular.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agopango: fix gtk-doc build when x11 is not in use
Alexander Kanavin [Fri, 2 Sep 2016 11:15:48 +0000 (14:15 +0300)]
pango: fix gtk-doc build when x11 is not in use

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoutil-linux: do not enable gtk-doc and explain why
Alexander Kanavin [Thu, 25 Aug 2016 15:09:50 +0000 (18:09 +0300)]
util-linux: do not enable gtk-doc and explain why

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agop11-kit: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:09:33 +0000 (18:09 +0300)]
p11-kit: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibsoup-2.4: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:09:12 +0000 (18:09 +0300)]
libsoup-2.4: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibtasn1: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:08:22 +0000 (18:08 +0300)]
libtasn1: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agognutls: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:07:37 +0000 (18:07 +0300)]
gnutls: enable gtk-doc

gtk-doc also requires --enable-doc, so that is no longer configurable.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoharfbuzz: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:03:38 +0000 (18:03 +0300)]
harfbuzz: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agocairo: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:03:19 +0000 (18:03 +0300)]
cairo: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibenck3: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:02:54 +0000 (18:02 +0300)]
libenck3: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibgudev: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:02:08 +0000 (18:02 +0300)]
libgudev: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agojson-glib: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:00:31 +0000 (18:00 +0300)]
json-glib: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agognome-desktop3: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 15:00:08 +0000 (18:00 +0300)]
gnome-desktop3: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogdk-pixbuf: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 14:59:39 +0000 (17:59 +0300)]
gdk-pixbuf: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibuser: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 14:57:36 +0000 (17:57 +0300)]
libuser: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibidn: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 14:57:16 +0000 (17:57 +0300)]
libidn: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agoorc: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 14:53:33 +0000 (17:53 +0300)]
orc: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agodbus-glib: enable gtk-doc
Alexander Kanavin [Thu, 25 Aug 2016 14:52:33 +0000 (17:52 +0300)]
dbus-glib: enable gtk-doc

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agowebkitgtk: re-enable introspection on powerpc
Alexander Kanavin [Fri, 19 Aug 2016 13:11:07 +0000 (16:11 +0300)]
webkitgtk: re-enable introspection on powerpc

It seems to work under qemu-ppc now.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogcr, libsecret, webkitgtk: disable gtk-doc on mips64
Alexander Kanavin [Fri, 19 Aug 2016 13:09:28 +0000 (16:09 +0300)]
gcr, libsecret, webkitgtk: disable gtk-doc on mips64

It fails with the same error as gobject-introspection

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogcr: disable gtk-doc on x86_64
Alexander Kanavin [Thu, 18 Aug 2016 09:20:06 +0000 (12:20 +0300)]
gcr: disable gtk-doc on x86_64

For same reason that introspection is disabled: the transient binary goes into infinite loop.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogtk+3: disable gtk-doc when x11 is not available
Alexander Kanavin [Fri, 2 Sep 2016 11:55:27 +0000 (14:55 +0300)]
gtk+3: disable gtk-doc when x11 is not available

gtk-doc requires gdk/x11/gdkx.h which is not available if gdk x11 backend is disabled
(due to jku's patch).

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agowebkitgtk: enable gtk-doc support
Alexander Kanavin [Thu, 11 Aug 2016 14:23:10 +0000 (17:23 +0300)]
webkitgtk: enable gtk-doc support

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogstreamer1.0: enable gtk-doc support
Alexander Kanavin [Thu, 11 Aug 2016 14:21:55 +0000 (17:21 +0300)]
gstreamer1.0: enable gtk-doc support

check support is no longer disabled by default because it is a requirement
of gtk-doc support in gstreamer.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agolibglade: remove the recipe
Alexander Kanavin [Tue, 9 Aug 2016 12:33:00 +0000 (15:33 +0300)]
libglade: remove the recipe

Libglade has been obsolete for several years and is used by nothing in oe-core;
it will be moved to meta-oe so that old recipes still present there continue to build.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agosystemd: drop unused gtkdoc-related variable
Alexander Kanavin [Fri, 15 Jul 2016 14:25:05 +0000 (17:25 +0300)]
systemd: drop unused gtkdoc-related variable

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agokmod: do not let gtkdocize fail
Alexander Kanavin [Fri, 15 Jul 2016 14:22:34 +0000 (17:22 +0300)]
kmod: do not let gtkdocize fail

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogtk-doc.bbclass: enable building gtk-doc based documentation
Alexander Kanavin [Fri, 15 Jul 2016 13:09:38 +0000 (16:09 +0300)]
gtk-doc.bbclass: enable building gtk-doc based documentation

This is done similarly to gobject-introspection, but with much
less delicate hacking around the upstream way of working.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agogtk-doc: add a recipe, remove gtk-doc-stub
Alexander Kanavin [Wed, 13 Jul 2016 14:43:37 +0000 (17:43 +0300)]
gtk-doc: add a recipe, remove gtk-doc-stub

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agosource-highlight: add a recipe
Alexander Kanavin [Wed, 13 Jul 2016 14:44:27 +0000 (17:44 +0300)]
source-highlight: add a recipe

gtk-doc relies on this to highlight source code snippets

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
8 years agooeqa: Use snapshot instead of copying the rootfs image
Richard Purdie [Tue, 6 Sep 2016 13:44:41 +0000 (14:44 +0100)]
oeqa: Use snapshot instead of copying the rootfs image

Rather than copying images, use the snapshot option to qemu. This fixes a regression
caused by the recent runqemu changes where the wrong images were being testes since
the image is copied without the qemuboot.conf file. This means the latest image is
found by runqemu rather than the specified one, leading to various confused testing
results.

It could be fixed by copying more files but use snapshot mode instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoscripts/runqemu: Add snapshot support
Richard Purdie [Tue, 6 Sep 2016 13:42:40 +0000 (14:42 +0100)]
scripts/runqemu: Add snapshot support

Allow access to the snapshot option of qemu to simplify some of our runtime
testing to avoid copying images.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Enable virtio RNG for all platforms
Richard Purdie [Thu, 1 Sep 2016 21:10:21 +0000 (22:10 +0100)]
runqemu: Enable virtio RNG for all platforms

We have problems where systems simply stop booting and hang. This is due
to a lack of entropy which means ssh keys and networking can't be brought
up. Adding in the virtio-rng passthrough support allows host entropy to
pass into the guess and avoids these hangs.

This is particularly problematic after the gnutls upgrade which starts
using /dev/random instead of /dev/urandom but was an issue we'd occasionally
seem before that.

It particualrly affected x86 and ppc machines for some reason.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Update to modern prefrerred net syntax
Richard Purdie [Tue, 6 Sep 2016 22:17:07 +0000 (23:17 +0100)]
runqemu: Update to modern prefrerred net syntax

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: Allow unique network interface MAC addresses
Richard Purdie [Tue, 6 Sep 2016 13:46:10 +0000 (14:46 +0100)]
runqemu: Allow unique network interface MAC addresses

Current qemu instances all share the same MAC address. This shouldn't be an
issue as they are all on separate network interfaces, however on the slight
chance this is causing problems, its easy enough to ensure we use unique
MAC addresses based on the IP numbers we assign.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemurunner.py/qemutinyrunner.py: remove runqemu-internal
Robert Yang [Thu, 25 Aug 2016 14:41:07 +0000 (07:41 -0700)]
qemurunner.py/qemutinyrunner.py: remove runqemu-internal

There is no runqemu-internal any more.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agonativesdk-qemu-helper: fix for new runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:06 +0000 (07:41 -0700)]
nativesdk-qemu-helper: fix for new runqemu

There is no runqemu-internal anymore, and it is a python script now
which requires several python modules.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fix run from testimage with non-standard DEPLOY_DIR_IMAGE
Joshua Lock [Thu, 8 Sep 2016 20:49:13 +0000 (21:49 +0100)]
runqemu: fix run from testimage with non-standard DEPLOY_DIR_IMAGE

testimage.bbclass uses runqemu to execute runtime tests on a qemu
target, this means that bitbake is already running and `bitbake -e`
can't be called to obtain bitbake variables.

runqemu tries to work around being unable to read values for
bitbake variables by inferring the MACHINE from the
DEPLOY_DIR_IMAGE setting, however if a user sets that variable in
a manner which doesn't follow the systems expectations (i.e. if
running `bitbake -c testimage` against a directory of pre-generated
images in a user-specified path) the inferring of the MACHINE name
from the DEPLOY_DIR_IMAGE location will fail.

It's possible that check_arg_machine() shouldn't cause runqemu to
fail and that runqemu should proceed with the user-supplied value
even if it can't be verified. This patch simply ensures that a
workflow where the user sets DEPLOY_DIR_IMAGE continues to work
without changing too much of the runqemu code.

[YOCTO #10238]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: fixes for when invoked during a bitbake run
Joshua Lock [Wed, 7 Sep 2016 22:04:25 +0000 (23:04 +0100)]
runqemu: fixes for when invoked during a bitbake run

When runqemu is invoked from a running bitbake instance it will be
unable to call `bitbake -e` due to the lock held by the calling
bitbake instance.

Our test code sets an OE_TMPDIR environment variable from which we
can infer/guess paths. Add code to do so when self.bitbake_e can't
be set, much as the sh version of runqemu did.

[YOCTO #10240]

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: better handle running on a host with different paths
Joshua Lock [Mon, 5 Sep 2016 20:32:57 +0000 (21:32 +0100)]
runqemu: better handle running on a host with different paths

If the STAGING_*_NATIVE directories from the config file don't exist
and we're in a sourced OE build directory try to extract the paths
from `bitbake -e`

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: assume artefacts are relative to *.qemuboot.conf
Joshua Lock [Mon, 5 Sep 2016 20:32:56 +0000 (21:32 +0100)]
runqemu: assume artefacts are relative to *.qemuboot.conf

When runqemu is started with a *.qemuboot.conf arg assume that image
artefacts are relative to that file, rather than in whatever
directory the DEPLOY_DIR_IMAGE variable in the conf file points to.

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agorunqemu: refactor it and remove machine knowledge
Robert Yang [Thu, 25 Aug 2016 14:41:05 +0000 (07:41 -0700)]
runqemu: refactor it and remove machine knowledge

Previously, runqemu had hard coded machine knowledge, which limited its
usage, for example, qemu can boot genericx86, but runqemu can't, we need
edit runqemu/runqemu-internal a lot if we want to boot genericx86.

Now bsp conf files can set vars to make it can be boot by runqemu, and
qemuboot.bbclass will save these info to DEPLOY_DIR_IMAGE/qemuboot.conf.
Please see qemuboot.bbclass' comments on how to set the vars.

* Re-write it in python3, which can reduce lines from 1239 to about 750
  lines
* All the machine knowledges are gone
* All of the TUN_ARCH knowledge are gone
* All the previous options are preserved, and there is a new way to run
  runqemu: (it doesn't need run "bitake -e" in such a case)
  $ runqemu tmp/deploy/images/qemux86
  or:
  $ runqemu tmp/deploy/images/qemuarm/<image>.ext4
  or:
  $ runqemu tmp/deploy/images/qemuarm/qemuboot.conf
* Fixed audio support, not limited on x86 or x86_64
* Fix SLIRP mode, add help message, avoid mixing with tap
* Fix NFS boot, it will extract <image>.tar.bz2 or tar.gz to
  DEPLOY_DIR_IMAGE/<image>-nfsroot when no NFS_DIR, and remove it after
  stop.
* More bsps can be boot, such as genericx86 and genericx86-64.
* The patch for qemuzynq, qemuzynqmp, qemumicroblaze has been sent to
  meta-xilinx' mailing list.
* I can't find any qemush4 bsp or how to build it, so it is not
  considered atm.

[YOCTO #1018]
[YOCTO #4827]
[YOCTO #7459]
[YOCTO #7887]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemu.inc: inherit qemuboot.bbclass
Robert Yang [Thu, 25 Aug 2016 14:41:04 +0000 (07:41 -0700)]
qemu.inc: inherit qemuboot.bbclass

All qemu boards should be able to boot by runqemu.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuppc: Use virtio networking instead of pcnet
Richard Purdie [Mon, 5 Sep 2016 16:38:58 +0000 (17:38 +0100)]
qemuppc: Use virtio networking instead of pcnet

qemuppc can use virtio networking and we may as well do so for better
prformance as we do under the other emulated hardware.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuppc.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:03 +0000 (07:41 -0700)]
qemuppc.conf: set vars for runqemu

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemumips/qemumips64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:02 +0000 (07:41 -0700)]
qemumips/qemumips64.conf: set vars for runqemu

Add qemuboot-mips.inc to reduce duplicated code, the various mips bsps
which can be boot by runqemu can require qemuboot-mips.inc

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemux86.conf/qemux86-64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:01 +0000 (07:41 -0700)]
qemux86.conf/qemux86-64.conf: set vars for runqemu

Add qemuboot-x86.inc to reduce duplicated code, the x86/x86_64 bsps
which can be boot by runqemu can require qemuboot-x86.inc.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm64.conf: set vars for runqemu
Robert Yang [Thu, 25 Aug 2016 14:41:00 +0000 (07:41 -0700)]
qemuarm64.conf: set vars for runqemu

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
8 years agoqemuarm.conf: set PREFERRED_VERSION_linux-yocto
Robert Yang [Tue, 6 Sep 2016 06:15:05 +0000 (23:15 -0700)]
qemuarm.conf: set PREFERRED_VERSION_linux-yocto

The base_version_less_or_equal() will raise errors if
PREFERRED_VERSION_linux-yocto is None. For example, when we build
DISTRO = "nodistro", PREFERRED_VERSION_linux-yocto is not be defined
since it is defined in poky.conf, and then bitbake will
choose the higher version which is 4.8 currently, so set
PREFERRED_VERSION_linux-yocto to 4.8, otherwise, runqemu can't boot it.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>