Commit Graph

1750 Commits

Author SHA1 Message Date
Mikko Ylinen
c8728c70cb add .gitignore
oe-selftest leaves python bytecode around for the selftests it
has found making git status dirty.

Add .gitignore that hides those files from git. While we're at it,
ignore some other common patterns too.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-10-09 11:59:31 -07:00
Saul Wold
9f9b61b91f backport-iwlwifi: Fix version check for Intel Production Kernel
This patch is only used with the Intel Production kernel as it has a back
port of the HRTimer code which iwlwifi uses so modify the kernel version check.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-28 11:33:50 -07:00
California Sullivan
a1518230dc linux-firmware: remove bbappend
With the SRCREV bump in OE-core, all the firmware bits we need are
already included so we don't need this anymore.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-28 11:21:25 -07:00
California Sullivan
e104b7aa60 backport-iwlwifi: comment about firmware requirements
Its important to keep backport-iwlwifi in sync with the proper firmware,
otherwise it may stop working with no immediately obvious cause.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-28 11:21:25 -07:00
California Sullivan
c4a7ff737e backport-iwlwifi: don't use AUTOREV
Instead, pin to the latest commit in the release branch.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-28 11:21:25 -07:00
Saul Wold
e11a399d52 meta-intel.inc: Use grub-efi for x32
Use the new x86-x32 override to set the EFI_PROVIDER to grub-efi
which can build without any external libraries, thus just build
in 64bit mode without x32 libraries.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-27 10:03:08 -07:00
Saul Wold
419e4be6cc meta-qat: Move to independant meta-intel-qat layer
The Quick Assist Software is specific to certain Intel hardware
and not needed by all, it should be a standalone additional software
layer and not part of the core Intel (meta-intel) BSP.

This is done in part for better Yocto Project Layer Compatibility

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 08:04:29 -07:00
Saul Wold
a72281adbb meta-dpdk: Move to independant layer
DPDK is now a Linux Foundation project and as such not completely
Intel based, therefore move this to it's own layer so that others
can use.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 08:02:23 -07:00
Saul Wold
2f1bcac3fb meta-*/layer.conf: Add LAYERDEPENDS
This adds the missing LAYERDEPENDS as appropriate

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 07:20:34 -07:00
California Sullivan
60bec582ce linux-intel/4.9: Update both SRCREVs
linux-intel change summary:
 * Revert "x86/acpi: Restore the order of CPU IDs"
 * Bluetooth driver fix
 * DRM update

yocto-kernel-cache change summary:
 * Fix warnings with core2-32
 * Add BRCFMAC_PCIE to support some broadcomm wifi drivers

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 07:20:34 -07:00
Saul Wold
aca986ce4e README*: Updates pyro -> rocko
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 07:20:34 -07:00
Saul Wold
fa36ede519 lttng-modules: Add patch for API Change
There was a patch back-ported into the linux-intel kernel that
also requires a patch to lttng-modules for the updated API.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-26 07:20:31 -07:00
Mark Hatle
dc921fcd8d qat: Move BSP specific configurations from recipes to machine.conf
The COMPATIBLE_MACHINE entry for qat recipes is set to 'null'.  This
will prevent arbitrary machines from trying to use the qat functionality.

A compatible MACHINE must define itself as such for the qat recipes.
Embedding BSP specific knowledge into the recipe will cause the recipe to
slowly get out of date.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-25 15:53:57 -07:00
Mark Hatle
a513894de8 dpdk: Move BSP specific configurations from recipes to machine.conf
The COMPATIBLE_MACHINE entry for dpdk recipes is set to 'null'.  This
will prevent arbitrary machines from trying to use the dpdk functionality.

A compatible MACHINE must define itself as such for the dpdk recipes.  Also
the BSP aware target machine was similarly moved to the BSP.  Embedding BSP
specific knowledge into the recipe will cause the recipe to slowly get out
of date.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-25 15:53:57 -07:00
Mark Hatle
a20d06d7e4 Move dpdk and qat components to meta-dpdk and meta-qat
meta-dpdk / meta-qat:
* Move content from meta-intel/common
* Create new basic README/LICENSE files from meta-intel
* Create new layer.conf files
* Fill out the maintainers files

