Commit Graph

1711 Commits

Author SHA1 Message Date
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
Mikko Ylinen
dacbc86ef3 linux-firmware: install iwlwifi LinuxCore driver firmware blobs
meta-intel maintains a recipe that installs iwlwifi's LinuxCore wifi
driver releases. For some iwfwifi LinuxCore supported wireless chips, the
best/latest firmware blobs are found in the iwlwifi's linux-firmware.git fork.

See: https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi/core_release

This bbappend fetches the -31.ucode (currently, for Intel Wireless 8260
only!) that is the best match for the iwlwifi LinuxCore release built. The
bbappend can later be extended to pull in firmware blobs for other chips too.

Fixes: [YOCTO #11925]

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-15 14:03:06 -07:00
sweeaun
92ce2459bc xf86-video-mga: upgrade 1.6.4 -> 1.6.5
Upgrade xf86-video-mga version to 1.6.5. Adapt block/wakeupHandler
signature for ABI 23 patch has been removed as the change already
available from Upstream 1.6.5.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-15 14:03:06 -07:00
Khem Raj
2edb60c5f2 dpdk-dev-libibverbs: Fix additional warnings
Clang detects more warnings as errors and these fixes address it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-15 14:03:06 -07:00
Khem Raj
c0b5e0f305 libyami-utils: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-15 14:03:06 -07:00
Khem Raj
974fedf70a efilinux: Fix build warnings
Additional warnings found with clang

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-15 14:03:05 -07:00
Khem Raj
75e31097d9 libyami: Fix build with musl/clang
These patches are interesting from upstreaming point of view as well

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-15 14:03:05 -07:00
Saul Wold
0d32b245e4 linux-intel: Update SRCREVs
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-10 20:41:45 -07:00
Mikko Ylinen
53004c7517 iwlwifi: skip host install scripts
The scripts run in install target are relevant (and working)
only if the driver installation is run on the build host.

To fix build errors on some setups we add a patch that
skips the scripts completely when cross-compiling.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
[sgw - Added missing Upstream-Status]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-10 13:16:20 -07:00
Guojian Zhou
634986e2da dpdk: Fix build error on the core2-64
Use the "m64" to parse the flag of x86-64 toolchains.

Signed-off-by: Guojian Zhou <guojian.zhou@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-10 13:14:26 -07:00
Saul Wold
e87c179dea Revert "iwlwifi_git.bb: run make_scripts earlier"
This change is now in master, so no need to have this buried
in the recipe also.

This reverts commit 03e589efed.
2017-08-09 08:32:59 -07:00
Saul Wold
1a35dee120 iwlwifi: Fix install_append for usrmerge
Since everything is installed into /usr when usrmerge is enabled,
don't rm /usr!  Also the  is not needed for anything do
don't create it in the first place.

[YOCTO #11882]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-08 08:43:54 -07:00
Khem Raj
7cfcf8d940 dpdk: Link examples with BFD linker
Bypass the gold bug
https://sourceware.org/bugzilla/show_bug.cgi?id=21882

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-02 08:44:31 -07:00
Khem Raj
e03cdba151 dpdk: Fix build with examples
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-02 08:44:31 -07:00
Khem Raj
740e34f1e7 qat16: Fix build when ld-is-gold is set in DISTRO_FEATURES
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-02 08:44:31 -07:00
Khem Raj
acf1fd18c2 libyami: Rename the file to be checked with LIC_FILES_CHKSUM
COPYING.LIB doesn't exist anymore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-08-02 08:44:31 -07:00
Saul Wold
0d590c4be3 disable_skylake_sound: Temp disable config for core2-32
This is needed because the current kernel has a missing kernel
config check for 32bit skylake sound

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:06:08 -07:00
Saul Wold
1fd316c752 linux-intel: Add linux-intel to files search path
Since both linux-intel and linux-intel-rt need config fragments let's
share the same linux-intel patch directory via FILESEXTRAPATH

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:05:46 -07:00
Saul Wold
b60dce6e86 linux-intel: Update SRCREV for 4.9.35
The kernel updates includes more camera changes

Includes meta update with the following changes:

e8095d4 Alejandro Hernandez common-pc: Adds usb-net configs to genericx86 builds
37cff3d Alejandro Hernandez common-pc-64: Adds usb-net configs to genericx86-64 builds
24325ac Alejandro Hernandez intel-common-drivers: Adds usb-net configs to intel builds
5ea1dcf Syed Johan Arif Bin Syed Mohamad Fauzi features/qat: additional configurations, CONFIG_CRYPTO_RSA and CONFIG_CRYPTO_DH
b3fadcf Syed Johan Arif Bin Syed Mohamad Fauzi features/netfilter: additional configurations
7a4f036 Syed Mohamad Fauzi, Syed Johan Arif features/x2apic: add X2APIC feature
e71bcaa Syed Johan Arif Bin Syed Mohamad Fauzi features/vfio: add VFIO feature
d1b7785 Syed Johan Arif Bin Syed Mohamad Fauzi features/numa: Add NUMA feature
62c9858 Syed Johan Arif Bin Syed Mohamad Fauzi features/mtd: add MTD feature
9a6c643 Syed Johan Arif Bin Syed Mohamad Fauzi features/iommu: add IOMMU feature
1e004c5 Syed Johan Arif Bin Syed Mohamad Fauzi features/intel-txt: add intel-txt feature
63c1229 Saul Wold common-pc-wifi: Enable SDIO for BroadCom BRCMFMAC

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:58 -07:00
Syed Mohamad Fauzi, Syed Johan Arif
da5f7e7081 dpdk: upgrade to version 17.05
Signed-off-by: Syed Mohamad Fauzi, Syed Johan Arif <syed.johan.arif.syed.mohamad.fauzi@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:58 -07:00
Saul Wold
d0ba6fc045 linux-intel: refactor and remove iwlwifi modules for out of tree enablement
Create a linux-intel.inc that is shared between standard and rt kernel
for the common bits.

By removing these modules here, we can then build and install the
out of tree modules from the backport-iwlwifi tree.

Move the Autoloading to the kernel module also

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:58 -07:00
Saul Wold
3dfbb5cd08 intel-common-pkgarch: Add out of tree modules
Since we want to support the out of tree modules for wifi and ethernet
we need to also have them as common for all machines in the common arch.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:58 -07:00
California Sullivan
03e589efed iwlwifi_git.bb: run make_scripts earlier
This out-of-tree module requires we create scripts before configuration
but module.bbclass runs make scripts sometime before do_compile. In
some builds this results in a failure, as it might not be soon enough.

Run make scripts again but earlier. Ideally we change module.bbclass
instead, but its currently frozen for M2 testing, so we need this
temporary local fix.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-07-31 09:00:58 -07:00
Saul Wold
867a8df51e iwlwifi: Clean-up and use module_install
Use the MODULES_INSTALL_TARGET to correctly set the make target for install,
also use AUTOLOAD for ensuring the modules get loaded correctly.

Let the module class to the correct packaging and install.

Install all the linux-firmware-iwlwifi blobs

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:58 -07:00
Priyalee Kushwaha
1811a41d6f iwlwifi: include iwlwifi OOT driver in meta-intel layer.
iwlwifi driver is built as OOT driver and replaces driver
built in kernel.

Signed-off-by: Kushwaha, Priyalee <priyalee.kushwaha@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:57 -07:00
sweeaun
f8500c5020 intel-microcode: Upgrade recipe version
Upgraded intel-microcode recipe to 20170707 version.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-31 09:00:57 -07:00
California Sullivan
fe6f23e2d4 linux-yocto-4.1: Fix kernel version
My script set it to v4.1.41, when its actually v4.1.42.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-27 10:01:47 -07:00
Khem Raj
97ec73f5ba thermald: Add openmp to dependencies when building with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-27 10:01:47 -07:00
Saul Wold
3b8d46f617 meta-intel.inc: Ensure thermald is installed for most targets
This will ensure thermald is installed on all target images except core-image-minimal

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-27 10:01:47 -07:00
California Sullivan
009d044176 linux-yocto/4.1: Update kernel to version 4.1.41
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-07-24 16:28:03 -07:00
California Sullivan
b3ec97cb9c linux-yocto/4.4: Update kernel to version 4.4.76
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-07-24 16:26:12 -07:00
Ng, Wei Tee
689e9bba9e intel-gpu-tools: Upgrade to version 1.19
Upgrade intel-gpu-tools recipe to version 1.19

Signed-off-by: Ng, Wei Tee <wei.tee.ng@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-19 08:30:08 -07:00
California Sullivan
625a588f70 uefi-comboapp.bbclass: Split signing functionality into its own bbclass
In the future more secure boot implementations will be offered, with
each one needing the signing method. Instead of repeating a forty line
block of code across several recipes, just use a configurable bbclass.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-19 08:30:08 -07:00
Patrick Ohly
21086869be uefi-comboapp.bbclass: support multiple UEFI combo apps + fixes
The original code in intel-iot-refkit allows to create more than one
UEFI combo app and uses that to create one for removable media and one
for fixed media (after installation), with different boot=PARTUUID=xxx
parameters. This way, an installed image never ended up booting from
the install media.

uefi-comboapp.bbclass now supports the same feature, with
create_uefiapp() as the API function that can be used to create
additional UEFI apps and create_uefiapps as the method where the call
can be added.

In addition, several shortcomings are getting addressed:
- A UEFI combo app must be stored under a name that is specific
  to the image for which it gets created, otherwise different
  image recipes end up overwriting (or using) files from other
  images.
- Signing must be done after creating the apps and before deploying
  them, otherwise the unsigned apps get copied to the image when
  using do_uefiapp_deploy.
- The common code for deployment is now in uefiapp_deploy_at.
- $dest is used instead of ${DEST} because the latter might get
  expanded by bitbake.
- Because do_uefiapp always had to run anew to produce the
  clean, unsigned input for do_uefiapp_sign, having two different
  tasks just added unnecessary complexity. Now all code is in
  do_uefiapp.
- Old files matching the output pattern get removed explicitly,
  because they might not get overwritten when the optional
  app suffix changes between builds, or when the task fails
  in the middle.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-19 08:30:08 -07:00
Robert Yang
e76947d3ee cryptodev-module: update 0001-zc-Force-4.10-get_user_pages_remote-API.patch
Update it for cryptodev-module 1.9.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-13 11:14:49 -07:00
Saul Wold
248b47feb3 wic: Move WKS newer common location
This cleans up the wic scripts location to match the newer top-level
wic directory location.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-12 13:35:59 -07:00
Anand Vastrad
deef6f725b lms8: Added Intel AMT ME notification infra patch to LMS.
LMS will now capture and notify Intel AMT ME notifications to user in realtime.
For example if AMT tool establishes a KVM session, the user sees a notification for the same.

Intel ME provides event details in WsMan XML format which is parsed by LMS.
LMS extracts the AlertID-Arguments from WxMan XML and its relevant desription from preinitialized AlertId-Arguments:Description map.
The verbose description is then notfied to the user.

Along with the lms binary the package ships AMTAlerts.xml and notifyDesktop.sh script with it.

Signed-off-by: Anand Vastrad <anand.vastrad@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-11 09:04:02 -07:00
sweeaun
3c5ed40c2f thermald: upgrade to 1.6
Upgrade thermald recipe to 1.6.

Signed-off-by: sweeaun <swee.aun.khor@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-11 07:59:26 -07:00
California Sullivan
27e8148446 meta-intel.inc: Set default DISK_SIGNATURE_UUID
This lets the uefi-comboapp and new kickstart template work well
together out of the box.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-10 12:08:20 -07:00
California Sullivan
ad4cbd5d3b canned-wks: add generic-bootdisk kickstart template
This is based off the template in meta-refkit.

It uses the image's boot directory to create a vfat boot partition,
which works with EFI. This works as a WKS_FILE target for the
uefi-comboapp, and will likely be useful in the future as well.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2017-07-10 12:08:20 -07:00