]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/log
thirdparty/openembedded/openembedded-core-contrib.git
6 years agodev-manual, ref-manual: Updated available names for TEST_TARGET
Paulo Neves [Tue, 7 Aug 2018 22:01:17 +0000 (15:01 -0700)] 
dev-manual, ref-manual: Updated available names for TEST_TARGET

The documentation of available names for TEST_TARGET has been
updated to match the convention of using the class names of
controllers.

This commit was modified some to make it work.  Fixed some
formatting errors and isolated and changed missed instances.

(From yocto-docs rev: 1bec1dc38cdd1746ce6dd539f9c3e5665d12ab8e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Edits to section on setting up CROPS
Scott Rifenbark [Thu, 2 Aug 2018 23:05:26 +0000 (16:05 -0700)] 
dev-manual: Edits to section on setting up CROPS

Performed some edits to bring things in line for the "build host"
terminology.

(From yocto-docs rev: 4fedbdac437691b8a0f8d56931fcaad461c7463a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodocumentation: Changed section title for required packages.
Scott Rifenbark [Tue, 31 Jul 2018 22:51:15 +0000 (15:51 -0700)] 
documentation: Changed section title for required packages.

The title needs to use the terminology "Build Host" to be consistent
with the manual set.  I updated the title and the many links into that
section.

(From yocto-docs rev: 930030433e58e6180ee4f95e559d079c3899defc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Updates to "Setting Up a Native Linux Host"
Scott Rifenbark [Tue, 31 Jul 2018 22:32:06 +0000 (15:32 -0700)] 
dev-manual: Updates to "Setting Up a Native Linux Host"

I made some terminology changes to be consistent with the
"build host" term.

(From yocto-docs rev: 8e00f6453cbc470c7572f2c18e23e44ce18a7336)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Adjusted "build host" wording.
Scott Rifenbark [Tue, 31 Jul 2018 22:19:29 +0000 (15:19 -0700)] 
dev-manual: Adjusted "build host" wording.

Fixed the "Preparing the Build Host" section to consistently use
the terminolgy "build host".

(From yocto-docs rev: 6199dde0611b4f077dfb2ad1ebdcc1414c4a081a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Added "recommended" for choosing native linux build host.
Scott Rifenbark [Tue, 31 Jul 2018 22:10:24 +0000 (15:10 -0700)] 
dev-manual: Added "recommended" for choosing native linux build host.

(From yocto-docs rev: cddc649590fc6cea74a0b78a584e00e22088541c)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodocumentation: Fixed bad target ID for the dev-manual.
Scott Rifenbark [Tue, 31 Jul 2018 21:59:20 +0000 (14:59 -0700)] 
documentation: Fixed bad target ID for the dev-manual.

This fix involved a few other manuals.

(From yocto-docs rev: d2659951a458a8db773e8c1b2b86a7b109d667fa)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Fixed typo in id anchor for a section heading.
Scott Rifenbark [Mon, 30 Jul 2018 22:36:18 +0000 (15:36 -0700)] 
dev-manual: Fixed typo in id anchor for a section heading.

(From yocto-docs rev: 05e6520843fda764f3090c7d681f8fdad5f80311)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Updated team development environment section.
Scott Rifenbark [Mon, 30 Jul 2018 22:35:06 +0000 (15:35 -0700)] 
dev-manual: Updated team development environment section.

Found several areas that needed improvement.  Made these
modifications.

(From yocto-docs rev: e2125363d39b9a54a371fc737cc9b55d66c9be59)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodev-manual: Updates to intro chapter.
Scott Rifenbark [Fri, 27 Jul 2018 20:46:46 +0000 (13:46 -0700)] 
dev-manual: Updates to intro chapter.

(From yocto-docs rev: a991415c8645a3ad31bf2dd20f932d7f3b4ebe18)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: UPdates to the PNBLACKLIST variable description
Scott Rifenbark [Thu, 26 Jul 2018 22:45:43 +0000 (15:45 -0700)] 
ref-manual: UPdates to the PNBLACKLIST variable description

(From yocto-docs rev: c8a606dbce01132e95250c33270ff729cadc2c0e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Minor intro wording change
Scott Rifenbark [Mon, 23 Jul 2018 21:39:41 +0000 (14:39 -0700)] 
sdk-manual: Minor intro wording change

(From yocto-docs rev: 953db3d0b5fe14411e944b021a2f6f50a5bdeabd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Removed non-existant variable from PACKAGE_WRITE_DEPS description
Scott Rifenbark [Fri, 20 Jul 2018 16:15:10 +0000 (09:15 -0700)] 
ref-manual: Removed non-existant variable from PACKAGE_WRITE_DEPS description

Took out an occurrence of PACKAGE_WRITE_DEPENDS

(From yocto-docs rev: f7b2c7c08f3f504e14943a01e7fc0a73c96e9636)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Fixed bad anchor string.
Scott Rifenbark [Thu, 19 Jul 2018 23:24:28 +0000 (16:24 -0700)] 
sdk-manual: Fixed bad anchor string.

Broken link fixed.

(From yocto-docs rev: 420bc55ceac1d8c89f9153a70c8b4e3ca38d747d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updated section on minimizing eSDK installer size
Scott Rifenbark [Thu, 19 Jul 2018 22:12:12 +0000 (15:12 -0700)] 
sdk-manual: Updated section on minimizing eSDK installer size

I made some re-writes for clearity.

(From yocto-docs rev: a68619a2ba8b7877cde6c9ef7dbb726adc75b0cd)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Converted bullet list to ordered list
Scott Rifenbark [Thu, 19 Jul 2018 21:59:51 +0000 (14:59 -0700)] 
sdk-manual: Converted bullet list to ordered list

On second thought, the list I turned into a bullet list from the
previous commit was a bit hasty.  That list is order dependent.
Reverted the list.

(From yocto-docs rev: 9ea640ffea2a2c9827f18070a5b287453c8653e9)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updated "Providing Additional Installable Extensible SDK Content"
Scott Rifenbark [Thu, 19 Jul 2018 21:54:50 +0000 (14:54 -0700)] 
sdk-manual: Updated "Providing Additional Installable Extensible SDK Content"

The list appears to be not a numbered list.  Fixed that.  Also, provided
better wording around "exposing" the sstate-cache.

(From yocto-docs rev: 15c65db41c9e6eddf7d12e138f6c63755e845beb)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Provided better wording for sharing HTTP or HTTPS server
Scott Rifenbark [Thu, 19 Jul 2018 21:29:14 +0000 (14:29 -0700)] 
sdk-manual: Provided better wording for sharing HTTP or HTTPS server

Step 1 of the "Providing Updates to the Extensible SDK After Installation"
section really did not do much for the reader regarding setting up a
HTTP or HTTPS directory.  I added more detail on how to generally do
that.

(From yocto-docs rev: ff250cea239668db5fe26aa912942c0d142833fa)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Edits to the section that changes the sdk title
Scott Rifenbark [Wed, 18 Jul 2018 21:08:37 +0000 (14:08 -0700)] 
sdk-manual: Edits to the section that changes the sdk title

Made some suggestions on how and where to edit the SDK_TITLE
variable.

(From yocto-docs rev: 4a4393e00c7108eefaaeaa3951a75524589bf360)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updated section on changing SDK installer title.
Scott Rifenbark [Wed, 18 Jul 2018 20:23:27 +0000 (13:23 -0700)] 
sdk-manual: Updated section on changing SDK installer title.

I added more detail to this section.

(From yocto-docs rev: 15beb33eadd03391a1af0c9bad0620cefad2a0e2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updated the SDK_TITLE variable description
Scott Rifenbark [Wed, 18 Jul 2018 20:16:05 +0000 (13:16 -0700)] 
ref-manual: Updated the SDK_TITLE variable description

Provided more detail and a cross-reference into the SDK manual
where you can change the title through the variable.

(From yocto-docs rev: 9617fa70caef48328455a02d5260e536fac19c53)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Added section on changing the default ext. SDK install directory
Scott Rifenbark [Tue, 17 Jul 2018 22:50:14 +0000 (15:50 -0700)] 
sdk-manual: Added section on changing the default ext. SDK install directory

(From yocto-docs rev: d3f0c7b9e2ddea3fec6f42fc9a3c8806b02119f3)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Added SDKEXTPATH variable description.
Scott Rifenbark [Tue, 17 Jul 2018 21:38:42 +0000 (14:38 -0700)] 
ref-manual: Added SDKEXTPATH variable description.

This variable is the default installation directory for the
Extensible SDK.  By default, it is "poky_sdk".  You can override
this variable so it needed to be documented.  The ideal place to
override it is in the distribution configuration file.

(From yocto-docs rev: 67eca50fa973073ce6e7975ab66b89b9706c25c0)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updates to sections for updating installed Ext SDKs
Scott Rifenbark [Mon, 16 Jul 2018 21:28:52 +0000 (14:28 -0700)] 
sdk-manual: Updates to sections for updating installed Ext SDKs

There are two sections that deal with this topic.  One is from the
standpoint of a user using a 3rd party published and installed
extensible SDK ("Applying Updates to an Installed Extensible SDK").
The other is from the standpoint of a person providing Extensible
SDKs for consumption ("Providing Updates to the Extensible SDK
After Installation").  These sections needed some closer examination
regarding fully describing what was going on.  I provided some
re-writes to both.

(From yocto-docs rev: 1c60b13b5f1813d6e3688e1efce32b7f31422e86)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Changed title to updating the SDK after install
Scott Rifenbark [Mon, 16 Jul 2018 20:22:10 +0000 (13:22 -0700)] 
sdk-manual: Changed title to updating the SDK after install

The title for the section on how to effect changes to an installed
extensible SDK is better suited as "Providing Updates to the
Extensible SDK AFter Installation."

(From yocto-docs rev: 2120ba194abada1769be28ae2737ac12a16adebc)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Fixed grammar error
Scott Rifenbark [Mon, 16 Jul 2018 20:15:43 +0000 (13:15 -0700)] 
sdk-manual: Fixed grammar error

In "Providing Updates After Installing the Extensible SDK" section,
Step 1 had a bit of a grammar error.  Not technically, but it
could have been written better.  I fixed that.

(From yocto-docs rev: 20f1cad5a813697afd99837699bf52a6586893bb)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updated section on changing title of extensible SDK installer
Scott Rifenbark [Fri, 13 Jul 2018 19:25:58 +0000 (12:25 -0700)] 
sdk-manual: Updated section on changing title of extensible SDK installer

I added more information on how this is done.  Still could use a bit
of detail on how you actually do it.

(From yocto-docs rev: 007bbe40fd11a5f880adf7ad8137d1535f08c815)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updated DISTRO_NAME variable description.
Scott Rifenbark [Fri, 13 Jul 2018 19:06:08 +0000 (12:06 -0700)] 
ref-manual: Updated DISTRO_NAME variable description.

I provided some real detail on this variable.  It was woefully brief.

(From yocto-docs rev: 4282fabddc81bf4c0fbd0a641ec4f1e9754660c2)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updated the DISTRO variable description
Scott Rifenbark [Fri, 13 Jul 2018 18:55:32 +0000 (11:55 -0700)] 
ref-manual: Updated the DISTRO variable description

I added a cross-reference to the "DISTRO_NAME" variable as it is
the long version of the distribution name.

(From yocto-docs rev: bb5638409faadb9c6a5fbca729e4e6b8a220433d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Grammar fix
Scott Rifenbark [Thu, 12 Jul 2018 20:11:24 +0000 (13:11 -0700)] 
sdk-manual: Grammar fix

(From yocto-docs rev: b850e0d520401a52fbba083975f05f529b2b554d)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updates to "Adjusting the Extensible SDK to Suit Build Host"
Scott Rifenbark [Thu, 12 Jul 2018 18:35:05 +0000 (11:35 -0700)] 
sdk-manual: Updates to "Adjusting the Extensible SDK to Suit Build Host"

I updated this section with clearer text.

(From yocto-docs rev: 433388ff37297d905c465a5f05d93953dfe062c5)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Updates to "Configuring the Extensible SDK" section
Scott Rifenbark [Wed, 11 Jul 2018 22:42:57 +0000 (15:42 -0700)] 
sdk-manual: Updates to "Configuring the Extensible SDK" section

Made improvements to this section and tied the variables together
for the explanation.

(From yocto-docs rev: de882b81ed8525dee5e10f247cc6f5c8f15e0f72)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Fixed cross-reference wording in SDK_LOCAL_CONF_WHITELIST
Scott Rifenbark [Wed, 11 Jul 2018 22:40:25 +0000 (15:40 -0700)] 
ref-manual: Fixed cross-reference wording in SDK_LOCAL_CONF_WHITELIST

Wording did not match that of similar SDK variables.

(From yocto-docs rev: 696eb9ff0b89222dc696adc0bd28247c0a0c731a)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Fixed grammar error in SDK_INHERIT_BLACKLIST description
Scott Rifenbark [Wed, 11 Jul 2018 22:36:46 +0000 (15:36 -0700)] 
ref-manual: Fixed grammar error in SDK_INHERIT_BLACKLIST description

(From yocto-docs rev: 0a5775f7ad3e0b6531fcfd1d328d8e0da8727400)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Added cross-reference to SDK_LOCAL_CONF_BLACKLIST var
Scott Rifenbark [Wed, 11 Jul 2018 22:32:49 +0000 (15:32 -0700)] 
ref-manual: Added cross-reference to SDK_LOCAL_CONF_BLACKLIST var

Put in a cross-reference to the section in the sdk-manual where it
talks about customizing the configuration of the extensible SDK.

(From yocto-docs rev: 062db19dd56cc1827ebd7614eb8a54660421df62)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updated the SDK_INHERIT_BLACKLIST variable description
Scott Rifenbark [Wed, 11 Jul 2018 22:28:52 +0000 (15:28 -0700)] 
ref-manual: Updated the SDK_INHERIT_BLACKLIST variable description

Added information on the class in which the default is set.  Also,
put in a reference for more information on customizing the
extensible SDK configuration.

(From yocto-docs rev: a0145996aeac1bb45fea9f613789b00327f92d1e)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updated the SDK_LOCAL_CONF_WHITELIST variable description
Scott Rifenbark [Wed, 11 Jul 2018 22:09:07 +0000 (15:09 -0700)] 
ref-manual: Updated the SDK_LOCAL_CONF_WHITELIST variable description

Enhanced this description by indicating the class that it is set in
and by including a pointer back into the sdk-manual where filters
are described for extending the extensible SDK.

(From yocto-docs rev: 355b05366aadc337ec3337c0a3c918a23027923b)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoref-manual: Updated the SDK_LOCAL_CONF_BLACKLIST variable description
Scott Rifenbark [Wed, 11 Jul 2018 21:50:34 +0000 (14:50 -0700)] 
ref-manual: Updated the SDK_LOCAL_CONF_BLACKLIST variable description

Added more detail including the class that sets the default variables
for exclusion and the list of actual variables that are excluded by
default.

(From yocto-docs rev: f24287851998d554575c6aaf9dcc50d198931e48)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual, mega-manual: Updated the fig for installed ext. SDK
Scott Rifenbark [Tue, 10 Jul 2018 21:47:33 +0000 (14:47 -0700)] 
sdk-manual, mega-manual: Updated the fig for installed ext. SDK

This figure had changed.  I updated the file and folder hierarchy.

Also fixed some wording.

(From yocto-docs rev: 359292397781f9f5eac2fb693d89ec286ddf9940)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual, mega-manual: Updated standard SDK install directory figure
Scott Rifenbark [Tue, 10 Jul 2018 21:24:07 +0000 (14:24 -0700)] 
sdk-manual, mega-manual: Updated standard SDK install directory figure

The figure was incorrect for the installed file and folder hierarchy
for a standard SDK.  I updated it.  This figure goes in both the sdk-manual
and the mega-manual.

(From yocto-docs rev: a0dc11ce74bba0a18f385d9800f93524340ed033)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Final edits to the extracting root filesystem section
Scott Rifenbark [Tue, 10 Jul 2018 20:35:21 +0000 (13:35 -0700)] 
sdk-manual: Final edits to the extracting root filesystem section

Verified a good example and updated the text to match that example.

(From yocto-docs rev: 053467557ef22ce37762222a2997ff9c10be87e8)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosdk-manual: Added note in step to set SDKMACHINE
Scott Rifenbark [Mon, 9 Jul 2018 21:05:28 +0000 (14:05 -0700)] 
sdk-manual: Added note in step to set SDKMACHINE

The value of SDKMACHINE must match the architecture of the machine
on which the SDK installer is being built if you are building an
installer for an extensible SDK.  I added a note to this effect.

(From yocto-docs rev: ffdd9a9d00cccf270b5aa236279e6eeea0ff47ed)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: utils/md5_file: don't iterate line-by-line
Ross Burton [Mon, 13 Aug 2018 18:02:25 +0000 (19:02 +0100)] 
bitbake: utils/md5_file: don't iterate line-by-line

Opening a file in binary mode and iterating it seems like the simple solution
but will still break on newlines, which for binary files isn't really useful as
the size of the chunks could be huge or tiny.

Instead, let's be a bit more clever: we'll be MD5ing lots of files, but we don't
want to fill up memory: use mmap() to open the file and read the file in 8k
blocks.

(Bitbake rev: a0ac8d67f1471a0c611d691b856fede67efb53f6)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosystemd: fixes for the compatibility interface
Andrej Valek [Tue, 14 Aug 2018 10:21:19 +0000 (12:21 +0200)] 
systemd: fixes for the compatibility interface

Use a heap allocated string to set arg_ifname, since a stack allocated
one would be lost after the function returns. (This last one broke the
case where an interface name was suffixed with a dot, such as in
`resolvconf -a tap0.dhcp`.)

(From OE-Core rev: 48775d2f02d6d4024403796b81d6398f3028b965)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Simon Ausserlechner <simon.ausserlechner@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolinux-firmware: package Marvel usb 8997 firmware
Joshua Watt [Tue, 14 Aug 2018 20:01:51 +0000 (15:01 -0500)] 
linux-firmware: package Marvel usb 8997 firmware

Add package for the firmware required by the Marvell 8997 chipset when
connected over USB.

(From OE-Core rev: 650a33d88abfa42936b61465d2a4d42da53d4018)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibunwind: Fix build with musl+security flags
Khem Raj [Tue, 14 Aug 2018 19:21:34 +0000 (12:21 -0700)] 
libunwind: Fix build with musl+security flags

Fixes
src/os-linux.c:63: undefined reference to `__stack_chk_fail_local'

(From OE-Core rev: 43894faa45884dcc3b6111ed67e1a96fbec019a8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: Support building allarch recipes again
Peter Kjellerstedt [Tue, 14 Aug 2018 19:06:24 +0000 (21:06 +0200)] 
meson: Support building allarch recipes again

This registers "allarch" as a known CPU family.

(From OE-Core rev: f12b64e9332e3988953f87d8cea39ca309be5046)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomeson: Split validate-cpu.patch in three
Peter Kjellerstedt [Tue, 14 Aug 2018 19:06:23 +0000 (21:06 +0200)] 
meson: Split validate-cpu.patch in three

This makes it more suitable to work with, e.g., devtool. It also
prepares for the update to 0.47.0 when the first patch will no longer be
needed (as it is a backport).

(From OE-Core rev: e1297f9a951b1dbafd0e211be63b348f06b1f3cd)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoeglinfo: Fix build with raspberrypi with userland graphics driver
Khem Raj [Tue, 14 Aug 2018 16:32:43 +0000 (09:32 -0700)] 
eglinfo: Fix build with raspberrypi with userland graphics driver

Let pkgconfig figure out headers and libraries instead of manually
forcing waf to do it.

(From OE-Core rev: 283026adda7c184e213dacd7f4e42678c304866a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomusl: Fix dirent struct alignment issue seen on armv5te
Khem Raj [Tue, 14 Aug 2018 16:32:42 +0000 (09:32 -0700)] 
musl: Fix dirent struct alignment issue seen on armv5te

- its a general problem however observed on armv5te based boards in OE
  other arches either have ways to compensate for misaligned access in hardware
  or compiler does not use 8byte alignment

- fix internal linux headers

Full logs
https://git.musl-libc.org/cgit/musl/log/?qt=range&q=9cad27a3dc1a4eb349b6591e4dc8cc89dce32277..1ad8138819ced49851e618c9c063aa0ffc86718c

(From OE-Core rev: 5fb668482e06ecd5de70a860d1bb9cef1019c4e8)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agorunqemu: exit gracefully with an error message if qemu system is not evaluated
Jagadeesh Krishnanjanappa [Tue, 14 Aug 2018 14:35:29 +0000 (20:05 +0530)] 
runqemu: exit gracefully with an error message if qemu system is not evaluated

It solves below error:
-- snip --
return 'qemu-system-%s' % qbsys
UnboundLocalError: local variable 'qbsys' referenced before assignment
-- snip --

[YOCTO #12846]

(From OE-Core rev: 519273f54c0b8a6fff36afeb7646d8e37717be22)

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopcmciautils: remove from oe-core
Ross Burton [Tue, 14 Aug 2018 13:09:28 +0000 (14:09 +0100)] 
pcmciautils: remove from oe-core

PCMCIA is pretty rare these days, so now that the recipe is in meta-oe we can
remove it from oe-core.

(From OE-Core rev: 0f8dcb9c717201c4b1edf4fa55880b432bfb7723)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomesa: Disble TLS for musl
Khem Raj [Tue, 14 Aug 2018 18:34:40 +0000 (11:34 -0700)] 
mesa: Disble TLS for musl

See https://bugs.freedesktop.org/show_bug.cgi?id=35268
mesa should infact stop using __attribute__((tls_model("initial-exec")))
until then we disale TLS in glx for musl
The problem could happen even on glibc if static TLS sizes are large enough
which would mean that additional space the glibc leaves for such rogue libraries
get consumed and then same problems show up there as well

Fixes errors seen in xorg logs e.g.

(EE) Failed to load /usr/lib/xorg/modules/extensions/libglx.so: Error relocating /usr/lib/libGL.so.1: _ITM_deregisterTMCloneTable: initial-exec TLS resolves to dynamic definition in /usr/lib/libGL.so.1

enable readonly text segment on x86 for musl

(From OE-Core rev: f3a59540d0d1f7ab42ba7cb5ff1a26ac3a8a9f68)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/package: Improve test to cover sparseness and hardlinking from sstate
Richard Purdie [Tue, 14 Aug 2018 17:24:14 +0000 (17:24 +0000)] 
selftest/package: Improve test to cover sparseness and hardlinking from sstate

The sparseness test was sometimes working and sometimes failing depending
on whether sstate was valid. This adds an explict test of sstate
to the test for both hardlinking and sparseness. Tweak the test name to
cover the fact its tests sparseness too.

(From OE-Core rev: fe5b37c07b6d07c350516ab6bf849d6d86a84004)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate/lib.oe.path: Ensure file sparseness is preserved
Richard Purdie [Tue, 14 Aug 2018 17:23:10 +0000 (17:23 +0000)] 
sstate/lib.oe.path: Ensure file sparseness is preserved

Files when restored from sstate were missing their sparseness. Fix up various
functions to preserve this and make things more deterministic.

(From OE-Core rev: 055402e5504f041c346571e243c7cf0894955cad)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest: Replace bitbake -p with bitbake -e
Richard Purdie [Tue, 14 Aug 2018 17:20:57 +0000 (17:20 +0000)] 
selftest: Replace bitbake -p with bitbake -e

Parsing all the recipes is annoying when trying to re-execute oe-selftest
and also unnecessary as its really just a sanity check. When the tests were
originally being developed the guard was useful but less so now.

Replace it with bitbake -e which is fast and checks the basic configuration
is valid.

(From OE-Core rev: acec5180b8d2731002979179e08439b615631e70)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate: Ensure a given machine only removes things which it created
Richard Purdie [Tue, 14 Aug 2018 14:56:00 +0000 (14:56 +0000)] 
sstate: Ensure a given machine only removes things which it created

Currently if you build qemux86 and then generic86, the latter will
remove all of the former from deploy and workdir. This is because
qemux86 is i586, genericx86 is i686 and the architctures are compatible
therefore the sstate 'cleaup' code kicks in.

There was a valid reason for this to ensure i586 packages didn't get into
an i686 rootfs for example. With the rootfs creation being filtered now, this
is no longer necessary.

Instead, save out a list of stamps which a give machine has ever seen in
a given build and only clean up these things if they're no longer
"reachable".

In particular this means the autobuilder should no longer spend a load of time
deleting files when switching MACHINE, improving build times.

(From OE-Core rev: 5634f2fb1740732056d2c1a22717184ef94405bf)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage_manager/sdk: Use filtered copies of the deploy ipk/deb directories
Richard Purdie [Tue, 14 Aug 2018 15:18:16 +0000 (15:18 +0000)] 
package_manager/sdk: Use filtered copies of the deploy ipk/deb directories

Similar to rpm, use copies of the ipk/deb directories for rootfs construction.
This means the image creation code can no longer "see" recipes wich aren't in its
dependency chain which is good for a variety of reasons including determinism,
incompatible recipe (e.g. systemd/sysvinit) package conflicts and locking
performance.

(From OE-Core rev: c7c5f4065c102fde4e11d138fb0b6e25bffe0379)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage_manager: Remove rpm specific pieces of create_packages_dir()
Richard Purdie [Tue, 14 Aug 2018 14:55:42 +0000 (14:55 +0000)] 
package_manager: Remove rpm specific pieces of create_packages_dir()

This function is generic, tweak the variable names and move out the rpm specific
directory name to make it truly generic and reusable for deb/ipk.

(From OE-Core rev: dba876639b1fb8ea3ccb182c91e19966c4052115)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Fix locale archive path patch
Richard Purdie [Mon, 13 Aug 2018 12:44:05 +0000 (12:44 +0000)] 
glibc: Fix locale archive path patch

The locale code uses the archive location in two places, ensure both are
corrected to use the environment variable which avoids nasty build
failures when archiving locales in images.

(From OE-Core rev: 3ab1249a2ac92a0fcb008e92cc9ee272441408f4)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoimage: Add locale archive optimisation
Richard Purdie [Mon, 13 Aug 2018 11:40:03 +0000 (11:40 +0000)] 
image: Add locale archive optimisation

Refactor the locale archive function from the SDK to also make it work during
general image creation. This reduces the size of the locales from 900MB to 220MB
in core-image-lsb-sdk.

The exception handling around subprocess was dropped as the standard subprocess
exception printing is better handled than the catchall exception.

(From OE-Core rev: 8ffd93bdb09b0a4a84b27dafcd684c6abba392ed)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoselftest/package: Add test to ensure sparse files are preserved
Richard Purdie [Sun, 12 Aug 2018 22:29:18 +0000 (22:29 +0000)] 
selftest/package: Add test to ensure sparse files are preserved

Add a new element to the hardlink test to check we also preseve file
sparseness during the packing process. This should ensure we don't regress this
issue again.

(From OE-Core rev: 0a4e6974b49bf68c4a4098d339b5d655e202a3fd)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoxf86-video-intel: Fix for glibc
Richard Purdie [Sat, 11 Aug 2018 16:07:18 +0000 (16:07 +0000)] 
xf86-video-intel: Fix for glibc

It fails to build wi9th glibc 2.28, add the missing required header inclusion.

(From OE-Core rev: 8f5f23a5a985f5d48973f27c143b0d5edb8ca797)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoscreen: Add virtual/crypt dependency
Richard Purdie [Sat, 11 Aug 2018 16:06:54 +0000 (16:06 +0000)] 
screen: Add virtual/crypt dependency

screen uses crypt() so add the missing DEPENDS triggered by glibc 2.28.

(From OE-Core rev: 77ca6be2bcac35a54546b0b468a4d68e8cc8b894)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Add make-native depends
Richard Purdie [Sat, 11 Aug 2018 10:30:28 +0000 (11:30 +0100)] 
glibc: Add make-native depends

glibc needs make >= 4 yet some of our build workers have older versions of
make. Add a make-native dependency to work around this until all our supported
distros have a recent version of make.

(From OE-Core rev: 0cd89e4af625941f8ab8c033f72f900a2979b304)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosysvinit: Fix build with glibc 2.28 + libxcrypt
Khem Raj [Wed, 8 Aug 2018 17:04:25 +0000 (10:04 -0700)] 
sysvinit: Fix build with glibc 2.28 + libxcrypt

(From OE-Core rev: 87f2683ca19182dbffe48dc70a1f2628658fc08d)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoppp, libpam: Add missing dep on virtual/crypt
Khem Raj [Wed, 8 Aug 2018 17:04:24 +0000 (10:04 -0700)] 
ppp, libpam: Add missing dep on virtual/crypt

(From OE-Core rev: 0842bd7093040d1f99ffa0523b993341653b1c87)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Disable crypt support in glibc
Khem Raj [Wed, 8 Aug 2018 17:04:22 +0000 (10:04 -0700)] 
glibc: Disable crypt support in glibc

Drop packaging libcrypt from 2.28+ onwards
We have independent crypt implementation coming from libxcrypt

(From OE-Core rev: 6146b8c4216daf56a69f4e3531861302df6a63a2)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: Upgrade to 4.1.1
Khem Raj [Wed, 8 Aug 2018 17:04:21 +0000 (10:04 -0700)] 
libxcrypt: Upgrade to 4.1.1

license update: Remove CDDL code with Public Domain pieces

https://github.com/besser82/libxcrypt/commit/c76847e3be40c4ac0d78bc8518502418c6207144#diff-fdcb2380ff1eeea2e5795ec115ba1c0d

inherit pkgconfig as it uses pkg-config during build

(From OE-Core rev: 600b1f7da1bc308a52b566b77c994a90ed744b7e)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxcrypt: Provide virtual/crypt for target and native as well
Khem Raj [Wed, 8 Aug 2018 17:04:20 +0000 (10:04 -0700)] 
libxcrypt: Provide virtual/crypt for target and native as well

virtual/crypt for musl will come from libc itself

(From OE-Core rev: e0ed7d74e61294a986f72a531b23f7e67922de29)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocross-localedef-native: Update to build with glibc 2.28
Khem Raj [Wed, 8 Aug 2018 17:04:19 +0000 (10:04 -0700)] 
cross-localedef-native: Update to build with glibc 2.28

(From OE-Core rev: d1e02516dcce977a06320fcca968613466e43f29)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglibc: Upgrade to 2.28
Khem Raj [Wed, 8 Aug 2018 17:04:18 +0000 (10:04 -0700)] 
glibc: Upgrade to 2.28

License-Update: libidn is dropped from glibc and a testcase that was a particular contributor copyrighted

see

https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=LICENSES;h=0e3a9fe39b26e97038d92f904508a4c3aa1bb43b;hp=b29efe01084af28cc40953d7317f22927c0ee3b7;hb=5a357506659f9a00fcf5bc9c5d8fc676175c89a7;hpb=7279af007c420a9d5f88a6909d11e7cb712c16a4
https://sourceware.org/git/?p=glibc.git;a=blobdiff;f=LICENSES;h=b29efe01084af28cc40953d7317f22927c0ee3b7;hp=80f7f1487947f57815b9fe076fadc8c7f94eeb8e;hb=7f9f1ecb710eac4d65bb02785ddf288cac098323;hpb=5f7b841d3aebdccc2baed27cb4b22ddb08cd7c0c

Drop upstreamed and backported patches

(From OE-Core rev: da8bf414922ce7af865fadc4a86fd96ab6262506)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodropbear.inc: add dependency on virtual/crypt to fix build with glibc-2.28
Martin Jansa [Thu, 9 Aug 2018 12:16:59 +0000 (12:16 +0000)] 
dropbear.inc: add dependency on virtual/crypt to fix build with glibc-2.28

configure tests crypt() existence with:

dnl We test for crypt() specially. On Linux (and others?) it resides in libcrypt
dnl but we don't want link all binaries to -lcrypt, just dropbear server.
dnl OS X doesn't need -lcrypt
AC_CHECK_FUNC(crypt, found_crypt_func=here)
AC_CHECK_LIB(crypt, crypt,
        [
        CRYPTLIB="-lcrypt"
        found_crypt_func=here
        ])
AC_SUBST(CRYPTLIB)
if test "t$found_crypt_func" = there; then
AC_DEFINE(HAVE_CRYPT, 1, [crypt() function])
fi

but that silently fails with glibc-2.28 and a bit later do_compile fails with;
http://errors.yoctoproject.org/Errors/Details/185895/

../dropbear-2018.76/sysoptions.h:237:3: error: #error "DROPBEAR_SVR_PASSWORD_AUTH requires `crypt()'."
  #error "DROPBEAR_SVR_PASSWORD_AUTH requires `crypt()'."
   ^~~~~

Add dependency on virtual/crypt so that do_configure detects it correctly.

(From OE-Core rev: d04703aef55e01c59329fc54660724e053f3f66c)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoglide: add INSANE_SKIP for textrel
Martin Jansa [Thu, 9 Aug 2018 11:44:47 +0000 (11:44 +0000)] 
glide: add INSANE_SKIP for textrel

* I'm not using glide, so I'm not going to fix it proplerly,
  it was just bothering me in world builds
* this is reproducible only with ptest in DISTRO_FEATUREs (for aarch64
  issue) and included security_flags.inc, more specifically with the PIE
  flags, so alternative work around is:
  SECURITY_CFLAGS_pn-glide = "${SECURITY_NOPIE_CFLAGS}"

(From OE-Core rev: a6295bc505df635ab3b66100d4ee7567c49f907e)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agogo(-dep): add INSANE_SKIP for textrel
Martin Jansa [Thu, 9 Aug 2018 11:44:46 +0000 (11:44 +0000)] 
go(-dep): add INSANE_SKIP for textrel

* I'm not using go or go-dep, so I'm not going to fix it proplerly,
  it was just bothering me in world builds
* this is reproducible only with ptest in DISTRO_FEATUREs (for aarch64
  issue) and included security_flags.inc, more specifically with the PIE
  flags, so alternative work around is:
  SECURITY_CFLAGS_pn-go = "${SECURITY_NOPIE_CFLAGS}"
  SECURITY_CFLAGS_pn-go-dep = "${SECURITY_NOPIE_CFLAGS}"

(From OE-Core rev: b689c72ad2dc84b8bb55ecbf72d95701707b9bb3)

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: checksum: sanity check path when recursively checksumming
Ross Burton [Mon, 13 Aug 2018 18:02:26 +0000 (19:02 +0100)] 
bitbake: checksum: sanity check path when recursively checksumming

In case something goes tragically wrong, catch a request to checksum / and
refuse.

(Bitbake rev: e7cd4c86ef8a2c2bbf068e84c83fdc9e052b6e3d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobitbake: event.py: fix typo
Kai Kang [Fri, 10 Aug 2018 02:57:50 +0000 (19:57 -0700)] 
bitbake: event.py: fix typo

(Bitbake rev: d49483eb733ee27325349246fa37a84140c0941d)

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoclasses: sanity-check LIC_FILES_CHKSUM
Ross Burton [Mon, 13 Aug 2018 17:20:54 +0000 (18:20 +0100)] 
classes: sanity-check LIC_FILES_CHKSUM

We assume that LIC_FILES_CHKSUM is a file: URI but don't actually verify this,
which can lead to problems if you have a URI that resolves to a path of / as
Bitbake will then dutifully checksum / recursively.

[ YOCTO #12883 ]

(From OE-Core rev: e2b8a3d5a10868f9c0dec8d7b9f5f89fdd100fc8)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobzip2: use Yocto Project mirror for SRC_URI
Ross Burton [Mon, 13 Aug 2018 23:59:39 +0000 (00:59 +0100)] 
bzip2: use Yocto Project mirror for SRC_URI

The bzip.org domain expired and is now a holding site for adverts, so we can't
trust a tarball that appears on that site (luckily we have source checksums to
detect this).

For now, point SRC_URI at the tarball in the Yocto Project source mirror, but
set HOMEPAGE and UPSTREAM_CHECK_URI to the sourceware.org/bzip2/ page which
apparently will be resurrected as the new canonical home page.

(From OE-Core rev: 9e291d9923efc988abe8689c64bafbb29da06339)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agopackage: Fix file copying to preserve sparse files
Richard Purdie [Sun, 12 Aug 2018 22:29:49 +0000 (22:29 +0000)] 
package: Fix file copying to preserve sparse files

We want to preserve sparse files when building the system, add the option
to tar to ensure we do this when copying files.

(From OE-Core rev: d86da5ae386a8129a966a53901de160823f4d250)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool: Use ConfigParser instead of SafeConfigParser
Khem Raj [Sat, 11 Aug 2018 16:54:00 +0000 (09:54 -0700)] 
devtool: Use ConfigParser instead of SafeConfigParser

The SafeConfigParser class has been renamed to ConfigParser in Python
3.2+ see

http://bugs.python.org/issue10627

This alias will be removed in future versions.So we can use
ConfigParser directly instead.

(From OE-Core rev: 3c05c8fff779bd190b31fa8aa16b7a1b24420a60)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoperf: fail if src path does not exist
Mikko Rapeli [Mon, 13 Aug 2018 09:42:17 +0000 (12:42 +0300)] 
perf: fail if src path does not exist

A missing src directory from a broken kernel recipe resulted
only in a warning:

WARNING: copyfile: stat of /home/builder/src/tmp-glibc/work-shared/target/kernel-source/tools/arch failed ([Errno 2] No such file or directory: '/home/builder/src/tmp-glibc/work-shared/target/kernel-source/tools/arch')

and the build failed horribly.

With this change it's an error which can not be missed:

ERROR: perf-1.0-r9 do_configure: Path does not exist: /home/builder/src/tmp-glibc/work-shared/target/kernel-source/tools/arch. Maybe PERF_SRC does not match the kernel version.
ERROR: perf-1.0-r9 do_configure: Function failed: copy_perf_source_from_kernel
ERROR: Logfile of failure stored in: /home/builder/src/tmp-glibc/work/target-linux/perf/1.0-r9/temp/log.do_configure.21083
NOTE: recipe perf-1.0-r9: task do_configure: Failed
ERROR: Task (/home/builder/src/poky/meta/recipes-kernel/perf/perf.bb:do_configure) failed with exit code '1'

To get get perf compiling from a custom kernel, a perf.bbappend can be
created which defines PERF_SRC as list of files and directories needed
from kernel source tree to compile perf. This varies between kernel
versions.

(From OE-Core rev: c392dabefc431dbfb31d6a1465c75ba9cc765804)

Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoparselogs.py: output correct log location
Chen Qi [Mon, 13 Aug 2018 08:54:37 +0000 (16:54 +0800)] 
parselogs.py: output correct log location

The log entry in results is altered to remove 'target_logs'. This
causes wrong log location in output.

e.g.
   AssertionError: 1 != 0 : Log: /path/to/image/1.0-r0/postinstall.log

But when user wants to check the log, the user will find the log is
not present. The actual log file is /path/to/image/1.0-r0/target_logs/postinstall.log.

So fix to use the correct log location.

(From OE-Core rev: df3a2e21648d6b649ebda7e6032afbd63c939f2b)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoman-db: rdepend on base-passwd to ensure installation order
Chen Qi [Mon, 13 Aug 2018 09:43:23 +0000 (17:43 +0800)] 
man-db: rdepend on base-passwd to ensure installation order

Make man-db rdepend on base-passwd to ensure that base-passwd is
installed before man-db at rootfs time. This is to avoid the following
warning at rootfs time.

  warning: user man does not exist - using root

(From OE-Core rev: 95162276b169b84d61eaa73416cf0838a0a8a8bd)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agoman-db: add volatile configuration file for sysvinit
Chen Qi [Mon, 13 Aug 2018 09:43:22 +0000 (17:43 +0800)] 
man-db: add volatile configuration file for sysvinit

Add volatile configuraiton file for man-db so that in sysvinit systems
we don't get failure when running `mandb'. The error message is like
below.

  mandb: can't create index cache /var/cache/man/579: No such file or
  directory

[YOCTO #12872]

(From OE-Core rev: 2c480b363ae80dcc55ec0228f8af0311e023fbf4)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomobile-broadband-provider-info: fix .pc file conflict
Zhixiong Chi [Mon, 13 Aug 2018 07:04:25 +0000 (00:04 -0700)] 
mobile-broadband-provider-info: fix .pc file conflict

Issue: LIN10-4485

Error: Transaction check error:
  file /usr/share/pkgconfig/mobile-broadband-provider-info.pc from install of \
  lib32-mobile-broadband-provider-info-dev.core2_32 conflicts with file from package \
  mobile-broadband-provider-info-dev.core2_64

(From OE-Core rev: fbb2df435140eafc3fe1ca7419398e3b5ef273c8)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agonspr: fix script conflict for multilib
Zhixiong Chi [Mon, 13 Aug 2018 07:04:24 +0000 (00:04 -0700)] 
nspr: fix script conflict for multilib

Stop the nspr-config scripts conflicting in a multilib case.

(From OE-Core rev: b13fa9bf966bb6f132e82b94bf1ecf4b2e095dbe)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibevent: fix the multilib header conflict
Zhixiong Chi [Mon, 13 Aug 2018 07:04:23 +0000 (00:04 -0700)] 
libevent: fix the multilib header conflict

Error: Transaction check error:
  file /usr/include/event2/event-config.h conflicts between attempted installs of libevent-dev-2.1.8-r0.skylake_64 and lib32-libevent-dev-2.1.8-r0.x86

The conflict is the size macro definition between 32bit and 64bit
such as:
< #define EVENT__SIZEOF_LONG 8
> #define EVENT__SIZEOF_LONG 4
< #define EVENT__SIZEOF_PTHREAD_T 8
> #define EVENT__SIZEOF_PTHREAD_T 4

(From OE-Core rev: 49f979b13f1bc6ece0f343d41421aba43f8d9e21)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobase-files: fix handling of resize
Chen Qi [Wed, 1 Aug 2018 05:25:35 +0000 (13:25 +0800)] 
base-files: fix handling of resize

The current handling of resize is incorrect. Using `resize > /dev/null
2>&1 && resize > /dev/null' will cause the second resize command to not
execute because 'resize > /dev/null 2>&1' will fail for resize utility
from busybox.

What we really should do is just to check whether ${bindir}/resize
is executable and execute it if so. Using '-x' is sufficient.

(From OE-Core rev: 41688279cba3a5afc4fdc65fd245b9bb6ada695e)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agobusybox: move init related configs to init.cfg
Chen Qi [Mon, 30 Jul 2018 09:41:57 +0000 (17:41 +0800)] 
busybox: move init related configs to init.cfg

Move init related configs to init.cfg.

These config items do not make much sense unless busybox is selected
as the init manager. They should belong to init.cfg.

(From OE-Core rev: 4af10fe67a31368163bb5d468ee2c5a85ce0fff3)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibxml2: Fix CVE-2018-14404
Andrej Valek [Thu, 9 Aug 2018 08:06:37 +0000 (10:06 +0200)] 
libxml2: Fix CVE-2018-14404

Fix nullptr deref with XPath logic ops

If the XPath stack is corrupted, for example by a misbehaving extension
function, the "and" and "or" XPath operators could dereference NULL
pointers. Check that the XPath stack isn't empty and optimize the
logic operators slightly.

CVE: CVE-2018-14404
(From OE-Core rev: 69315177732a1d260a3315fe8c4c4c44653ae0c8)

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocurl: support multilib installation of curl-config
Changqing Li [Fri, 10 Aug 2018 09:35:55 +0000 (17:35 +0800)] 
curl: support multilib installation of curl-config

(From OE-Core rev: b3fe71af20997921360b6ac7d100b5baf9708d53)

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agomultilib-script: Fix ALTERNATIVE_${PN} overwrite issue
Zhixiong Chi [Fri, 10 Aug 2018 07:31:34 +0000 (00:31 -0700)] 
multilib-script: Fix ALTERNATIVE_${PN} overwrite issue

If multilib scripts handle more than one file per package, the variable
ALTERNATIVE_${PN} will be overwritten and there will be only one symbol
link file. Append to the variable to avoid this.

(From OE-Core rev: f474a7ed02acaffe5d0fcc67e06dde17fc8e4d0e)

Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibjpeg-turbo: fix timezone of reproducible build timestamp
Christopher Clark [Fri, 10 Aug 2018 01:32:01 +0000 (18:32 -0700)] 
libjpeg-turbo: fix timezone of reproducible build timestamp

Avoids producing different build results in different timezones.
Uses UTC with SOURCE_DATE_EPOCH.

(From OE-Core rev: b159cb615feb7f27f8d2afc71f547742bb19cde0)

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agokernel-yocto.bbclass: Adds oe-local-files path (devtool) to include directives
Jaewon Lee [Mon, 30 Jul 2018 21:21:53 +0000 (14:21 -0700)] 
kernel-yocto.bbclass: Adds oe-local-files path (devtool) to include directives

The devtool-source class moves all local files specified in SRC_URI to
an oe-local-files directory. When using devtool and a recipe space kernel-meta,
devtool modify throws an error because the paths the kernel-yocto class
is looking for feature directories in, don't include the oe-local-files
directory which devtool is using.

This patch checks for feature directories in oe-local-files,
and if present, adds that path to include directives.

[YOCTO #12855]

(From OE-Core rev: 4eceae7e3e6dab935e2cf49b75148139192fc6e7)

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agodevtool-source.bbclass: Support kernel-fragments/patch not in SRC_URI
Jaewon Lee [Thu, 9 Aug 2018 23:41:29 +0000 (16:41 -0700)] 
devtool-source.bbclass: Support kernel-fragments/patch not in SRC_URI

When using a recipe space kernel-meta, scc files are added through
SRC_URI, but they may include corresponding kernel fragments or patches
that are not necessarily in SRC_URI.

For bitbake, this is not a problem because the kernel-yocto class adds
the path where the .scc file was found to includes which consequentially
makes the .cfg, .patch file available to the kernel build.

However, when using devtool, only files specified in SRC_URI are copied
to oe-local-files in devtool's workspace. So if the cfg/patch file is not in
SRC_URI, it won't be copied, causing a kernel build failure when trying
to find it.

This fix parses local .scc files in SRC_URI, copies the corresponding
.cfg/.patch file to devtool's workdir, and also adds it to local_files
so it is available when doing a devtool build for the kernel.

[YOCTO #12858]

v2: also supporting patch not in SRC_URI
v3: fix spacing issues

(From OE-Core rev: 5dffd5403664dfcc9e8e42fd3581d5cb70823d7e)

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agolibtool-cross: Handle ccache sstate 'infection' issues
Richard Purdie [Fri, 10 Aug 2018 10:10:15 +0000 (10:10 +0000)] 
libtool-cross: Handle ccache sstate 'infection' issues

On a system without ccache, f you:

INHERIT += "ccache"
bitbake libtool-cross
<remove INHERIT>
bitbake apmd

then it fails due to being unable to find ccache. The references to ccache are
coded into libtool-cross but the sstate checksum doesn't reflect this due to the
way the class is coded (output should be the same regardless).

The simplest solution is to remove references to ccache from the libtool script.
The output then works regardless of whether ccache is present or not. The
libtool-cross script is only used in a handful of cases (most of the time its
dynamically generated by autoconf) so any performance issue is minor.

(From OE-Core rev: ed550a49d2114c56e5bc033ecd0e83073d2d4067)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agosstate: Remove DEPLOY_DIR_IMAGE from SSTATE_DUPWHITELIST
Richard Purdie [Thu, 9 Aug 2018 16:58:07 +0000 (16:58 +0000)] 
sstate: Remove DEPLOY_DIR_IMAGE from SSTATE_DUPWHITELIST

Replace the generic whitelist entry with entries for the three specific
'problem' cases in OE-Core. This means the general DEPLOY_DIR_IMAGE entry
doesn't mask problems for others as was recently encoutered by users
reported on irc. In the whitelisted cases they occur only in multilib builds
and the files are identical.

(From OE-Core rev: 05f6042a40bb772f7ce8d6819c5b2937d8c9808d)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agooeqa/esdk/devtool: Drop OETestDepends usage
Richard Purdie [Thu, 9 Aug 2018 12:17:39 +0000 (12:17 +0000)] 
oeqa/esdk/devtool: Drop OETestDepends usage

OETestDepends doesn't work with parallelism and in this case we don't
really need this dependency, it would just short out some tests quickly
in the rare case the esdk environment was broken.

Currently this is masking tests which is a much worse problem and we
can't make OETestDepends work reliably with parallelism so drop the
dependencies.

(From OE-Core rev: b3b1e1881240b8e2a32dd5c1dc3b7387f0819576)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
6 years agocmake: fix compiling some C++ projects with Yocto SDK and GCC
Urs Fässler [Wed, 8 Aug 2018 07:33:52 +0000 (09:33 +0200)] 
cmake: fix compiling some C++ projects with Yocto SDK and GCC

Setting CMAKE_SYSROOT in the toolchain file allows CMake to correctly
remove user-provided system include directories pointing to
<sysroot>/usr/include. The mentioned projects failed with "stdlib.h:
No such file or directory #include_next <stdlib.h>".

(From OE-Core rev: cb42802f2fe1760f894a435b07286bca3a220364)

Signed-off-by: Urs Fässler <urs.fassler@bbv.ch>
Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>