meta-intel:
* update the maintainers files
* bump the meta-intel layer version
* add layer recommend

No other content changes made in this commit.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-25 15:53:57 -07:00
Ross Burton
9bf043497c libyami: use git clone instead of unstable tarball
GitHub has confirmed that the /archive/ tarballs that are generated on demand
from git tags are not persistant and can change over time.

This is no longer an academic problem as this has been observed occuring.

libyami doesn't have any official maintainer-generated tarballs, so switch to
fetching over git.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-18 13:38:39 -07:00
Ross Burton
8f5a9ade6b thermald: use git clone instead of unstable tarball
GitHub has confirmed that the /archive/ tarballs that are generated on demand
from git tags are not persistant and can change over time.

This is no longer an academic problem as this has been observed occuring.

thermald doesn't have any official maintainer-generated tarballs, so switch to
fetching over git.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-18 13:38:39 -07:00
Alejandro Hernandez
989db4c0e7 core-image-tiny: Provide a new image recipe for poky-tiny that boots from RAM
This new image recipe creates an image from the artifacts
obtained after building core-image-tiny-initramfs, it boots
directly to a tiny rootfs provided by initrd

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
2017-09-15 14:13:16 -07:00
Saul Wold
ee44757ff3 linux-intel: Bump SRCREV - CVE-2017-1000251
Also includes:
  Audio Updates

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-15 11:00:19 -07:00
California Sullivan
3209a10da9 linux-yocto/4.4: update to 4.4.87 and fix CVE-2017-1000251
Includes stable updates from v4.4.77 to v4.4.87, and adds the fix to the
recently disclosed Bluetooth vulnerability.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-15 07:35:21 -07:00
California Sullivan
a2ba685eb6 initramfs-live-install-efi bbappend: Fix Yocto Project compatibility
FILESEXTRAPATHS was being added to unconditionally. Use the
intel-x86-common MACHINEOVERRIDE to fix the issue.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
California Sullivan
473333e745 ovmf_%.bbappend: Fix Yocto Project compatibility issue
FILESEXTRAPATHS was being added to unconditionally. Use the
intel-x86-common MACHINEOVERRIDE instead.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
California Sullivan
2641c22214 cryptodev-module_%.bbappend: fix Yocto Project compatibility issue
FILESEXTRAPATHS was being being added to globally. Fix by using the
intel-x86-common MACHINEOVERRIDE.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
California Sullivan
c1c153debb formfactor_0.0.bbappend: fix Yocto Project compatibility issue
FILESEXTRAPATHS was being set globally. Use the intel-x86-common
MACHINEOVERRIDE to fix this issue.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
California Sullivan
6e9bad66da systemd-boot: fix Yocto Project compatibility issue
do_compile and do_deploy were being appended to unconditionally. Fix the
issue by using the intel-x86-common MACHINEOVERRIDE.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
California Sullivan
868758cc66 linux-yocto: fix Yocto Project Compatibility issues
FILESEXTRAPATHS was being set globally for every linux-yocto recipe. Use
the intel-x86-common MACHINEOVERRIDE on each to fix the issue.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
California Sullivan
62bef91df1 linux-firware_%.bbappend: multiple fixes
Fix yocto project compatibility issue: was using raw _appends, without a
machineoverride.

Fix not pinning to a specific commit ID. The firmware could be updated,
which would change the hash and break the build temporarily.

