]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
7 years agolibparted: Use read only when probing devices on linux
Ovidiu Panait [Tue, 26 Sep 2017 09:00:46 +0000 (12:00 +0300)] 
libparted: Use read only when probing devices on linux

When a device is opened for RW closing it can trigger other actions,
like udev scanning it for partition changes. Use read only for the
init_* methods and RW for actual changes to the device.

This adds _device_open which takes mode flags as an argument and turns
linux_open into a wrapper for it with RW_MODE.

_device_open_ro is added to open the device with RD_MODE and increment
the open_counter. This is used in the init_* functions.

_device_close is a wrapper around linux_close that decrements the
open_counter and is used in the init_* functions.

All of these changes are self-contained with no external API changes.
The only visible change in behavior is that when a new PedDevice is
created the device is opened in RO_MODE instead of RW_MODE.

Resolves: rhbz#1245144

Reference:
https://bugzilla.redhat.com/show_bug.cgi?id=1283112

Upstream patch:
http://git.savannah.gnu.org/cgit/parted.git/commit/?id=44d5ae0115c4ecfe3158748309e9912c5aede92d

(From OE-Core rev: f68fca4776a38a1bdf7ed37ce87cddbb21ff74f8)

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoovmf: add SUMMARY and fix HOMEPAGE url
Leonardo Sandoval [Wed, 5 Jul 2017 15:57:36 +0000 (08:57 -0700)] 
ovmf: add SUMMARY and fix HOMEPAGE url

(From OE-Core rev: 23155b607c509b799775949774ad7da23c10b373)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoupdate-rc.d: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:35 +0000 (10:36 +0800)] 
update-rc.d: Add HOMEPAGE info into recipe file.

(From OE-Core rev: addbf84b3d3d2caad54d2d11383937f2194197ac)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostat: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:34 +0000 (10:36 +0800)] 
stat: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 9e65101eb308ee85d5ab43676423ce4b443f0bd1)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoprelink: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:33 +0000 (10:36 +0800)] 
prelink: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 8570a101b1befd988b75c577eb75b35398fe6993)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoat: Add HOMEPAGE info into recipe file.
Huang Qiyu [Tue, 26 Sep 2017 02:36:32 +0000 (10:36 +0800)] 
at: Add HOMEPAGE info into recipe file.

(From OE-Core rev: 81a1da9528d5d905635ea66691aff29a7249c48d)

Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoDocumenation: Updated "Usually October" to "October 2017" string
Scott Rifenbark [Thu, 5 Oct 2017 16:09:28 +0000 (09:09 -0700)] 
Documenation: Updated "Usually October" to "October 2017" string

The string in the manual revision table needed updated across the
set except for the kernel-dev manual.

