From 0d196a876d3c7d82c6c09ab7c7518246a0ea8613 Mon Sep 17 00:00:00 2001 From: Jussi Laako Date: Wed, 9 Mar 2016 16:02:29 +0200 Subject: [PATCH] linux-yocto: add support for kernel version 4.4 linux-yocto has support for kernel version 4.4, this change adds support for the new kernel. It also moves over Intel Edison parts to be tracked by the same new bbappend so that the old kernel version can be eventually dropped. Signed-off-by: Jussi Laako --- .../linux-yocto/linux-yocto-dev.bbappend | 127 +----------------- .../linux-yocto/linux-yocto-edison.bbappend | 2 +- ...to_%.bbappend => linux-yocto_4.1.bbappend} | 0 .../linux-yocto/linux-yocto_4.4.bbappend | 107 +++++++++++++++ 4 files changed, 109 insertions(+), 127 deletions(-) mode change 100644 => 120000 recipes-kernel/linux-yocto/linux-yocto-dev.bbappend rename recipes-kernel/linux-yocto/{linux-yocto_%.bbappend => linux-yocto_4.1.bbappend} (100%) create mode 100644 recipes-kernel/linux-yocto/linux-yocto_4.4.bbappend diff --git a/recipes-kernel/linux-yocto/linux-yocto-dev.bbappend b/recipes-kernel/linux-yocto/linux-yocto-dev.bbappend deleted file mode 100644 index c16c312..0000000 --- a/recipes-kernel/linux-yocto/linux-yocto-dev.bbappend +++ /dev/null @@ -1,126 +0,0 @@ -FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" - -### Config "fix" fragments - -# security fixes -SRC_URI_append = " file://security.cfg" -SRC_URI_append_edison = " file://security-x86.cfg" -SRC_URI_append_intel-quark = " file://security-x86.cfg" -SRC_URI_append_intel-core2-32 = " file://security-x86.cfg" -SRC_URI_append_intel-corei7-64 = " file://security-x64.cfg" -SRC_URI_append_edison = " file://edison-iptables.cfg" - -### Hardware support fragments - -# I2C sensors -SRC_URI_append_intel-quark = " file://sensors.cfg" -SRC_URI_append_edison = " file://sensors.cfg" -SRC_URI_append_beaglebone = " file://sensors.cfg" -# Minnow Max has I2C -SRC_URI_append_intel-corei7-64 = " file://sensors.cfg" -SRC_URI_append_intel-core2-32 = " file://sensors.cfg" -# TODO: migrate BH1750 to sensors.cfg -SRC_URI_append_intel-corei7-64 = " file://bh1750.cfg" -SRC_URI_append_intel-core2-32 = " file://bh1750.cfg" - -# BeagleBone Black enable all I2Cs -SRC_URI_append_beaglebone = " file://0001-v3.15.0-ARM-dts-am335x-boneblack-configure-i2c1-and-2.patch" - -# user space SPI support -SRC_URI_append_intel-quark = " file://uspi.cfg" -SRC_URI_append_edison = " file://uspi.cfg" -SRC_URI_append_beaglebone = " file://uspi.cfg" - -# IIO support -SRC_URI_append_beaglebone = " file://iio.cfg" - -# NFC support and drivers -SRC_URI_append = " file://nfc.cfg" -SRC_URI_append_intel-quark = " file://nfc-spi.cfg" -SRC_URI_append_edison = " file://nfc-spi.cfg" -SRC_URI_append_beaglebone = " file://nfc-spi.cfg" -# Minnow Max has SPI -SRC_URI_append_intel-corei7-64 = " file://nfc-spi.cfg" -SRC_URI_append_intel-quark = " file://nfc-i2c.cfg" -SRC_URI_append_edison = " file://nfc-i2c.cfg" -SRC_URI_append_beaglebone = " file://nfc-i2c.cfg" -# Minnow Max has I2C -SRC_URI_append_intel-corei7-64 = " file://nfc-i2c.cfg" - -# USB-serial interface support and drivers -SRC_URI_append = " file://usb-serial.cfg" - -# USB-ethernet support and drivers for Edison -SRC_URI_append_edison = " file://edison-usb-ethernet.cfg" - -# CAN-bus support and drivers -SRC_URI_append = " file://can.cfg" -SRC_URI_append_intel-quark = " file://can-spi.cfg" -SRC_URI_append_edison = " file://can-spi.cfg" -SRC_URI_append_beaglebone = " file://can-spi.cfg" -# MinnowMax has SPI -SRC_URI_append_intel-corei7-64 = " file://can-spi.cfg" -SRC_URI_append_intel-core2-32 = " file://can-x86.cfg" -SRC_URI_append_intel-corei7-64 = " file://can-x86.cfg" - -# RealTek WiFi chip used on Gigabyte GB-BXBT-3825 -SRC_URI_append_intel-core2-32 = " file://wireless.cfg" -SRC_URI_append_intel-corei7-64 = " file://wireless.cfg" - -# 6lowpan support -SRC_URI_append = " file://6lowpan.cfg" - -# 6lowpan over 802154 support and drivers -SRC_URI_append = " file://6lowpan-802154.cfg" - -# 6lowpan over Bluetooth LE support -SRC_URI_append = " file://6lowpan-btle.cfg" -SRC_URI_append_intel-quark = " file://debug-fs.cfg" - -# Bluetooth and Bluetooth LE support on Galileo Gen 2 -SRC_URI_append_intel-quark = " file://bluetooth.cfg" - -# Galileo 2 GPIO -# TODO: check which patches are solved in upstream and which need reformatting -SRC_URI_append_intel-quark = " file://galileo2.cfg" -SRC_URI_append_intel-quark = " file://iio.cfg" -#SRC_URI_append_intel-quark = " file://0001-i2c-ACPI-Use-0-to-indicate-that-device-does-not-have.patch" -#SRC_URI_append_intel-quark = " file://0002-i2c-ACPI-Assign-IRQ-for-devices-that-have-GpioInt-au.patch" -#SRC_URI_append_intel-quark = " file://0003-i2c-slave-add-error-messages-to-slave-core.patch" -#SRC_URI_append_intel-quark = " file://0004-i2c-check-for-proper-length-of-the-reg-property.patch" -#SRC_URI_append_intel-quark = " file://0005-i2c-core-fix-typo-in-comment.patch" -#SRC_URI_append_intel-quark = " file://0006-i2c-core-Reduce-stack-size-of-acpi_i2c_space_handler.patch" -#SRC_URI_append_intel-quark = " file://0007-i2c-core-only-use-set_scl-for-bus-recovery-after-cal.patch" -#SRC_URI_append_intel-quark = " file://0008-i2c-fix-leaked-device-refcount-on-of_find_i2c_-error.patch" -#SRC_URI_append_intel-quark = " file://0009-gpio-ACPI-Add-support-for-retrieving-GpioInt-resourc.patch" -# FIXME: this applies but doesn't build due to duplicate symbols, resolved elsewhere? -#SRC_URI_append_intel-quark = " file://0010-GPIO-ACPI-export-acpi_gpiochip_request-free-_interru.patch" -#SRC_URI_append_intel-quark = " file://0011-gpio-ACPI-Return-EPROBE_DEFER-if-the-gpiochip-was-no.patch" -#SRC_URI_append_intel-quark = " file://0012-i2c-ACPI-Rework-I2C-device-scanning.patch" -#SRC_URI_append_intel-quark = " file://0013-mfd-core-redo-ACPI-matching-of-the-children-devices.patch" -#SRC_URI_append_intel-quark = " file://0014-mfd-intel_quark_i2c_gpio-load-gpio-driver-first.patch" -#SRC_URI_append_intel-quark = " file://0015-mfd-intel_quark_i2c_gpio-support-devices-behind-i2c-.patch" -#SRC_URI_append_intel-quark = " file://0016-gpio-pca953x-store-driver_data-for-future-use.patch" -#SRC_URI_append_intel-quark = " file://0017-gpio-pca953x-support-ACPI-devices-found-on-Galileo-G.patch" -#SRC_URI_append_intel-quark = " file://0018-at24-enable-ACPI-device-found-on-Galileo-Gen2.patch" -#SRC_URI_append_intel-quark = " file://0019-pwm-pca9685-enable-ACPI-device-found-on-Galileo-Gen2.patch" -SRC_URI_append_intel-quark = " file://0020-acpi-added-a-custom-DSDT-file.patch" -SRC_URI_append_intel-quark = " file://0021-gpio-pca953x-provide-GPIO-base-based-on-_UID.patch" -SRC_URI_append_intel-quark = " file://0022-pca9685-PCA9685-PWM-and-GPIO-multi-function-device.patch" -SRC_URI_append_intel-quark = " file://0023-acpi-updated-DSDT-table-for-SPI-devices.patch" -SRC_URI_append_intel-quark = " file://0024-spi-pxa2xx-fixed-ACPI-based-enumeration-of-SPI-devic.patch" -SRC_URI_append_intel-quark = " file://0025-staging-iio-add-support-for-ADC1x8s102.patch" -SRC_URI_append_intel-quark = " file://0026-adc1x8s102-support-ACPI-based-enumeration.patch" -SRC_URI_append_intel-quark = " file://0001-gpio-pca953x-add-drive-property.patch" - -# Disable GFX console and support -SRC_URI_append_intel-core2-32 = " file://no-gfx.cfg" -SRC_URI_append_intel-corei7-64 = " file://no-gfx.cfg" - -# enable usb gadget -SRC_URI_append_intel-quark = " file://usb-gadget.cfg" - -KERNEL_MODULE_AUTOLOAD_append_intel-quark = " g_acm_ms" -KERNEL_MODULE_PROBECONF_append_intel-quark = " g_acm_ms" - -module_conf_g_acm_ms_intel-quark = "options g_acm_ms file=/dev/mmcblk0p1 removable=1 idVendor=0x8086 idProduct=0xDEAD" diff --git a/recipes-kernel/linux-yocto/linux-yocto-dev.bbappend b/recipes-kernel/linux-yocto/linux-yocto-dev.bbappend new file mode 120000 index 0000000..73ab682 --- /dev/null +++ b/recipes-kernel/linux-yocto/linux-yocto-dev.bbappend @@ -0,0 +1 @@ +linux-yocto_4.4.bbappend \ No newline at end of file diff --git a/recipes-kernel/linux-yocto/linux-yocto-edison.bbappend b/recipes-kernel/linux-yocto/linux-yocto-edison.bbappend index 7de7eb4..73ab682 120000 --- a/recipes-kernel/linux-yocto/linux-yocto-edison.bbappend +++ b/recipes-kernel/linux-yocto/linux-yocto-edison.bbappend @@ -1 +1 @@ -linux-yocto_%.bbappend \ No newline at end of file +linux-yocto_4.4.bbappend \ No newline at end of file diff --git a/recipes-kernel/linux-yocto/linux-yocto_%.bbappend b/recipes-kernel/linux-yocto/linux-yocto_4.1.bbappend similarity index 100% rename from recipes-kernel/linux-yocto/linux-yocto_%.bbappend rename to recipes-kernel/linux-yocto/linux-yocto_4.1.bbappend diff --git a/recipes-kernel/linux-yocto/linux-yocto_4.4.bbappend b/recipes-kernel/linux-yocto/linux-yocto_4.4.bbappend new file mode 100644 index 0000000..bc07769 --- /dev/null +++ b/recipes-kernel/linux-yocto/linux-yocto_4.4.bbappend @@ -0,0 +1,107 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" + +### Config "fix" fragments + +# security fixes +SRC_URI_append = " file://security.cfg" +SRC_URI_append_edison = " file://security-x86.cfg" +SRC_URI_append_intel-quark = " file://security-x86.cfg" +SRC_URI_append_intel-core2-32 = " file://security-x86.cfg" +SRC_URI_append_intel-corei7-64 = " file://security-x64.cfg" +SRC_URI_append_edison = " file://edison-iptables.cfg" +SRC_URI_append_edison = " file://KEYS_Fix_keyring_ref_leak_in-join_session_keyring.patch" + +### Hardware support fragments + +# I2C sensors +SRC_URI_append_intel-quark = " file://sensors.cfg" +SRC_URI_append_edison = " file://sensors.cfg" +SRC_URI_append_beaglebone = " file://sensors.cfg" +# Minnow Max has I2C +SRC_URI_append_intel-corei7-64 = " file://sensors.cfg" +SRC_URI_append_intel-core2-32 = " file://sensors.cfg" +# TODO: migrate BH1750 to sensors.cfg +SRC_URI_append_intel-corei7-64 = " file://bh1750.cfg" +SRC_URI_append_intel-core2-32 = " file://bh1750.cfg" + +# BeagleBone Black enable all I2Cs +SRC_URI_append_beaglebone = " file://0001-v3.15.0-ARM-dts-am335x-boneblack-configure-i2c1-and-2.patch" + +# user space SPI support +SRC_URI_append_intel-quark = " file://uspi.cfg" +SRC_URI_append_edison = " file://uspi.cfg" +SRC_URI_append_beaglebone = " file://uspi.cfg" + +# IIO support +SRC_URI_append_beaglebone = " file://iio.cfg" + +# NFC support and drivers +SRC_URI_append = " file://nfc.cfg" +SRC_URI_append_intel-quark = " file://nfc-spi.cfg" +SRC_URI_append_edison = " file://nfc-spi.cfg" +SRC_URI_append_beaglebone = " file://nfc-spi.cfg" +# Minnow Max has SPI +SRC_URI_append_intel-corei7-64 = " file://nfc-spi.cfg" +SRC_URI_append_intel-quark = " file://nfc-i2c.cfg" +SRC_URI_append_edison = " file://nfc-i2c.cfg" +SRC_URI_append_beaglebone = " file://nfc-i2c.cfg" +# Minnow Max has I2C +SRC_URI_append_intel-corei7-64 = " file://nfc-i2c.cfg" + +# USB-serial interface support and drivers +SRC_URI_append = " file://usb-serial.cfg" + +# USB-ethernet support and drivers for Edison +SRC_URI_append_edison = " file://edison-usb-ethernet.cfg" + +# CAN-bus support and drivers +SRC_URI_append = " file://can.cfg" +SRC_URI_append_intel-quark = " file://can-spi.cfg" +SRC_URI_append_edison = " file://can-spi.cfg" +SRC_URI_append_beaglebone = " file://can-spi.cfg" +# MinnowMax has SPI +SRC_URI_append_intel-corei7-64 = " file://can-spi.cfg" +SRC_URI_append_intel-core2-32 = " file://can-x86.cfg" +SRC_URI_append_intel-corei7-64 = " file://can-x86.cfg" + +# RealTek WiFi chip used on Gigabyte GB-BXBT-3825 +SRC_URI_append_intel-core2-32 = " file://wireless.cfg" +SRC_URI_append_intel-corei7-64 = " file://wireless.cfg" + +# 6lowpan support +SRC_URI_append = " file://6lowpan.cfg" + +# 6lowpan over 802154 support and drivers +SRC_URI_append = " file://6lowpan-802154.cfg" + +# 6lowpan over Bluetooth LE support +SRC_URI_append = " file://6lowpan-btle.cfg" +SRC_URI_append_intel-quark = " file://debug-fs.cfg" + +# Bluetooth and Bluetooth LE support on Galileo Gen 2 +SRC_URI_append_intel-quark = " file://bluetooth.cfg" + +# Galileo 2 GPIO +# TODO: check which patches are solved in upstream and which need reformatting +SRC_URI_append_intel-quark = " file://galileo2.cfg" +SRC_URI_append_intel-quark = " file://iio.cfg" +SRC_URI_append_intel-quark = " file://0020-acpi-added-a-custom-DSDT-file.patch" +SRC_URI_append_intel-quark = " file://0021-gpio-pca953x-provide-GPIO-base-based-on-_UID.patch" +SRC_URI_append_intel-quark = " file://0022-pca9685-PCA9685-PWM-and-GPIO-multi-function-device.patch" +SRC_URI_append_intel-quark = " file://0023-acpi-updated-DSDT-table-for-SPI-devices.patch" +SRC_URI_append_intel-quark = " file://0024-spi-pxa2xx-fixed-ACPI-based-enumeration-of-SPI-devic.patch" +SRC_URI_append_intel-quark = " file://0025-staging-iio-add-support-for-ADC1x8s102.patch" +SRC_URI_append_intel-quark = " file://0026-adc1x8s102-support-ACPI-based-enumeration.patch" +SRC_URI_append_intel-quark = " file://0001-gpio-pca953x-add-drive-property.patch" + +# Disable GFX console and support +SRC_URI_append_intel-core2-32 = " file://no-gfx.cfg" +SRC_URI_append_intel-corei7-64 = " file://no-gfx.cfg" + +# enable usb gadget +SRC_URI_append_intel-quark = " file://usb-gadget.cfg" + +KERNEL_MODULE_AUTOLOAD_append_intel-quark = " g_acm_ms" +KERNEL_MODULE_PROBECONF_append_intel-quark = " g_acm_ms" + +module_conf_g_acm_ms_intel-quark = "options g_acm_ms file=/dev/mmcblk0p1 removable=1 idVendor=0x8086 idProduct=0xDEAD"