Fix naming. There are several similarly named firmware blobs (e.g.,
iwlwifi-8265-31) so not using the real name of the blob was confusing.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:37:53 -07:00
Saul Wold
24da32ebb5 linux-intel: SRCREV Updates to 4.9.47
This updates the kernel cache srcrev to HEAD with a version update tag
The RT kernel is updated to RT patch 4.9.47-rt37

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-12 08:35:01 -07:00
California Sullivan
e2ddd3e7b1 recipes-kernel/linux: Add linux-yocto 4.12 bbappends
Like the last few releases, just float on OE-core's SRCREVs.
There is no reason the linux-yocto 4.12 kernel shouldn't work on our
hardware, and in my quick testing, it does.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-11 07:01:20 -07:00
Saul Wold
78949bf8ce dpdk: return 'default' instead of empty string
Since it's possible for other BSPs to also use the DPDK, this can
allow that BSP to be repsonsible for handling it if there is a more
optimized version.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-08 16:14:40 -07:00
Saul Wold
0346318e81 intel-common-pkgarch: fix iwlwifi rename and add ixgbe
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-05 15:55:04 -07:00
Khem Raj
c8b3164190 rmc: Add -fno-stack-protector
Some toolchains may have configured itself with ssp in
such cases just removing -fstack-protector-strong is not
enough to disable ssp, additionally disabling it on
cmdline is required too

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-09-05 07:28:53 -07:00
California Sullivan
8d44e72d6e linux-intel.inc: remove iwlwifi depends and rms
Now that the backport-iwlwifi packages play nicely with the normal
modules we don't need to remove their files.

Also we discovered that backport-iwlwifi breaks non-Intel wifi, so only
have it as an option rather than the default.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-09-01 09:26:59 -07:00
California Sullivan
547d8d8d93 backport-iwlwifi: Add KERNEL_MODULE_PACKAGE_PREFIX
This lets it live alongside regular kernel modules.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-31 17:50:05 -07:00
California Sullivan
e3990dc70c iwlwifi: rename to backport-iwlwifi
This is the proper name of the repo.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-31 17:50:05 -07:00
Syed Johan Arif Bin Syed Mohamad Fauzi
0ce8a55610 ixgbe upgrade to version 5.1.3
Signed-off-by: Syed Johan Arif Bin Syed Mohamad Fauzi <syed.johan.arif.syed.mohamad.fauzi@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:25 -07:00
Saul Wold
8504c72618 linux-intel: Update both SRCREVs
This updates the meta SRCREV to include the following fixes:
1341c53 Mikko Ylinen intel-common: disable ixgbe modules
6514df4 Mikko Ylinen ktypes/standard: enable CONFIG_CRYPTO_CCM and GCM
ad71574 Mikko Ylinen skylake/audio: enable CONFIG_CRC8 to build soundwire driver
0dd1939 Bruce Ashfield wifi: drop BRCMFMAC_PROTO_MSGBUF, since it is selected

And both the kernel SRCREV to included some patches including:

        core: x86/acpi: Restore the order of CPU IDs

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:25 -07:00
Mikko Ylinen
075b81ae1b linux-intel: blacklist snd-soc-skl module
snd-soc-skl module init fails with an error:

    snd_soc_skl 0000:00:0e.0: ipc: set large config fail, err: -110

but the module remains loaded. An alternative driver 'snd-hda-intel'
is also loaded but snd-soc-skl is "used".

The end result is soundcards are missing (due to the failure)
on, e.g., Intel 570x/Joule.

As snd-soc-skl is known to be problematic, let's blacklist that
and prefer snd-hda-intel to get audio working.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:25 -07:00
California Sullivan
fbee56b786 Add secureboot selftests
This was based on the secureboot selftests in meta-refkit:

3bf04941a3/meta-refkit/lib/oeqa/selftest/cases/secureboot.py

It had to be modified a bit to work in meta-intel, as we can't depend on
efivar which resides in meta-openembedded. Instead, in order to test
that secureboot is enabled, we first try to boot with an unsigned, then
image signed with incorrect keys, and search for a "Security Violation"
error message in each log. If the image booted successfully or that
error did not occur, something went wrong and the third test becomes
invalid. The third test is simply booting an image that is signed with
the enrolled keys, getting to a login screen and running a simple
command.

Note that these tests can be quite time consuming, as we have to wait
for the first two tests to timeout, and the timeout values have to be
somewhat high as it sometimes takes a while for the ovmf firmware to
come up.

