summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2016-06-02classes/lib: Update xrange -> range for python3Richard Purdie5
xrange() no longer exists in python 3, use range() Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-02classes/lib: Update to explictly create lists where neededRichard Purdie20
Iterators now return views, not lists in python3. Where we need lists, handle this explicitly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-02classes/lib: Update to match python3 iter requirementsRichard Purdie12
python3 standardises its use of iteration operations. Update the code to match the for python3 requires. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-02classes/lib: Update to use python3 command pipeline decodingRichard Purdie20
In python3, strings are unicode by default. We need to encode/decode from command pipelines and other places where we interface with the real world using the correct locales. This patch updates various call sites to use the correct encoding/decodings. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-02classes/lib: Convert to use python3 octal syntaxRichard Purdie9
The syntax for octal values changed in python3, adapt to it. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01oe-buildenv-internal: Update to python3Richard Purdie1
Check that 'python' is a python v2 since that is what we assume everywhere and upstream python devs recommend. We can need both python2 and python3 available since we don't control the software we might download and run. Also check that python 3 is >= 3.4.0, our minimum version for bitbake. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01sanity: Drop setting C localeRichard Purdie1
We really want the en_US locale as per the configuration and previous patches. Don't set it back to C as things will break under python3. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01scripts/lnr: update for python3Allen Wild1
Change shebang line to python3 and add parentheses to print Signed-off-by: Allen Wild <allenwild93@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01scripts: python3: Use print functionEd Bartosh8
Used print function instead of print statement to make the code work in python 3. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01systemd: allow add users as a rootfs postprocess cmdStephano Cetola1
Adding all the users / groups to systemd is only available for readonly file systems. This change allows users to add them to read / write file systems as well by specifying: ROOTFS_POSTPROCESS_COMMAND += "systemd_create_users" Also, add "--shell /sbin/nologin" to each user's add params. [ YOCTO #9497 ] Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01openssl: fix the dangling libcrypto.a symlinkMaxin B. John1
Update libcrypto.a symlink to the proper location. [YOCTO #9523] Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01package.bbclass: fix strip and split logicStephano Cetola1
In order for strip and split to work together, we need to populate the data structors if either split OR strip are not inhibited. Original behaviour: INHIBIT_PACKAGE_STRIP: no strip, no debug split INHIBIT_PACKAGE_DEBUG_SPLIT: strip, no split Behaviour after this patch: INHIBIT_PACKAGE_STRIP: no strip, debug split INHIBIT_PACKAGE_DEBUG_SPLIT: strip, no split BOTH: no strip, no split, DNP data structures Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01perl-ptest.inc: fix tar call to prevent objcopy failureEnrico Jorns1
With tar version 1.29, the tar call used to copy the ptest files will not work anymore. While the call did not match the man page (but worked) before, anyway, the latest update of tar seems to have a more strict argument handling. With the current version of the tar call, the copying of files still works with latest tar version, but the excludes will not be handled properly anymore. This results in having binaries compiled with host GCC in the package. When doing the strip_and_split files in do_package() with the target objcopy, bitbake will fail with this error: ERROR: objcopy failed with exit code 256 (cmd was [...]) [...] File format not recognized Thus, the current argument issues and required changes are: * Options must be placed _before_ the pathnames. * --exclude must be followd by a '=' in order to work properly * 'f' options is for providing an archive file, which is unnecessary in this case Note that this could also be a candidate for backporting. Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01insane: return line-feeds to qa.logMartin Jansa1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01bluez5: update to 5.40Maxin B. John1
5.39 -> 5.40 Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01libpng: update to 1.6.22Maxin B. John1
1.6.21 -> 1.6.22 License files updates are not real license changes (updates in Copyright date and Version) Signed-off-by: Maxin B. John <maxin.john@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01unzip: fix security issuesEdwin Plauchu3
This patch avoids unzip fails to compile with compiler flags which elevate common string formatting issues into an error (-Wformat -Wformat-security -Werror=format-security). [YOCTO #9551] Signed-off-by: Edwin Plauchu <edwin.plauchu.camacho@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01libarchive: Upgrade to v3.2.0Paul Barker6
All patches are removed as they are no longer needed. Most were merged into this release of libarchive. "0001-Set-xattrs-after-setting-times.patch" was dropped upstream after discussion, see https://github.com/libarchive/libarchive/pull/664. The COPYING file in libarchive had a couple of minor changes to clarify which files are under which copyrights but the overall license is unaffected. Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-06-01python-numpy: move recipe to own directoryAlexander Kanavin26
This is done so that patches can be shared with python3-numpy Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01python3: add = to -L linking option only when the path is absoluteAlexander Kanavin1
Previously it was added also when the path was relative and not prefixed with ./, which was causing issues with building numpy. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01python3-nose: add a recipeAlexander Kanavin1
This is needed for updating piglit to use Python 3. Python 2 based recipe can be later moved to meta-oe. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01python3-mako: add a Python 3 recipeAlexander Kanavin2
This will be necessary for transiting piglit to Python 3. Python 2 recipe should be kept as it is used by mesa (and gobject-introspection, for now). Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01cracklib: disable building the python moduleAlexander Kanavin1
It's tricky to convert to Python 3 and isn't required by anything in oe-core or meta-oe. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01subversion: remove unnecessary python dependencyAlexander Kanavin1
It would be useful if swig was enabled, but it isn't. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01qemu: remove runtime python dependencyAlexander Kanavin1
Nothing seems to require it. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01git: remove Python package (to which nothing was packaged)Alexander Kanavin1
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-06-01python3: manipulate all of the config*/Makefile files, not just config/MakefileAlexander Kanavin1
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30avahi-ui: remove support for building a python moduleAlexander Kanavin1
It's not used by anything and hasn't been ported to Python 3. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30sip.bbclass: removeAlexander Kanavin1
Nothing is requiring it in oe-core or meta-oe. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30default-versions.inc: drop python-related defaultsAlexander Kanavin5
There is only one version of python 2.x provided, so no need to set a preferred version. PYTHON_BASEVERSION is now set explicitly in python-dir.bbclass and python3-dir.bbclass, so fix up a few recipes that relied on it being set in default-versions.inc without inheriting python-dir. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30python3-dir.bbclass: add a separate class for Python 3Alexander Kanavin5
This is much cleaner than sharing python-dir.bbclass between python 2 and 3 classes, and doing confusing overrides in them. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30distutils-native-base.bbclass, distutils3-native-base.bbclass: removeAlexander Kanavin2
These classes do not seem to be used by anything. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30python-native, python3-native: remove the use of exported HOST_SYS and ↵Alexander Kanavin19
BUILD_SYS variables The code that utilized them was superseded by the code (in the same patch!) that is utilizing STAGING_LIBDIR/STAGING_INCDIR, and wasn't correct in the first place as HOST_SYS is not necessarily the same as the sysroot directory name. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-05-30recipetool / devtool: set a fixed SRCREV by default when fetching from gitPaul Eggleton3
If fetching source from a git repository, typically within OpenEmbedded we encourage setting SRCREV to a fixed revision, so change to do that by default and add a -a/--autorev option to use "${AUTOREV}" instead. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30recipetool: create: use ${BP} for subdir for binary packagesPaul Eggleton1
If we use ${BP} for the subdirectory, the default value of S will work rather than having to have an ugly value derived from the package file name in both places. This does mean that we have to assume the default though (we can't just let the normal logic work because the value of BP is the default until later on, so the replacement doesn't work). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30recipetool: create: extract variable values from .deb/.ipk/.rpmPaul Eggleton1
Extract the metadata from package files and use it to set variable values in the recipe (including recipe name and version, LICENSE, SUMMARY, DESCRIPTION, SECTION and HOMEPAGE). For LICENSE we take care not to step on any value determined by our license file scan; if there is one we simply add a comment above the LICENSE setting so the user can resolve it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30recipetool: create: support extracting SUMMARY and HOMEPAGEPaul Eggleton3
Allow plugins to set any variable value through the extravalues dict, and use this to support extracting SUMMARY and HOMEPAGE values from spec files included with the source; additionally translate "License:" to a comment next to the LICENSE field (we have our own logic for setting LICENSE, but it will often be useful to see what the spec file says if one is present). Also use the same mechanism for setting the same variables for node.js modules; this was already supported but wasn't inserting the settings in the appropriate place in the file which this will now do. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30lib/oe/recipeutils: fix insertion of variable valuesPaul Eggleton1
Add some more variables in appropriate places in recipe_progression such that the patch_recipe_* functions are able to insert variables in the right place within a recipe. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30lib/oe/recipeutils: patch_recipe_lines: allow omitting trailing newlinesPaul Eggleton1
This function was assuming that what you wanted was that output lines had trailing newline characters. If you're just outputting each line verbatim to a text file then that's fine, but sometimes you start with the assumption that the lines don't have trailing newlines; thus we shouldn't allow for the possibility that the caller doesn't want them and add a parameter to control it. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30lib/oe/recipeutils: split out patch_recipe_lines()Paul Eggleton1
Split out a function from patch_recipe_file() that takes just the lines as input so we can edit recipe lines in memory. This will be used within recipetool to ensure we insert new values in the right place. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30linux-yocto/4.1: fix musb compilation errorBruce Ashfield3
We had a partial musb change merged into the 4.1 tree, which resulted in: | kernel-source/drivers/usb/musb/musb_dsps.c: In function 'dsps_create_musb_pdev': | kernel-source/drivers/usb/musb/musb_dsps.c:750:8: error: 'struct musb_hdrc_config' has no member named 'maximum_speed' | config->maximum_speed = usb_get_maximum_speed(&parent->dev); | ^~ By backporting commit: 9b7537642cb6a [usb: musb: set the controller speed based on the config setting] We get our missing structure field, and we can once again build musb. [YOCTO: #9680] Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30linux-yocto: only use intel branches for optimized platformsBruce Ashfield6
Reverting the change that moved common-pc* to the intel staging branches. This means that genericx86, qemux86*, etc, will continue to use standard/base. Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30linux-yocto: create intel branchesBruce Ashfield6
To provide timely support for Intel platforms, without risking issues with other platforms, we create intel branches from the common variants. i.e. We now have standard/intel, which is from standard/base These branches will be managed like any other in the tree, and will get common -stable, -rt, bugs and CVE updates. Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30linux-yocto:4.4: broxton backportsBruce Ashfield3
Integrating the following mainline backports for better Broxton support: Adrian Hunter (3): mmc: sdhci: Remove SDHCI_SDR104_NEEDS_TUNING mmc: mmc: Attempt to flush cache before reset mmc: mmc: Fix partition switch timeout for some eMMCs Andy Shevchenko (12): device property: always check for fwnode type device property: rename helper functions device property: refactor built-in properties support device property: keep single value inplace device property: improve readability of macros device property: return -EINVAL when property isn't found in ACPI device property: Fallback to secondary fwnode if primary misses the property mfd: core: propagate device properties to sub devices drivers mfd: intel-lpss: Pass HSUART configuration via properties device property: avoid allocations of 0 length lib/string: introduce match_string() helper device property: convert to use match_string() helper Bamvor Jian Zhang (1): gpiolib: do not allow to insert an empty gpiochip Christophe RICARD (2): ACPI: Rename acpi_gsi_get_irq_type to acpi_dev_get_irq_type and export symbol ACPI / gpio: Add irq_type when a GPIO is used as an interrupt Dasaratharaman Chandramouli (1): intel_idle: Support for Intel Xeon Phi Processor x200 Product Family Gwendal Grignou (1): mmc: core: Do regular power cycle when lacking eMMC HW reset support Heikki Krogerus (4): device property: helper macros for property entry creation device property: the secondary fwnode needs to depend on the primary device property: fwnode->secondary may contain ERR_PTR(-ENODEV) device property: fix for a case of use-after-free Len Brown (2): intel_idle: Add SKX support intel_idle: add BXT support Linus Walleij (1): Revert "gpio: revert get() to non-errorprogating behaviour" Mika Westerberg (7): pwm: lpss: Remove ->free() callback pwm: lpss: Rework the sequence of programming PWM_SW_UPDATE device property: Take a copy of the property set driver core: platform: Add support for built-in device properties mfd: intel-lpss: Add support for passing device properties mfd: intel-lpss: Pass SDA hold time to I2C host controller driver mfd: intel-lpss: Pass I2C configuration via properties on BXT Qipeng Zha (1): pinctrl: intel: make the high level interrupt working Richard Cochran (10): intel_idle: remove useless return from void function. intel_idle: Fix a helper function's return value. intel_idle: Remove redundant initialization calls. intel_idle: Fix deallocation order on the driver exit path. intel_idle: Fix dangling registration on error path. intel_idle: Avoid a double free of the per-CPU data. intel_idle: Setup the timer broadcast only on successful driver load. intel_idle: Don't overreact to a cpuidle registration failure. intel_idle: Propagate hot plug errors. intel_idle: Clean up all registered devices on exit. Wolfram Sang (1): mmc: make MAN_BKOPS_EN message a debug qipeng.zha (1): pwm: lpss: Update PWM setting for Broxton Signed-off-by: California Sullivan <california.l.sullivan@intel.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30layer.conf: Whitelist ca-certificate dependency on opensslRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-05-30ca-certificates: Add openssl as a runtime dependencyOtavio Salvador1
The update-ca-certificates script uses the c_rehash utility which is installed by openssl. Add openssl as a runtime dependency to fulfill the utility requirement. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-05-30initscripts: check if swapon/swapoff exists before executing themMing Liu3
Not all built images contain swapon/swapoff, for instance, it is configurable with or without them in busybox. So it'd better to check if they exist or not before executing them. Redirecting the potential errors to /dev/null is not good enough, which might suppress the *real* errors. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-05-30uboot-sign: rebuild u-boot.img with signed dtbGeorge McCollister1
u-boot-nodtb.img doesn't exist so if UBOOT_SUFFIX = "img" is used u-boot.img must be rebuilt by running make with EXT_DTB=${DEPLOYDIR}/${UBOOT_DTB_IMAGE} then the resulting .img file must be install to the deploy directories. Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-05-30u-boot: replace old-style shell syntax with the modern oneAndrew Shadura1
Use "-n" operation instead of comparing with an "x"-ed empty string, use $(...) notation instead of the deprecated backticks. Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk> Signed-off-by: Ross Burton <ross.burton@intel.com>
2016-05-30xcb-proto: remove stale git recipe and now redundant .incRoss Burton3
Signed-off-by: Ross Burton <ross.burton@intel.com>