aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorktdinh <kien.t.dinh@intel.com>2016-12-19 23:07:06 +0900
committerKien Dinh <kien.t.dinh@intel.com>2016-12-20 06:59:08 +0900
commitf211f97c3db23b2189dcc22a73783faf2b4f3189 (patch)
treed3b730fcf958db6474312b430d2fb6adfc7994b4
parent1a70e5e8f48f17f604ab243dfb3ff01f7aa435f6 (diff)
Enabling build for Intel's Joule board
This adds neccessary firmware to support the Joule board, including wifi and bluetooth. Change-Id: Ia6973415113119aaf60fff0dbb494027fba96fd5 Signed-off-by: Kien Dinh <kien.t.dinh@intel.com>
-rw-r--r--meta-agl-bsp/meta-intel/recipes-kernel/linux-firmware/linux-firmware_git.bbappend23
-rw-r--r--meta-agl-bsp/meta-intel/recipes-kernel/linux/files/fix_branch.scc3
-rw-r--r--meta-agl-bsp/meta-intel/recipes-kernel/linux/files/security-tpm.cfg3
-rw-r--r--meta-agl-bsp/meta-intel/recipes-kernel/linux/linux-yocto_4.4%.bbappend13
-rw-r--r--templates/machine/joule/50_bblayers.conf.inc1
-rw-r--r--templates/machine/joule/50_local.conf.inc11
6 files changed, 53 insertions, 1 deletions
diff --git a/meta-agl-bsp/meta-intel/recipes-kernel/linux-firmware/linux-firmware_git.bbappend b/meta-agl-bsp/meta-intel/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
new file mode 100644
index 000000000..cd9f33685
--- /dev/null
+++ b/meta-agl-bsp/meta-intel/recipes-kernel/linux-firmware/linux-firmware_git.bbappend
@@ -0,0 +1,23 @@
+LIC_FILES_CHKSUM_remove = "file://LICENSE.amdgpu;md5=a8592c24c2672062e03c7392fc7fe3bc"
+LIC_FILES_CHKSUM_remove = "file://LICENSE.radeon;md5=6c7f97c6c62bdd9596d0238bb205118c"
+LIC_FILES_CHKSUM_remove = "file://WHENCE;md5=2ec7cdcaf7b1f57b77665b4d77b76e50"
+LIC_FILES_CHKSUM += "\
+ file://LICENSE.amdgpu;md5=3fe8a3430700a518990c3b3d75297209 \
+ file://LICENSE.radeon;md5=69612f4f7b141a97659cb1d609a1bde2 \
+ file://WHENCE;md5=fc7f8a9fce11037078e90df415baad71 \
+"
+
+SRCREV = "cccb6a0da98372bd66787710249727ad6b0aaf72"
+
+LICENSE_${PN}-ibt = "Firmware-ibt_firmware"
+LICENSE_${PN}-ibt-license = "Firmware-ibt_firmware"
+LICENSE_${PN}-ibt-11-5 = "Firmware-ibt_firmware"
+FILES_${PN}-ibt-license = "/lib/firmware/LICENCE.ibt_firmware"
+FILES_${PN}-ibt-11-5 = " \
+ /lib/firmware/intel/ibt-11-5.sfi \
+ /lib/firmware/intel/ibt-11-5.ddc \
+"
+
+#RDEPENDS_${PN}-ibt-11-5 = "${PN}-ibt-license"
+
+PACKAGES =+ " ${PN}-ibt-license ${PN}-ibt ${PN}-ibt-11-5 "
diff --git a/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/fix_branch.scc b/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/fix_branch.scc
new file mode 100644
index 000000000..d94108d9f
--- /dev/null
+++ b/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/fix_branch.scc
@@ -0,0 +1,3 @@
+
+branch bxt-rebase
+mark patching start
diff --git a/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/security-tpm.cfg b/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/security-tpm.cfg
new file mode 100644
index 000000000..b66b1b9b1
--- /dev/null
+++ b/meta-agl-bsp/meta-intel/recipes-kernel/linux/files/security-tpm.cfg
@@ -0,0 +1,3 @@
+CONFIG_TCG_TPM=y
+CONFIG_TCG_TIS=y
+CONFIG_TCG_CRB=y
diff --git a/meta-agl-bsp/meta-intel/recipes-kernel/linux/linux-yocto_4.4%.bbappend b/meta-agl-bsp/meta-intel/recipes-kernel/linux/linux-yocto_4.4%.bbappend
index 495575b90..e08488532 100644
--- a/meta-agl-bsp/meta-intel/recipes-kernel/linux/linux-yocto_4.4%.bbappend
+++ b/meta-agl-bsp/meta-intel/recipes-kernel/linux/linux-yocto_4.4%.bbappend
@@ -1,5 +1,5 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
-#
+
# adding most supported CAN devices
SRC_URI_append = " file://can-bus.cfg"
KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/can-bus.cfg"
@@ -11,3 +11,14 @@ SRC_URI_append = " file://usb-devices.cfg"
KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/usb-devices.cfg"
SRC_URI_append = " file://extra-graphic-devices.cfg"
KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/extra-graphic-devices.cfg"
+
+# Configurations for Joule
+LINUX_VERSION_INTEL_COMMON_forcevariable = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', '4.4.32', '4.4.26', d)}"
+KBRANCH_corei7-64-intel-common_forcevariable = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', 'standard/intel/bxt-rebase;rebaseable=1', 'standard/intel/base', d)}"
+SRCREV_machine_corei7-64-intel-common ?= "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', '14ed59a239de7c119592c29503b82efc56ad0697', '${SRCREV_MACHINE_INTEL_COMMON}', d)}"
+SRCREV_meta_corei7-64-intel-common = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', '24ea5324fc90c7cb15ce1a08cdd294f22c6e6382', '${SRCREV_META_INTEL_COMMON}', d)}"
+
+SRC_URI_prepend_intel-corei7-64 = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', 'file://fix_branch.scc ', '', d)}"
+KERNEL_FEATURES_remove_corei7-64-intel-common = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', 'features/amt/mei/mei.scc', '', d)}"
+KERNEL_FEATURES_append_corei7-64-intel-common = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', ' features/mei/mei-spd.scc', '', d)}"
+SRC_URI_append = "${@bb.utils.contains('INTEL_MACHINE_SUBTYPE', 'broxton-m', ' file://security-tpm.cfg', '', d)}"
diff --git a/templates/machine/joule/50_bblayers.conf.inc b/templates/machine/joule/50_bblayers.conf.inc
new file mode 100644
index 000000000..d50ccc922
--- /dev/null
+++ b/templates/machine/joule/50_bblayers.conf.inc
@@ -0,0 +1 @@
+BBLAYERS =+ "${METADIR}/meta-intel"
diff --git a/templates/machine/joule/50_local.conf.inc b/templates/machine/joule/50_local.conf.inc
new file mode 100644
index 000000000..944545bb9
--- /dev/null
+++ b/templates/machine/joule/50_local.conf.inc
@@ -0,0 +1,11 @@
+MACHINE = "intel-corei7-64"
+INTEL_MACHINE_SUBTYPE = "broxton-m"
+PREFERRED_VERSION_linux-yocto_intel-corei7-64 ?= "4.4%"
+
+APPEND += "console=ttyS2,115200n8 video=efifb maxcpus=4 noxsave reboot=efi kmemleak=off"
+
+IMAGE_INSTALL_append = " linux-firmware-iwlwifi-8000c linux-firmware-ibt-11-5"
+IMAGE_INSTALL_append = " \
+ libva \
+ va-intel \
+ gstreamer-vaapi-1.0 "