(From yocto-docs rev: e087a707e02ff913baba2ac8bc6594206f53f70c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated Metadata term in Terms section
Scott Rifenbark [Thu, 5 Oct 2017 15:25:25 +0000 (08:25 -0700)] 
ref-manual: Updated Metadata term in Terms section

Provided a description for metadata in the context of the kernel
that ties it to the yocto-kernel-cache Git repository rather
than the old meta-* directories that were in the actual
kernel trees.

(From yocto-docs rev: 7105459bf687cad7d973d8bdffbc51c9ffcd9721)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated Title Page.
Scott Rifenbark [Thu, 5 Oct 2017 15:09:58 +0000 (08:09 -0700)] 
kernel-dev: Updated Title Page.

Using Scotty's Documentation Services, INC. and Scott Rifenbark
as the author.  Added a note in the note box to send an email to
the yocto@yoctoproject.org discussion group or log into the freenode

(From yocto-docs rev: 657ef0a09a72c023dd2ab523ff3c7ad1e7a2efea)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated Tree Construction section with review feedback.
Scott Rifenbark [Thu, 5 Oct 2017 14:44:12 +0000 (07:44 -0700)] 
kernel-dev: Updated Tree Construction section with review feedback.

(From yocto-docs rev: c28b349a972d81d3b60bf1b0de48d837fbc76cdb)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Added KMACHINE and MACHINE descriptions for using metadata
Scott Rifenbark [Thu, 5 Oct 2017 14:13:55 +0000 (07:13 -0700)] 
kernel-dev: Added KMACHINE and MACHINE descriptions for using metadata

Needed to remove an old example that was showing how two BSPs could
share the same KMACHINE value.  I replaced it with corei7-based
machines.  Also noted that KMACHINE is for kernel mapping only
whereas MACHINE is for the layer's BSP machine type.

(From yocto-docs rev: c1dad2815b6fd1ed78e0dce0fecb422f342eaf14)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Removed note about KTYPE being optional in future.
Scott Rifenbark [Tue, 3 Oct 2017 22:36:48 +0000 (15:36 -0700)] 
kernel-dev: Removed note about KTYPE being optional in future.

(From yocto-docs rev: 2ecf347fe5b9f60d29a5624bab2f57a7278fa9ab)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated what the manual covers to include appendices
Scott Rifenbark [Tue, 3 Oct 2017 22:36:26 +0000 (15:36 -0700)] 
kernel-dev: Updated what the manual covers to include appendices

(From yocto-docs rev: 1782241165aa09ab3d3ecf66a91a355555f5f42b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated lists for formatting consistency
Scott Rifenbark [Tue, 3 Oct 2017 21:36:50 +0000 (14:36 -0700)] 
kernel-dev: Updated lists for formatting consistency

(From yocto-docs rev: 7fe10c067219eccdbfd8d99223cdb38b84d7d2a5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to "Working With Your Own Sources"
Scott Rifenbark [Tue, 3 Oct 2017 20:09:54 +0000 (13:09 -0700)] 
kernel-dev: Updates to "Working With Your Own Sources"

Formatting changes for the list.

(From yocto-docs rev: df1201085408eec45d8fbf649e80437299daa0e8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to "Build Strategy" section.
Scott Rifenbark [Tue, 3 Oct 2017 19:36:57 +0000 (12:36 -0700)] 
kernel-dev: Edits to "Build Strategy" section.

This section was written before the yocto-kernel-cache strategy
existed and was thus incorrect.  I updated it with how I understand
things to work.

(From yocto-docs rev: 629f24c9312a168ddcd28b0d9dde92ff06068483)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated Tree Construction section
Scott Rifenbark [Tue, 3 Oct 2017 19:06:51 +0000 (12:06 -0700)] 
kernel-dev: Updated Tree Construction section

The section was using the "meta-*" stuff, which is not how it
is done any longer.

(From yocto-docs rev: c9d95e85a832a38c3fd099a728693af3fa708d50)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated KERNEL_FEATURES variable description
Scott Rifenbark [Tue, 3 Oct 2017 16:20:01 +0000 (09:20 -0700)] 
ref-manual: Updated KERNEL_FEATURES variable description

Added a more relevant example from the 4.12 Yocto Linux kernel
recipe.

(From yocto-docs rev: 98c40729b2b22a2ac8444d899848c05880cb920b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Minor updates to the "Kernel Maintenance" appendix.
Scott Rifenbark [Tue, 3 Oct 2017 15:50:52 +0000 (08:50 -0700)] 
kernel-dev: Minor updates to the "Kernel Maintenance" appendix.

(From yocto-docs rev: eabeff4611d447be12af64f0f44c218c69da3409)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Minor edits to the "Advanced Kernel Concepts" appendix
Scott Rifenbark [Tue, 3 Oct 2017 01:28:26 +0000 (18:28 -0700)] 
kernel-dev: Minor edits to the "Advanced Kernel Concepts" appendix

(From yocto-docs rev: 645b642965ffcbb12f171e11a53b4efe5d0fd756)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Changed title for advanced metadata chapter
Scott Rifenbark [Tue, 3 Oct 2017 01:27:47 +0000 (18:27 -0700)] 
kernel-dev: Changed title for advanced metadata chapter

Introduced the "yocto-kernel-cache" term into the title.

(From yocto-docs rev: ca74c49e2809851bb22bbe0d68830127d7bba4e9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Miscellaneous Edits to Advanced Metadata chapter
Scott Rifenbark [Tue, 3 Oct 2017 00:31:06 +0000 (17:31 -0700)] 
kernel-dev: Miscellaneous Edits to Advanced Metadata chapter

(From yocto-docs rev: 74e27b697efa7ea7ecc1d1d59266b537dd70ae98)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated example in metadata outside recipe-space
Scott Rifenbark [Mon, 2 Oct 2017 20:11:27 +0000 (13:11 -0700)] 
kernel-dev: Updated example in metadata outside recipe-space

Went from 4.4 kernel to 4.12.

(From yocto-docs rev: 4cf2710a381925b8bf13536c1f8da3d12938fffe)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to "Using Kernel Metadata in a Recipe"
Scott Rifenbark [Mon, 2 Oct 2017 19:59:32 +0000 (12:59 -0700)] 
kernel-dev: Updates to "Using Kernel Metadata in a Recipe"

This section had some old emenlo examples and was a little
confusing.  I removed the old examples and inserted some new
wordings to help smooth it out.

(From yocto-docs rev: 365129e0cd37772f404d96a51eb498210e4f1ee9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated KBRANCH variable description
Scott Rifenbark [Mon, 2 Oct 2017 19:32:21 +0000 (12:32 -0700)] 
ref-manual: Updated KBRANCH variable description

The description had gone stale and was referencing a linux
yocto kernel we don't support and BSPs we don't support.  Updated
it.

(From yocto-docs rev: 5041a2a26d703a885437abcedb24c7600d5365cd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Additions to the "Overview" section.
Scott Rifenbark [Thu, 28 Sep 2017 22:36:35 +0000 (15:36 -0700)] 
kernel-dev: Additions to the "Overview" section.

I provided some background on two repositories: yocto-kernel-cache
and yocto-kernel-tools.

(From yocto-docs rev: 1741d6efd4ff8364a55d546897cab5e7cdee6da5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to "Kernel Metadata Syntax" section
Scott Rifenbark [Thu, 28 Sep 2017 22:07:12 +0000 (15:07 -0700)] 
kernel-dev: Updates to "Kernel Metadata Syntax" section

Scrubbed this section to bring it up to speed with more modern
BSP examples and better explanation of the types of Metadata
used.

(From yocto-docs rev: ba009de68a3786f83d9c3c9debffa8b811479786)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to where kernel metadata is found
Scott Rifenbark [Wed, 27 Sep 2017 23:56:56 +0000 (16:56 -0700)] 
kernel-dev: Updates to where kernel metadata is found

"cfg" and "features" used to reside in the linux-yocto-x.x repo
under meta.  They are now in a separate repo named
yocto-kernel-cache.  I rewrote a couple spots that incorrectly
referenced the old location.

(From yocto-docs rev: e643fc3df46658b8bcf9cdc12a78b527988b63a6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to the iteratively modifying source code section
Scott Rifenbark [Wed, 27 Sep 2017 22:19:39 +0000 (15:19 -0700)] 
kernel-dev: Edits to the iteratively modifying source code section

This section has merged into a single topic now.  It still needs
work but it is gathered under one heading for now.

(From yocto-docs rev: 660ed8b64dedbab5400c84ec3759cea77c899c40)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Removed a comment block
Scott Rifenbark [Wed, 27 Sep 2017 20:16:56 +0000 (13:16 -0700)] 
kernel-dev: Removed a comment block

(From yocto-docs rev: d6cf2730a9acc9c5bfd3071794269b4e3e7273b6)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Eliminated "Generating Configuration Files" section.
Scott Rifenbark [Wed, 27 Sep 2017 20:09:54 +0000 (13:09 -0700)] 
kernel-dev: Eliminated "Generating Configuration Files" section.

This section was largely redundant now.  The small things that did
add value I placed in other areas of the chapter 2.  One was a new
section on expanding variables using bitbake -e.  Another was a bit
about the defconfig file.  And a small procedure on how to create
config fragments using the "diffconfig" command was retained.

Links from the dev-manual and the ref-manual were adjusted as well.

(From yocto-docs rev: 7059d3eac1fec20089cabf197503f1bec747686d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Added "Validating Configuration" section
Scott Rifenbark [Wed, 27 Sep 2017 16:38:23 +0000 (09:38 -0700)] 
kernel-dev: Added "Validating Configuration" section

Provided a new section on how to validate the configuration of the
kernel.

(From yocto-docs rev: 25f43d1baeff7d571fc60c7edca957d4ce6d6357)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to "Fine-Tuning the Kernel Configuration File"
Scott Rifenbark [Wed, 27 Sep 2017 00:39:31 +0000 (17:39 -0700)] 
kernel-dev: Edits to "Fine-Tuning the Kernel Configuration File"

This section needed some formatting to conform to the list structure
used throughout the manual.

(From yocto-docs rev: b6e6b66014963c1628c50e09787fdd46a45867b1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Moved "dirty" kernel procedure up a level
Scott Rifenbark [Wed, 27 Sep 2017 00:25:34 +0000 (17:25 -0700)] 
kernel-dev: Moved "dirty" kernel procedure up a level

This procedure needed to be pulled out of the section that was/is
called "Using an Iterative Development Process".  The section on
how to deal with "dirty" kernel version strings is a procedure
in its own right.  It is now up a level.

(From yocto-docs rev: cd8834fa8d77ac750b06c3367aee577c80dcc64e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Removed "kernel-dev-examples.xml" file.
Scott Rifenbark [Wed, 27 Sep 2017 00:01:51 +0000 (17:01 -0700)] 
kernel-dev: Removed "kernel-dev-examples.xml" file.

File not used.

(From yocto-docs rev: 208bc193b02f4644e12c7d143d20ddafc5169907)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: removed old "kernel-dev-examples.xml" chapter.
Scott Rifenbark [Tue, 26 Sep 2017 23:50:58 +0000 (16:50 -0700)] 
kernel-dev: removed old "kernel-dev-examples.xml" chapter.

This chapter is not used and was commented out.  I deleted the
comment block.

(From yocto-docs rev: c805d1034b9f9bed5990cd2bcb3a9088e3d0d542)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated Added a New Recipe to Workspace Layer section
Kristi Rifenbark [Tue, 26 Sep 2017 23:41:01 +0000 (16:41 -0700)] 
ref-manual: Updated Added a New Recipe to Workspace Layer section

Fixes [YOCTO #11392]

Updated the section to document how to specify a branch,
tag, or revision when using devtool add with a remote
URL.

(From yocto-docs rev: 903b4a4e72908572a5f8b8c822869bbd0fe76ec9)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated devtool --help output
Kristi Rifenbark [Fri, 22 Sep 2017 19:30:54 +0000 (12:30 -0700)] 
ref-manual: Updated devtool --help output

Fixes [YOCTO #11392]

(From yocto-docs rev: 30eb6ef13b85f7f5e1784dbdd6a54b1367be212d)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Added NOAUTOPACKAGEDEBUG to variable glossary
Kristi Rifenbark [Tue, 19 Sep 2017 20:17:00 +0000 (13:17 -0700)] 
ref-manual: Added NOAUTOPACKAGEDEBUG to variable glossary

Fixes [YOCTO #11800]

(From yocto-docs rev: 789a11aee778f6082134102659b317bc6c155b4c)

Signed-off-by: Kristi Rifenbark <kristi.rifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated kernel configuration section
Scott Rifenbark [Tue, 26 Sep 2017 21:33:56 +0000 (14:33 -0700)] 
kernel-dev: Updated kernel configuration section

A lot of rewriting here in this section to get it up to speed.
Also, moved that final section on determining hardware and
non-hardware features into an appendix where it belonged.

(From yocto-docs rev: 752e80d6ae8f81a0de7743b11b010d0ef36b314b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopoky.conf: Fix typo
Richard Purdie [Tue, 26 Sep 2017 15:56:04 +0000 (16:56 +0100)] 
poky.conf: Fix typo

(From meta-yocto rev: e1f363915056b4fad52de4d597dcac5876285400)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopoky: Set version/codename for 2.4/rocko
Richard Purdie [Tue, 26 Sep 2017 15:08:21 +0000 (16:08 +0100)] 
poky: Set version/codename for 2.4/rocko

(From meta-yocto rev: eef92880a26a73f5539af54f19e7653aa6b226a9)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: bitbake-user-manual: Updated kernel version in PREFERRED_VERSION example
Scott Rifenbark [Mon, 25 Sep 2017 21:34:38 +0000 (14:34 -0700)] 
bitbake: bitbake-user-manual: Updated kernel version in PREFERRED_VERSION example

(Bitbake rev: 41ba3c8bfcd3501604f6a17bd327a8193b11b656)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated kernel example version in PREFERRED_VERSION.
Scott Rifenbark [Mon, 25 Sep 2017 21:29:58 +0000 (14:29 -0700)] 
ref-manual: Updated kernel example version in PREFERRED_VERSION.

(From yocto-docs rev: bc6960c01cffdc2cef7c9288db9daeed2c3e1a25)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodev-manual: Updated compatible log program section.
Scott Rifenbark [Mon, 25 Sep 2017 16:45:47 +0000 (09:45 -0700)] 
dev-manual: Updated compatible log program section.

Script name changed to "yocto-check-layer".

(From yocto-docs rev: 545a90dd2816c4e97dc70efc76c7cca49684c2d8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updated "in-tree" defconfig example.
Scott Rifenbark [Fri, 22 Sep 2017 20:40:31 +0000 (13:40 -0700)] 
kernel-dev: Updated "in-tree" defconfig example.

Section "Using an 'In-Tree' defconfig File" updated to use a
more syntactically correct KBUILD_DEFCONFIG_KMACHINE example.

(From yocto-docs rev: 64e6b16703fa3ce9ac8db25de8089d32ac7aeafc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Updated link formatting in KBUILD_DEFCONFIG variable.
Scott Rifenbark [Fri, 22 Sep 2017 20:30:11 +0000 (13:30 -0700)] 
ref-manual: Updated link formatting in KBUILD_DEFCONFIG variable.

(From yocto-docs rev: ba2aa642c3c1696a155b07840f84b8b3f0e692b5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodev-manual: Compatibility program and moving kernel configuration
Scott Rifenbark [Fri, 22 Sep 2017 19:18:18 +0000 (12:18 -0700)] 
dev-manual: Compatibility program and moving kernel configuration

Should have been two commits but I forgot to do them separately.

1. I updated the YP Compatible Program section.

2. I moved the "Configuring the Kernel" section from the dev-manual
   to the kernel-dev manual.

(From yocto-docs rev: cdb5bbc917db55a2ca987ce9b9ed371f9fca6524)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd-serialtty: allow empty package
Chen Qi [Tue, 26 Sep 2017 08:41:38 +0000 (16:41 +0800)] 
systemd-serialtty: allow empty package

If SERIAL_CONSOLES is set to empty for some reason, we would have rootfs
failure like below.

  - nothing provides systemd-serialgetty needed by systemd-1:234-r0.core2_64

This is because systemd-serialgetty package is not generated when
SERIAL_CONSOLES is empty.

Set ALLOW_EMPTY to "1" for this recipe to allow for generation of empty
systemd-serialgetty package to avoid the above error.

(From OE-Core rev: abf2e9526a11bcb51b71b90a7b76bd33af656494)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoyocto-bsp: add BBG dtb
Anders Darander [Tue, 26 Sep 2017 06:54:48 +0000 (08:54 +0200)] 
yocto-bsp: add BBG dtb

As 4.4 is the lowest kernel version in oe-core, we can add the dtb for the
beaglebon green to the list of dtb's to generate.

(From meta-yocto rev: dc77383ca352431cba7cb779899220db4eaa0cba)

Signed-off-by: Anders Darander <anders@chargestorm.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopoky-tiny: Bump default kernel version to 4.12
Alejandro Hernandez [Wed, 20 Sep 2017 17:13:30 +0000 (10:13 -0700)] 
poky-tiny: Bump default kernel version to 4.12

(From meta-yocto rev: 18d164344b4468ab52bbdd160d0474878042dabb)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd-boot: Should not build x32
Saul Wold [Tue, 26 Sep 2017 00:52:18 +0000 (17:52 -0700)] 
systemd-boot: Should not build x32

Since systemd-boot is a bootloader, it needs to be built for
the native IA instruction set size and x32 is not valid.

(From OE-Core rev: 8c9ee404fe2a5e703f14c70092137c8d0ac0a6c2)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: remove systemd-boot for x32
Saul Wold [Tue, 26 Sep 2017 00:52:17 +0000 (17:52 -0700)] 
wic: remove systemd-boot for x32

Currently systemd-boot actually incorporates libgcc, since the
systemd-boot needs to be built with 64bit instructions it can not
use the x32 based libgcc.

Use the new override to ensure it gets overriden, linux-gnux32 could
not be used because x86-64 has higher priority.

(From OE-Core rev: 6046b9a3d76738c459ad76f5296e7b0a54c0b2e0)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoarch-x86: Add x86-x32 to MACHINEOVERRIDES
Saul Wold [Tue, 26 Sep 2017 00:52:16 +0000 (17:52 -0700)] 
arch-x86: Add x86-x32 to MACHINEOVERRIDES

This is needed as an x32 more generic x32 override later in the
OVERRIDES, currently linux-gnux32 is the first override, but we
need a stronger (later in the list) x32 override to deal with some
needed x32 dependency overrides.

(From OE-Core rev: 364b3698b78e9fea59d24e3a3a5f4476be95f6d1)

Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocurl: Added option to enable http2 protocol.
baali [Mon, 25 Sep 2017 19:20:34 +0000 (00:50 +0530)] 
curl: Added option to enable http2 protocol.

With default --without-nghttp2 flag set there was no way to get
http2 protocol support using nghttp2 library. Instead moved it to
PACKAGECONFIG options

(From OE-Core rev: bcc8560300c8b1218b1f3709f5a7732e17fbfa46)

Signed-off-by: baali <shantanu@senic.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoselftest/cases/runtime_test: ignore removal errors when cleaning temporary gpg directory
Leonardo Sandoval [Mon, 25 Sep 2017 21:02:46 +0000 (14:02 -0700)] 
selftest/cases/runtime_test: ignore removal errors when cleaning temporary gpg directory

The high-level method tempfile.TemporaryDirectory give us no way to ignore erros on
removal thus use tempfile.mkdtemp instead. Ignoring possible issues on removal
is neccesary because it contains gpg sockets that are automatically removed by
the system once the process terminates, otherwise the following log is observed:

  File "/usr/lib/python3.5/shutil.py", line 436, in _rmtree_safe_fd
    os.unlink(name, dir_fd=topfd)
  FileNotFoundError: [Errno 2] No such file or directory: 'S.gpg-agent.browser'

This is the same fix as 7e3a7cd2426feac757def81850dc44156cd0f33e, but this applies
to runtime (instead of signing).

[YOCTO #11821]

(From OE-Core rev: f28e8131f69913ff90ed210c7a58726d3ef37db6)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosign_rpm.bbclass: force rpm serial signing
Leonardo Sandoval [Mon, 25 Sep 2017 20:52:59 +0000 (13:52 -0700)] 
sign_rpm.bbclass: force rpm serial signing

Newer versions of gpg (at least 2.1.5 and 2.2.1) have issues when signing occurs in parallel
so (unfortunately) the signing must be done serially. Once the upstream problem is fixed,
this patch must be reverted, otherwise we loose all the intrinsic parallelism from
bitbake.

[YOCTO #12022]

(From OE-Core rev: 5301712f9735fcf8d3dec756772668de930e53fe)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agocore-image-sato-sdk-ptest: reduce size
Ross Burton [Mon, 25 Sep 2017 20:21:55 +0000 (21:21 +0100)] 
core-image-sato-sdk-ptest: reduce size

This image is very large and is skirting the maximum size of hddimg images (4GB,
as they're embedded inside FAT partitions).  Making the image 10MB bigger can be
enough to cause the build to fail.  This image is also used by QA so currently
we need to keep it working.

The default values for expanding an image to give it usable space are quite
generous, (3GB rootfs * 1.3 gives 1GB of empty space), so change the overhead
multiplier to 1.0x and explicitly request just 0.5GB of empty space in the
images.

This should give us a bit more breathing room until we can either remove hddimg
from the default build, or make this image dramatically smaller.

(From OE-Core rev: 98d9d8958fd5a3bba849e9051bf0310c28b551c2)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: Add option to not change fstab
Fabio Berton [Wed, 19 Apr 2017 16:42:47 +0000 (13:42 -0300)] 
wic: Add option to not change fstab

Create an option to wic doesn't change fstab file, the final
fstab file will be same that in rootfs and wic doesn't update
file, e.g adding a new mount point.

Users can control the fstab file content in base-files recipe.
This is useful if you want to only create an partition but not
add fstab mount point or add new mount point using label e.g:

LABEL=recovery /recovery auto defaults 0  1

(From OE-Core rev: 00420ec42140c1b752132bda190dede85756d157)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolibgcrypt: fix CVE-2017-0379
Hongxu Jia [Mon, 25 Sep 2017 08:07:19 +0000 (04:07 -0400)] 
libgcrypt: fix CVE-2017-0379

Backport the fix from https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgcrypt.git;
a=commit;h=bf76acbf0da6b0f245e491bec12c0f0a1b5be7c9

(From OE-Core rev: 3b827eff306c484d78d61b259cd5d4eef8df381c)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoscripts: drop True option to getVar calls
Ming Liu [Sun, 24 Sep 2017 04:04:24 +0000 (06:04 +0200)] 
scripts: drop True option to getVar calls

Search made with the following regex: getVar ?\((.*), True\).

(From OE-Core rev: b848c3cb495905605283c57c79f2ed8ca17758db)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agometa: drop True option to getVar calls
Ming Liu [Sun, 24 Sep 2017 04:03:49 +0000 (06:03 +0200)] 
meta: drop True option to getVar calls

Search made with the following regex: getVar ?\((.*), True\).

(From OE-Core rev: dbc0eaf478feb3f752ae22fd184984494fc85d0a)

Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosystemd: move org.freedesktop.machine1.conf to systemd-container
Fathi Boudra [Sat, 23 Sep 2017 10:37:30 +0000 (13:37 +0300)] 
systemd: move org.freedesktop.machine1.conf to systemd-container

The file belongs to systemd-container package , not to systemd package.

(From OE-Core rev: 9c1ec618860404bef0348bb17efcfb5c93cc360f)

Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: Fix build with -buildmode=pie
Khem Raj [Sat, 23 Sep 2017 01:05:29 +0000 (18:05 -0700)] 
go: Fix build with -buildmode=pie

(From OE-Core rev: f080dafbbba31686fddb0867cadb8dfe273632f3)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo_1.9: remove obsolete overrides
Matt Madison [Sat, 23 Sep 2017 00:58:22 +0000 (17:58 -0700)] 
go_1.9: remove obsolete overrides

Now that mips and security flags fixes are in place
in the bbclasses, remove the local settings in this
recipe.

(From OE-Core rev: 8a6b6c76dfc73aa6690f09dc2e0c16b81155f2d6)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogo: disable PIE flags for cgo
Matt Madison [Sat, 23 Sep 2017 00:58:21 +0000 (17:58 -0700)] 
go: disable PIE flags for cgo

If the security_flags.inc file is included, gcc
will do PIE builds by default.  These flags need
to be disabled for go packages that use cgo.

(From OE-Core rev: 5d84042852380fc88b9be8df0e4eeac612c2a6da)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogoarch.bbclass: fixups for Go mips32 support
Matt Madison [Sat, 23 Sep 2017 00:58:20 +0000 (17:58 -0700)] 
goarch.bbclass: fixups for Go mips32 support

* Fix the regular expression in the mips test

* Flag as incompatible any mips32 tunes for n32 ABI
  or soft-float, as go does not support them.

* Replace mips32r2 tune with mips32r1. Go only supports
  mips32r1, which is a strict subset of r2.  Adjusting
  this tune is not ideal, but is hopefully a temporary
  measure until more complete mips32 ISA coverage
  arrives upstream.

[YOCTO #12108]

(From OE-Core rev: bdd20c296048937737da0f10bd1a3b63843c5bf4)

Signed-off-by: Matt Madison <matt@madison.systems>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolinux-firmware: bump to latest linux-firmware git revision
Stefan Agner [Wed, 13 Sep 2017 23:05:49 +0000 (16:05 -0700)] 
linux-firmware: bump to latest linux-firmware git revision

This requires MD5 sum updates for
- LICENSE.QualcommAtheros_ath10k: year change
- WHENCE: various version updates and addition of new firmwares

The new firmware for Qualcom Venus causes a QA error:
  QA Issue: linux-firmware: Recipe inherits the allarch class, but has packaged architecture-specific binaries

Since firmware typically do not run on the CPU, the architecture of
the firmware file is independent from the CPU architecture the image
will be running on. Disable the QA check for the linux-firmware
package by default.

(From OE-Core rev: a83dd65e64e9b7fa702927f96947bd3f0537adfd)

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoqemurunner: print tail qemu log in case bootlog is empty
Leonardo Sandoval [Fri, 22 Sep 2017 23:05:41 +0000 (16:05 -0700)] 
qemurunner: print tail qemu log in case bootlog is empty

There are cases where the 'while loop' waiting for login prompt fails
and the bootlog variable does not get populated, thus use the the new
qemurunner member (self.msg) which stores all output coming from the qemu
process.

[YOCTO #12113]

(From OE-Core rev: 39ffa0f3779305c5e8ef86fe4572e961c5912021)

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoclasses: drop image dependencies on TOPDIR variable
Paul Eggleton [Mon, 25 Sep 2017 11:23:35 +0000 (00:23 +1300)] 
classes: drop image dependencies on TOPDIR variable

We don't need a dependency on this variable changing, and having one
causes locked signature warnings during eSDK installation if you have
INITRAMFS_IMAGE_* set (since TOPDIR will always be different between
the eSDK and the environment in which it was built).

Relates to [YOCTO #12102].

(From OE-Core rev: 073610af04be326f9245ca91714526b390fb72cd)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: bitbake: lib/bb/utils: fix movefile() copy to dir fallback
Mardegan, Alberto [Thu, 21 Sep 2017 14:33:52 +0000 (14:33 +0000)] 
bitbake: bitbake: lib/bb/utils: fix movefile() copy to dir fallback

When the destination is a directory, building the the destination file
path is always needed.  That's because even if the copy fallback is
taken, it's always followed by a rename.

(Bitbake rev: 14c17480827ced2e03c1b62dc839696421fc4de8)

Signed-off-by: Alberto Mardegan <amardegan@luxoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobitbake: server/process: Increase runCommand timeout
Richard Purdie [Fri, 22 Sep 2017 16:17:59 +0000 (17:17 +0100)] 
bitbake: server/process: Increase runCommand timeout

We were seeing cases where we could hit the 5s timeout on large/fast machines
running many different tasks at once. Increase this to 30s since the main
connection timeout path should no longer hit this slow path.

[YOCTO #12116]

(Bitbake rev: 131d4b8a5834781a93ed41e2967d8dcd4d80f29a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouseradd-staticids: don't create username-group if gid is specified
André Draszik [Fri, 22 Sep 2017 09:00:10 +0000 (10:00 +0100)] 
useradd-staticids: don't create username-group if gid is specified

Adding distcc to an image, and having staticids enabled,
doesn't work as it causes a a superfluous 'distcc' group
being added using a conflicting  GID, thus failing the
build:
 | ERROR: distcc-3.2-r0 do_prepare_recipe_sysroot: distcc: groupadd command did not succeed.

Compared to other recipes, the distcc recipe only
specifies --gid for the primary group, and doesn't specify
--no-user-group, but when --gid is given, it doesn't make
sense to create a matching username-group in addition,
even if --no-user-group was not specified, and 'useradd'
actually complains if --gid and --user-group are given
both.

If only --gid is given, the current code in here
effectively behaves as if --user-group was specified,
taking the group-id of the username-group from the
--gid parameter. This causes the error above, as we try
to add a new group (distcc) with an existing group-id
(nogroup).

This is contrary to the comment in this file just above,
contrary to what useradd can do, contrary to behaviour
without the useradd-staticids bbclass, and non-intuitive.

Change the code such that a username-group is only created
- if a primary group using --gid was not specified, or
- if --no-user-group was not specified

To be in line with useradd, if gid is not given, and
--no-user-group is given, we add the user to the group
'users', which mimics useradd's behaviour.

(From OE-Core rev: fc3a86ae68919cec72c1a8ae0f9ba1f98ae13f0d)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agolame: fix CVE-2017-13712
Kai Kang [Fri, 22 Sep 2017 06:27:51 +0000 (14:27 +0800)] 
lame: fix CVE-2017-13712

Backport patch to fix CVE-2017-13712 for lame.

(From OE-Core rev: 3e80f86b4227f1d6ddd604a0738449d93f01c03f)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agostaging: Reduce verbosity of log messages
Richard Purdie [Thu, 21 Sep 2017 22:19:10 +0000 (23:19 +0100)] 
staging: Reduce verbosity of log messages

The staging changes were very verbose in their logging and whilst this is useful
when staging issues occur, those thankfully seem rare now and we can tune down
the logging to a sane level. This improves the readability of error messages from
functions that fail.

The code is still verbose when its replacing things in the sysroot.

(From OE-Core rev: a22d44c6bef7ea1be90aeb32ccd7502d3135a266)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopseudo: Add fastop reply fix
Richard Purdie [Fri, 22 Sep 2017 11:39:33 +0000 (12:39 +0100)] 
pseudo: Add fastop reply fix

This changes the pseudo FASTOP functionality so that a reply to the
operation is required. This means we then cannot lose data if a connection
is closed. This in turn stops corruption if we run out of file handles
and have to close connections.

This tweaks the connection closure patch to update the comment there which
is now outdated.

(From OE-Core rev: eb49d50b4c342069087886f2aac546805647c066)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agopseudo: use epoll API on Linux
Alexander Kanavin [Fri, 22 Sep 2017 15:18:46 +0000 (18:18 +0300)] 
pseudo: use epoll API on Linux

The idea came up here:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=11309
and here:
http://lists.openembedded.org/pipermail/openembedded-core/2017-August/141491.html

(From OE-Core rev: 7fb4661b4e4c839b60975c3b8b0b163e1f84ab2e)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agogstreamer1.0-libav: Fix build on mips
Khem Raj [Thu, 21 Sep 2017 17:42:15 +0000 (10:42 -0700)] 
gstreamer1.0-libav: Fix build on mips

(From OE-Core rev: c70812de7d9e35e9fc01a1b4b142a5261913fb03)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agouboot-extlinux: fix extlinux creation race (take 2)
André Draszik [Thu, 21 Sep 2017 11:29:52 +0000 (12:29 +0100)] 
uboot-extlinux: fix extlinux creation race (take 2)

Alternative solution to original commit
60c90398580998b2379bb438f0f75b29285135a5 ("u-boot: fix extlinux
creation race")

(Untested)

(From OE-Core rev: e44b72ab45c757cc83c7856c118588f1af299790)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoRevert "u-boot: fix extlinux creation race"
André Draszik [Thu, 21 Sep 2017 11:25:17 +0000 (12:25 +0100)] 
Revert "u-boot: fix extlinux creation race"

This reverts commit 60c90398580998b2379bb438f0f75b29285135a5.

This causes circular dependencies when UBOOT_SIGN_ENABLE is active.

These are usually caused by circular dependencies and any circular dependency chains found will be printed below. Increase the debug level to see a list of unbuildable tasks.

Identifying dependency loops (this may take a short while)...

ERROR:
Dependency loop #1 found:
  Task u-boot.bb:do_concat_dtb (dependent Tasks ['kernel.bb:do_assemble_fitimage'])
  Task u-boot.bb:do_install (dependent Tasks ['u-boot.bb:do_concat_dtb', 'pseudo_1.8.2.bb:do_populate_sysroot', 'u-boot.bb:do_compile'])
  Task u-boot.bb:do_deploy (dependent Tasks ['u-boot.bb:do_deploy_dtb', 'u-boot.bb:do_install'])
  Task .../recipes-kernel/linux/kernel.bb:do_assemble_fitimage (dependent Tasks ['kernel.bb:do_compile', 'u-boot.bb:do_deploy'])

(From OE-Core rev: 7da4c0a56eb2027b3e36b9e42f1f83dfb02bb920)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-devicetree.bbclass: Add support to generate append to kernel
Otavio Salvador [Thu, 21 Sep 2017 13:58:33 +0000 (10:58 -0300)] 
kernel-devicetree.bbclass: Add support to generate append to kernel

The are use cases where the Device Tree appended to the kernel is
convinient, so we generate the bundle concatenating the kernel (and
potentionally the initramfs) and the Device Tree binaries.

To enable it, set KERNEL_DEVICETREE_BUNDLE variable to '1'

(From OE-Core rev: f044567326988e84e5d72040e9387c3240836ddb)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoxf86-video-intel: use uxa to replace sna as the default acceleration mode
Li Zhou [Thu, 21 Sep 2017 02:16:18 +0000 (10:16 +0800)] 
xf86-video-intel: use uxa to replace sna as the default acceleration mode

The sna mode causes screen distortion issue on board MinnowMAX
described in this link:
https://bugs.freedesktop.org/show_bug.cgi?id=100700
The uxa mode is verified to not have above issue.
uxa is more stable and has more releases than sna.
So use uxa to replace sna as the default acceleration mode.

(From OE-Core rev: ce935784cfc53c029c8dfa969d08ee43a8831b60)

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-fitimage: support MIPS (compressed)
André Draszik [Wed, 20 Sep 2017 09:41:57 +0000 (10:41 +0100)] 
kernel-fitimage: support MIPS (compressed)

On MIPS, the compressed kernel image target is vmlinuz.bin

(From OE-Core rev: 74d97569aa4e0f82e094a539dec302076103affa)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-uboot: support compressed kernel on MIPS
André Draszik [Wed, 20 Sep 2017 09:41:56 +0000 (10:41 +0100)] 
kernel-uboot: support compressed kernel on MIPS

MIPS generates vmlinuz.bin when compression in the kernel build is
enabled, including any necessary objcopy so we can leverage that
and skip our manual invocation of objcopy here. We just have to
put the file into the right place for the rest of the build to
find it.

(From OE-Core rev: 00bc7682473c2558d72ba42c182f8e3bd445f8af)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-uimage: optimise UBOOT_ENTRYSYMBOL support
André Draszik [Wed, 20 Sep 2017 09:41:55 +0000 (10:41 +0100)] 
kernel-uimage: optimise UBOOT_ENTRYSYMBOL support

This is the remaining local change to a fix similar to
commit e0b4f018d1c2 ("kernel-uimage.bbclass: Fix up
generation of uImage from vmlinux"):

Make awk exit on match to save a few CPU cycles so as
to make this similar to kernel-fitimage.bbclass

(From OE-Core rev: 614e8be7a89a2f2113fa40b11e7a05b9e8155f6a)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-fitimage: unbreak UBOOT_ENTRYSYMBOL support
André Draszik [Wed, 20 Sep 2017 09:41:54 +0000 (10:41 +0100)] 
kernel-fitimage: unbreak UBOOT_ENTRYSYMBOL support

- vmlinux is located in ${B}, not ${S}.
- parsing of nm output got broken completely in commit
  b406a89935f148779569fa3770776e009dd51f13 ("kernel-fitimage: add
  initramfs support"), commit ec755d2524fcbd9dfded23a576f25c990d405a6c
  in yocto

While at it, make awk exit on match to save a few CPU cycles.

(From OE-Core rev: 9d2ec9c046c4a9c6a842d28133d40639f5a65297)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-fitimage: sanitize dtb section name (unbreak MIPS)
André Draszik [Wed, 20 Sep 2017 09:41:53 +0000 (10:41 +0100)] 
kernel-fitimage: sanitize dtb section name (unbreak MIPS)

We can't build fitImages for MIPS any more:
| Error: fit-image.its:21.27-28 syntax error
| FATAL ERROR: Unable to parse input tree
| uboot-mkimage: Can't read arch/mips/boot/fitImage.tmp: Invalid argument

Since commit cd2ed7f80b555add07795cc0cbaee866e6c193a3
("kernel-fitimage: dtb sections named by their filenames
and one config section for each dtb"), commit
1ec405ef5df82884c8997878bbe6c66d924b5127 in yocto, dtb
sections are named by the DTB filename, but the filename
can legally be in a subdirectory below
arch/$arch/boot/dts/, and on MIPS all DTBs are actually
in a subdirectory.

If so, mkimage fails with the above error message.

Unbreak this by replacing the offending character
(directory separator /)

(From OE-Core rev: 335fc50cf54e47db4e3d5c35a9846484faf0270f)

Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agosysklogd: conflict with other syslog daemons
Chen Qi [Tue, 5 Sep 2017 09:55:27 +0000 (17:55 +0800)] 
sysklogd: conflict with other syslog daemons

Set RCONFLICTS to disallow multiple syslog daemon providers to be installed
on the target, and remove codes that deal with such situation.

Also, set ALTERNATIVE_PRIORITY back to 100. It was set to '10' in case of
systemd because sysklogd didn't have systemd support. For now, if we disallow
multiple syslog daemons to be installed, and it stays '10', then if sysklogd
is installed on target, the /sbin/syslogd would link to /bin/busybox.nosuid,
causing sysklogd service files using busybox's utility.

(From OE-Core rev: ecc116603079b45b1fa69c3d4537b19b28707859)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agobusybox: fix syslog related meta data
Chen Qi [Tue, 5 Sep 2017 09:55:26 +0000 (17:55 +0800)] 
busybox: fix syslog related meta data

Set RCONFLICTS to disallow multiple syslog daemon providers to be installed
on the target at the same time,  and remove codes which dealt with such
situation.

Supporting multiple syslog daemons on the same image doesn't have much sense.
rsyslog and syslog-ng in meta-oe have set RCONFLICTS to disallow this. And
we do the same for busybox.

Also, remove the line of creating a meaningless symlink of
/lib/systemd/syslog.service to /dev/null.

(From OE-Core rev: 597bbf99ee8e88294f2ed96c84a51f9ed83e8933)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoopenssh: Fix key generation with systemd
Joshua Watt [Tue, 4 Jul 2017 01:18:18 +0000 (20:18 -0500)] 
openssh: Fix key generation with systemd

106b59d9 broke SSH host key generation when systemd and a read-only root file
system are in use because there isn't a way for systemd to get the optional
weak assigment of SYSCONFDIR from /etc/default/sshd and still provide a default
value if it is not specified. Instead, move the logic for determining if keys
need to be created to a helper script that both the SysV init script and the
systemd unit file can reference.

This does mean that the systemd unit file can't check for file existence to
know if it should start the service, but it wasn't able to do that correctly
anyway anymore. This should be a problem since the serivce is only run once per
power cycle by systemd, and should exit quickly if the keys already exist

(From OE-Core rev: 7e49c5879862253ae1b6a26535d07a2740a95798)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agowic: allow multiple /boot partitions with different content
Enrico Scholz [Fri, 8 Sep 2017 17:33:02 +0000 (19:33 +0200)] 
wic: allow multiple /boot partitions with different content

It can be useful to have multiple partitions with '--source bootimg-partition'
but different content.

E.g. for TI AM335x, one boot partition can contain an first stage
bootloader ("MLO"), while the real bootloader and kernel plus devicetree
are in another one.

Patch allows to specify multiple IMAGE_BOOT_FILES with optional "_label-XXX"
or "_uuid-XXX" overrides.

E.g. with this patch, a .wks file with

| part --source bootimg-partition ... --label=mlo --active
| part --source bootimg-partition ... --label=boot0
| part --source bootimg-partition ... --label=boot1

and a recipe with

| IMAGE_BOOT_FILES_label-mlo = "\
|   MLO-${MACHINE}.img;MLO \
| "
|
| IMAGE_BOOT_FILES_label-boot0 = "\
|   u-boot-${MACHINE}.img;u-boot.img \
|   zImage \
| "
|
| IMAGE_BOOT_FILES_label-boot1 = "${IMAGE_BOOT_FILES_label-boot0}"
|
| WICVARS += " \
|   IMAGE_BOOT_FILES_label-mlo \
|   IMAGE_BOOT_FILES_label-boot0 \
|   IMAGE_BOOT_FILES_label-boot1 \
| "

is possible.  It will create one partition with the MLO and two redundant
ones with the uboot + kernel.

(From OE-Core rev: 8c1dec627e9735260516fe8f0b2bfdb0ee70172b)

Signed-off-by: Enrico Scholz <enrico.scholz@ensc.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodev-manual, ref-manual: Image format implementation changes
Scott Rifenbark [Fri, 22 Sep 2017 15:31:50 +0000 (08:31 -0700)] 
dev-manual, ref-manual: Image format implementation changes

Recently a number of changes have happened on the implementation
side of some image formats, and a few have been renamed.
The u-boot image signing code is now always available and no
longer in a stand-alone file.  The vmdk/mdi/qcow2 images have
been removed and are now just a conversion type that is applied
to wic images.

Reported-by: Tom Rini <trini@konsulko.com>
(From yocto-docs rev: ce86da3d48507cee12208e0138c285b4be83d8cd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Edits to the devtool kernel development method.
Scott Rifenbark [Thu, 21 Sep 2017 23:55:18 +0000 (16:55 -0700)] 
kernel-dev: Edits to the devtool kernel development method.

Changes based on a run through of the procedure.

(From yocto-docs rev: 0a526bb15f597843d1e5da1eeca0a952c6c5016f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodev-manual: Replaced release names and numbers with variables
Scott Rifenbark [Thu, 21 Sep 2017 20:15:21 +0000 (13:15 -0700)] 
dev-manual: Replaced release names and numbers with variables

In several examples, hardcoded versions of release names and
versions were being used.  I updated to use variables from
poky.ent so that examples would use most recent release.

(From yocto-docs rev: 53f8e92075cc34538f36d7fba392ea1ac9a6dd1f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agodocumentation: Purged "oe-init-build-env-memres" from docs
Scott Rifenbark [Thu, 21 Sep 2017 16:36:46 +0000 (09:36 -0700)] 
documentation: Purged "oe-init-build-env-memres" from docs

Fixes [YOCTO #11968]

Purged all occurrences of the "oe-init-build-env-memres" script
from the YP documentation set.  Occurrences in a lot of places.
The BBSERVER variable was also impacted and had to have the
definition updated.

(From yocto-docs rev: 274b05108d1bc53df20c11ab2efa15363bce23da)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Added note about running a clean build with a patch
Scott Rifenbark [Thu, 21 Sep 2017 01:54:03 +0000 (18:54 -0700)] 
kernel-dev: Added note about running a clean build with a patch

Put this note at the end of the traditional kernel development
flow.  A way for the user to verify that the patch was applied
for a subsequent build.

(From yocto-docs rev: 598a518cd92980e1781649a3ed30ac585327dc0f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agoref-manual: Added "N" category to glossary
Scott Rifenbark [Wed, 20 Sep 2017 23:54:28 +0000 (16:54 -0700)] 
ref-manual: Added "N" category to glossary

Discovered this item in the front of the glossary was commented
out and not showing up so the user did not have the option to
click on "N" to quickly get to the "N" entries, which did exist
and show up.  Uncommented it and put the proper beginning "N"
variable in as the start.

(From yocto-docs rev: 6d51dfb9de53db1222f68a6f0325eaad1a12cd6b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to the traditional kernel development flow section.
Scott Rifenbark [Wed, 20 Sep 2017 23:53:58 +0000 (16:53 -0700)] 
kernel-dev: Updates to the traditional kernel development flow section.

(From yocto-docs rev: d81143d6ae27e2e360f923bde8e578e583a969a1)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to creating a layer section.
Scott Rifenbark [Wed, 20 Sep 2017 19:27:22 +0000 (12:27 -0700)] 
kernel-dev: Updates to creating a layer section.

(From yocto-docs rev: a57ba3f227831225a544df1ab774422364b91d6f)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
7 years agokernel-dev: Updates to layer creation steps for kernel examples.
Scott Rifenbark [Wed, 20 Sep 2017 17:11:11 +0000 (10:11 -0700)] 
kernel-dev: Updates to layer creation steps for kernel examples.

(From yocto-docs rev: 8044f6e255905f3e4798d20e6e89aaa93d2892fb)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>