Original work by Mikko Ylinen and Patrick Ohly.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:25 -07:00
California Sullivan
7549a93e99 recipes-selftest: add images for use in secureboot selftests
This patch adds two image recipes and several keys for use in secureboot
selftests. One image is an unsigned comboapp with a startup.nsh file
calling bootx64.efi. The other is a comboapp image signed with the
refkit keys by default. These are the same keys enrolled in the ovmf
firmware. Also included is another set of keys to sign the image with
that do not match the ovmf firmware's enrolled keys.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:25 -07:00
California Sullivan
7465f7fc99 ovmf: add secureboot bits from refkit
This patch adds a couple secureboot elements to ovmf that originated
from refkit. It includes a patch that adds a certificate to the ovmf's
enrolled keys, and an image recipe which calls the enrollkeys app.

Original work by Mikko Ylinen and Patrick Ohly.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:24 -07:00
Saul Wold
b03fee4378 linux-intel: Seperate SRC_URI into Kernel and Config
This allows for setting a different kernel config URI without having
to completely reset the main SRC_URI for the kernel also.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-30 14:25:24 -07:00
California Sullivan
e6d3676b59 lms: use sh instead of bash in notifyDesktop.sh
A recent update to OE-core revealed the missing runtime dependency:

ERROR: lms8-8.0.0-7-r0 do_package_qa: QA Issue: /usr/bin/notifyDesktop.sh
contained in package lms8 requires /bin/bash, but no providers found in
RDEPENDS_lms8? [file-rdeps]

But it turns out that notifyDesktop doesn't actually require bash:

$ checkbashisms.pl notifyDesktop.sh
could not find any possible bashisms in bash script notifyDesktop.sh

So just change the shebang line to /bin/sh.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
CC: mikko.ylinen@linux.intel.com
CC: anand.vastrad@intel.com
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-23 16:30:51 -07:00
Saul Wold
fbc17ee77b linux-intel: Update SRCREV
Fixes CVE-2017-1000112

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-23 16:30:49 -07:00
California Sullivan
9658bb3489 conf/machine/intel-*: move core-image-minimal-initramfs PACKAGE_INSTALL
A machine configuration file wasn't the correct place to put this in the
first place. It should be in a bbappend, which we now have.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-23 15:16:35 -07:00
California Sullivan
f9e95940fb images: add core-image-minimal-initramfs bbappend
Modify core-image-minimal-initramfs to use the initramfs-framework init
scripts instead of the old ones when using an Intel MACHINE type.

The initramfs-framework scripts are preferred, as they allow for booting
on both live and real images and are more modular, allowing additions
via new modules.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-23 15:16:35 -07:00
California Sullivan
3bc2dc2317 sbsigntool: depend on openssl10
sbsigntool does not currently work with openssl version 1.1 which was
just added to OE-core, so depend on version 1.0.* instead.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-23 15:16:35 -07:00
Mikko Ylinen
7bf6abf878 sbsigntool: port "sbsigntool: stop using gitsm fetcher" from refkit
From Mikko:
    gitsm fetcher does not work well with download cache
    (submodules never get to the local source mirror) and each
    builds ends up cloning ccan.

    Move to use git fetcher (with https protocol) for both sbsigntool
    and ccan independently to speed up fetching and to get the
    mirroring benefits.

    The gitsm fetcher limitations are reported in YOCTO #11594.

    Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>

This syncs us up with the sbsigntool recipe in meta-refkit.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-23 15:16:35 -07:00
sweeaun
3c0368846d efilinux: Enable muslx32 build
Enable muslx32 build for efilinux. Using -m64 instead of -mx32 in
TUNE_CCARGS as efi needed to be built for 64 bits.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
[Fixed whitespace error]
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-08-23 15:16:35 -07:00
Richard Purdie
1fcd3a2a24 linux-yocto: Drop 4.1 kernel bbappends
The 4.1 kernel was dropped from OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-08-23 14:20:22 +01:00