builds and runs on intel-x86 and rpi4 with acceptable realtime performance

This commit is contained in:
vaughn committed 2026-09-25 17:29:14 -04:00
1 parent 2bce6fa556
commit 3faf544f0b
120 files changed
+6317 -1

No files matched your search

@@ -0,0 +1,5 @@
EXTRA_KERNEL_FILES ?= ""
EXTRA_KERNEL_SRC_URI ?= ""
FILESEXTRAPATHS:prepend := "${EXTRA_KERNEL_FILES}:"
SRC_URI:append = " ${EXTRA_KERNEL_SRC_URI}"
@@ -0,0 +1,9 @@
TEMP_KERNEL_FILES ?= ""
TEMP_KERNEL_SRC_URI ?= ""
TEMP_KERNEL_FILES:qemux86 = "${THISDIR}/linux-yocto:"
TEMP_KERNEL_FILES:qemux86-64 = "${THISDIR}/linux-yocto:"
TEMP_KERNEL_FILES:intel-x86-64 = "${THISDIR}/linux-yocto:"
EXTRA_KERNEL_FILES =. "${TEMP_KERNEL_FILES}"
EXTRA_KERNEL_SRC_URI += "${TEMP_KERNEL_SRC_URI}"
@@ -0,0 +1,8 @@
EXTRA_KERNEL_FILES =. "${THISDIR}/linux-yocto:"
EXTRA_KERNEL_SRC_URI += "file://0001-tools-build-make-in-target-rule-robust-against-too-l.patch"
EXTRA_KERNEL_SRC_URI:append:bcm-2xxx-rpi4 = " \
file://0001-Revert-Revert-mmc-sdhci-Mask-spurious-interrupts.patch \
"
FILESEXTRAPATHS:prepend := "${EXTRA_KERNEL_FILES}:"
SRC_URI:append = " ${EXTRA_KERNEL_SRC_URI}"
@@ -0,0 +1,36 @@
From aaa9ed2dc16c67c576721e3d7951e4c265df866b Mon Sep 17 00:00:00 2001
From: Jason Wessel <jason.wessel@windriver.com>
Date: Thu, 16 Jul 2020 20:11:07 -0700
Subject: [PATCH] Revert "Revert "mmc: sdhci: Mask "spurious" interrupts""
This reverts commit a8913cf2ebc7a5bda92b2737271f8869741f6b18 in order
to fix the problem with small mmc cards where the kernel is printing
the message:
mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
Upstream-Status: Pending
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
drivers/mmc/host/sdhci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 070f7dc42294..2e30fca8b44c 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -3104,6 +3104,10 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
result = IRQ_WAKE_THREAD;
}
+ if ((intmask & SDHCI_INT_DATA_END) && !host->data &&
+ host->cmd && (host->cmd == host->cmd->mrq->stop))
+ intmask &= ~SDHCI_INT_DATA_END;
+
if (intmask & SDHCI_INT_CMD_MASK)
sdhci_cmd_irq(host, intmask & SDHCI_INT_CMD_MASK, &intmask);
--
2.17.1
@@ -0,0 +1,49 @@
From 577a25e1cf79039c01a275bb1a7e630c35af91ae Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com>
Date: Mon, 28 Jul 2025 16:48:24 +0800
Subject: [PATCH] tools/build: make in-target rule robust against too long
argument error
The command length of in-target scales with the depth of the directory
times the number of objects in the Makefile. When there are many
objects, and O=[absolute_path] is set, and the absolute_path is
relatively long. It is possile that this line "$(call
if_changed,$(host)ld_multi)" will report error:
"make[4]: /bin/sh: Argument list too long"
For example, build perf tools with O=/long/output/path
Like built-in.a and *.mod rules in scripts/Makefile.build, add
$(objpredix)/ by the shell command instead of by Make's builtin
function.
Upstream-Status: Submitted [https://lore.kernel.org/lkml/20250728093153.2330009-1-changqing.li@windriver.com/]
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
tools/build/Makefile.build | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/build/Makefile.build b/tools/build/Makefile.build
index ffe988867703..e26a6c1928b3 100644
--- a/tools/build/Makefile.build
+++ b/tools/build/Makefile.build
@@ -90,11 +90,13 @@ quiet_cmd_gen = GEN $@
# If there's nothing to link, create empty $@ object.
quiet_cmd_ld_multi = LD $@
cmd_ld_multi = $(if $(strip $(obj-y)),\
- $(LD) -r -o $@ $(filter $(obj-y),$^),rm -f $@; $(AR) rcs $@)
+ printf "$(objprefix)%s " $(patsubst $(objprefix)%,%,$(filter $(obj-y),$^)) | \
+ xargs $(LD) -r -o $@,rm -f $@; $(AR) rcs $@)
quiet_cmd_host_ld_multi = HOSTLD $@
cmd_host_ld_multi = $(if $(strip $(obj-y)),\
- $(HOSTLD) -r -o $@ $(filter $(obj-y),$^),rm -f $@; $(HOSTAR) rcs $@)
+ printf "$(objprefix)%s " $(patsubst $(objprefix)%,%,$(filter $(obj-y),$^)) | \
+ xargs $(HOSTLD) -r -o $@,rm -f $@; $(HOSTAR) rcs $@)
ifneq ($(filter $(obj),$(hostprogs)),)
host = host_
--
2.34.1
@@ -0,0 +1,411 @@
CONFIG_LOCALVERSION_AUTO=y
CONFIG_DEFAULT_HOSTNAME="plc"
# CONFIG_NO_HZ_IDLE is not set
CONFIG_NO_HZ_FULL=y
CONFIG_CONTEXT_TRACKING_USER=y
# CONFIG_CONTEXT_TRACKING_USER_FORCE is not set
CONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
CONFIG_VIRT_CPU_ACCOUNTING=y
CONFIG_VIRT_CPU_ACCOUNTING_GEN=y
CONFIG_RCU_NOCB_CPU=y
# CONFIG_RCU_NOCB_CPU_DEFAULT_ALL is not set
CONFIG_RCU_NOCB_CPU_CB_BOOST=y
# CONFIG_RCU_LAZY is not set
CONFIG_BOOT_CONFIG=y
# CONFIG_BOOT_CONFIG_FORCE is not set
# CONFIG_BOOT_CONFIG_EMBED is not set
CONFIG_X86_CPU_RESCTRL=y
CONFIG_BLK_CGROUP_IOPRIO=y
# CONFIG_NET_EMATCH_CANID is not set
CONFIG_NET_RX_BUSY_POLL=y
# CONFIG_NETCONSOLE is not set
# ///////////////////////////
CONFIG_NUMA_BALANCING=y
# ///////////////////////////
CONFIG_CAN=y
CONFIG_CAN_RAW=y
CONFIG_CAN_BCM=y
CONFIG_CAN_GW=y
# CONFIG_CAN_J1939 is not set
# CONFIG_CAN_ISOTP is not set
# CONFIG_RFKILL_GPIO is not set
CONFIG_NET_SELFTESTS=y
CONFIG_EFI_BOOTLOADER_CONTROL=y
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_TI_ST is not set
# CONFIG_INTEL_MEI_VSC_HW is not set
# CONFIG_GP_PCI1XXXX is not set
# CONFIG_SPI_AX88796C is not set
CONFIG_CX_ECAT=y
# CONFIG_DM9051 is not set
CONFIG_TSNEP=y
# CONFIG_TSNEP_SELFTESTS is not set
CONFIG_NET_VENDOR_ADI=y
# CONFIG_KS8851 is not set
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
# CONFIG_LAN865X is not set
# CONFIG_OA_TC6 is not set
# CONFIG_MSE102X is not set
CONFIG_PHYLIB=y
CONFIG_FIXED_PHY=y
# CONFIG_MICREL_KS8995MA is not set
CONFIG_CAN_DEV=y
# CONFIG_CAN_VCAN is not set
# CONFIG_CAN_VXCAN is not set
CONFIG_CAN_NETLINK=y
CONFIG_CAN_CALC_BITTIMING=y
# CONFIG_CAN_CAN327 is not set
# CONFIG_CAN_KVASER_PCIEFD is not set
# CONFIG_CAN_SLCAN is not set
# CONFIG_CAN_C_CAN is not set
# CONFIG_CAN_CC770 is not set
# CONFIG_CAN_CTUCANFD_PCI is not set
# CONFIG_CAN_ESD_402_PCI is not set
# CONFIG_CAN_IFI_CANFD is not set
# CONFIG_CAN_M_CAN is not set
# CONFIG_CAN_PEAK_PCIEFD is not set
# CONFIG_CAN_SJA1000 is not set
CONFIG_CAN_SOFTING=y
#
# CAN SPI interfaces
#
# CONFIG_CAN_HI311X is not set
# CONFIG_CAN_MCP251X is not set
# CONFIG_CAN_MCP251XFD is not set
# end of CAN SPI interfaces
#
# CAN USB interfaces
#
# CONFIG_CAN_8DEV_USB is not set
# CONFIG_CAN_EMS_USB is not set
# CONFIG_CAN_ESD_USB is not set
# CONFIG_CAN_ETAS_ES58X is not set
# CONFIG_CAN_F81604 is not set
# CONFIG_CAN_GS_USB is not set
# CONFIG_CAN_KVASER_USB is not set
# CONFIG_CAN_MCBA_USB is not set
# CONFIG_CAN_PEAK_USB is not set
# CONFIG_CAN_UCAN is not set
# end of CAN USB interfaces
# CONFIG_CAN_DEBUG_DEVICES is not set
CONFIG_MDIO_DEVICE=y
CONFIG_MDIO_BUS=y
CONFIG_FWNODE_MDIO=y
CONFIG_ACPI_MDIO=y
CONFIG_MDIO_DEVRES=y
# CONFIG_WILC1000_SPI is not set
# CONFIG_KEYBOARD_APPLESPI is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_GOODIX is not set
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_SPI is not set
# CONFIG_TOUCHSCREEN_MSG2638 is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SIS_I2C is not set
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not set
# CONFIG_TOUCHSCREEN_ZFORCE is not set
# CONFIG_INPUT_GPIO_BEEPER is not set
# CONFIG_INPUT_GPIO_DECODER is not set
# CONFIG_INPUT_GPIO_VIBRA is not set
# CONFIG_INPUT_PWM_BEEPER is not set
# CONFIG_INPUT_PWM_VIBRA is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DRV260X_HAPTICS is not set
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
CONFIG_SERIAL_MCTRL_GPIO=y
# CONFIG_I2C_CBUS_GPIO is not set
# CONFIG_I2C_GPIO is not set
CONFIG_I3C=y
# CONFIG_CDNS_I3C_MASTER is not set
# CONFIG_DW_I3C_MASTER is not set
# CONFIG_SVC_I3C_MASTER is not set
# CONFIG_MIPI_I3C_HCI is not set
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set
#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_CH341 is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_MICROCHIP_CORE is not set
# CONFIG_SPI_MICROCHIP_CORE_QSPI is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PCI1XXXX is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_AMD is not set
#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set
#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not set
CONFIG_SPI_DYNAMIC=y
CONFIG_HSI=y
CONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#
# CONFIG_HSI_CHAR is not set
CONFIG_PINMUX=y
CONFIG_PINCONF=y
CONFIG_GENERIC_PINCONF=y
CONFIG_PINCTRL_AMD=y
CONFIG_GPIOLIB=y
CONFIG_GPIOLIB_FASTPATH_LIMIT=512
CONFIG_GPIO_ACPI=y
CONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not set
# CONFIG_GPIO_SYSFS is not set
CONFIG_GPIO_CDEV=y
CONFIG_GPIO_CDEV_V1=y
#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_GRANITERAPIDS is not set
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#
# CONFIG_GPIO_FXL6408 is not set
# CONFIG_GPIO_DS4520 is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# CONFIG_GPIO_ELKHARTLAKE is not set
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders
#
# USB GPIO expanders
#
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_LATCH is not set
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VIRTIO is not set
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers
#
# GPIO Debugging utilities
#
# CONFIG_GPIO_SLOPPY_LOGIC_ANALYZER is not set
# CONFIG_GPIO_VIRTUSER is not set
# end of GPIO Debugging utilities
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_SENSORS_AD7314 is not set
# CONFIG_SENSORS_ADT7310 is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2992 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_ADCXX is not set
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_PWM_FAN is not set
# CONFIG_SENSORS_SHT15 is not set
# CONFIG_SENSORS_ADS7871 is not set
# CONFIG_MEN_A21_WDT is not set
# CONFIG_BCMA_DRIVER_GPIO is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_OCELOT is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_TPS65010 is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS6594_SPI is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_CS40L50_SPI is not set
# CONFIG_MFD_INTEL_M10_BMC_SPI is not set
# CONFIG_DRM_PANEL_AUO_A030JTN01 is not set
# CONFIG_DRM_PANEL_ILITEK_ILI9341 is not set
# CONFIG_DRM_PANEL_ORISETECH_OTA5601A is not set
# CONFIG_DRM_PANEL_WIDECHIPS_WS2401 is not set
# CONFIG_DRM_PANEL_MIPI_DBI is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9163 is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_ST7586 is not set
# CONFIG_TINYDRM_ST7735R is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_SSD1307 is not set
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_PWM is not set
# CONFIG_BACKLIGHT_LM3630A is not set
# CONFIG_BACKLIGHT_LP855X is not set
# CONFIG_BACKLIGHT_MP3309C is not set
# CONFIG_BACKLIGHT_GPIO is not set
CONFIG_SND_SPI=y
# CONFIG_HID_GOODIX_SPI is not set
# CONFIG_HID_MCP2200 is not set
# CONFIG_USB_CONN_GPIO is not set
# CONFIG_USB_MAX3421_HCD is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_MMC_SPI is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_LT3593 is not set
# CONFIG_LEDS_SPI_BYTE is not set
# CONFIG_LEDS_TRIGGER_GPIO is not set
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not set
# CONFIG_SURFACE3_WMI is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_ASUS_TF103C_DOCK is not set
# CONFIG_INTEL_INT0002_VGPIO is not set
# CONFIG_MEEGOPAD_ANX7428 is not set
# CONFIG_PCENGINES_APU2 is not set
# CONFIG_BARCO_P50_GPIO is not set
# CONFIG_LMK04832 is not set
# CONFIG_COMMON_CLK_PWM is not set
CONFIG_PWM=y
# CONFIG_PWM_DEBUG is not set
CONFIG_PWM_CLK=y
# CONFIG_PWM_DWC is not set
CONFIG_PWM_GPIO=y
# CONFIG_PWM_LPSS_PCI is not set
# CONFIG_PWM_LPSS_PLATFORM is not set
# CONFIG_PWM_PCA9685 is not set
CONFIG_GENERIC_PHY=y
CONFIG_PHY_CAN_TRANSCEIVER=y
CONFIG_MULTIPLEXER=y
#
# Multiplexer drivers
#
# CONFIG_MUX_ADG792A is not set
# CONFIG_MUX_ADGS1408 is not set
# CONFIG_MUX_GPIO is not set
# end of Multiplexer drivers
CONFIG_COUNTER=y
# CONFIG_INTEL_QEP is not set
# CONFIG_INTERRUPT_CNT is not set
CONFIG_HTE=y
CONFIG_PROC_CPU_RESCTRL=y
# ///////////////////////////
CONFIG_WATCHDOG=y
# ///////////////////////////
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: MIT
define KFEATURE_DESCRIPTION "enable options for Tuned, EFI autoinstaller, and PLC-relevant GPIO/networking support"
define KFEATURE_COMPATIBILITY all
kconf hardware tuning-and-support.cfg
@@ -0,0 +1,11 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
KCONFIG_MODE = "alldefconfig"
SRC_URI += "file://tuning-and-support.cfg \
file://tuning-and-support.scc \
"
KERNEL_ARTIFACT_NAME = "${KERNEL_VERSION_NAME}"
KERNEL_ARTIFACT_BIN_EXT = ""
@@ -0,0 +1,55 @@
require wrlinux-yocto-intel-x86.inc
KBRANCH:intel-x86 = "v6.18/standard/preempt-rt/x86"
#LINUX_VERSION:intel-x86 ?= "6.18.x"
#6.16.11
#SRCREV_machine:intel-x86 ?= "5802335e048e47fafcca382486f56315f4ddae1a"
#6.18
SRCREV_machine:intel-x86 ?= "5a22348e2f48abb5778f99812dd3c440b4c92b6f"
require wrlinux-yocto-bcm-2xxx-rpi.inc
#bcm-2xxx-rpi4-preempt-rt
KMACHINE:rpi = "bcm-2xxx-rpi4"
KARCH:rpi = "arm64"
KBRANCH:rpi = "v6.18/standard/preempt-rt/bcm-2xxx-rpi"
LINUX_RPI_KMETA_BRANCH ?= "yocto-6.18"
LINUX_RPI_BRANCH:rpi ?= "rpi-6.18.y"
LINUX_VERSION:rpi ?= "6.18.28"
#KBUILD_DEFCONFIG:raspberrypi5 ?= "bcm2712_defconfig"
#KMACHINE is searched for here: https://git.yoctoproject.org/yocto-kernel-cache
KMACHINE:raspberrypi-armv8 = "bcm-2xxx-rpi4"
KARCH:raspberrypi-armv8 = "arm64"
KBRANCH:raspberrypi-armv8 = "v6.18/standard/preempt-rt/bcm-2xxx-rpi"
LINUX_RPI_KMETA_BRANCH ?= "yocto-6.18"
LINUX_RPI_BRANCH:raspberrypi-armv8 ?= "rpi-6.18.y"
LINUX_VERSION:raspberrypi-armv8 ?= "6.18.28"
#6.16.11
#SRCREV_machine:rpi ?= "3c53d9a36daa297863d0bac2a1b43f9beefd6614"
#6.18
#SRCREV_machine:raspberrypi-armv8 ?= "1127de0ceda6cc5918779c2e9c55345dd27264b0"
#6.18.28
SRCREV_machine:raspberrypi-armv8 = "d9479085d6d955c8ef5541d2262714e1ee8def71"
#SRCREV_machine-pi = "66318c5b5cd8145a662303af12ed39ac07eb27cc"
SRCREV_meta:raspberrypi-armv8 = "4ad2f82ee14f9560019f67eb9ddcff1d9e2790f5"
KBRANCH:arm = "v6.18/standard/preempt-rt/genericarm64"
#LINUX_VERSION:arm ?= "6.16.x"
#6.16.11
#SRCREV_machine:arm ?= "2562b280a4de0654df5010b49785cb5ce26bb894"
#6.18
SRCREV_machine:arm ?= "67be18a7a6b529aacdae063de37a788e498d7378"
#require linux-yocto-wrlinux.inc
#include srcrev.inc
require linux-yocto-extra-kernel-src.inc
#TARGET_SUPPORTED_KTYPES:append:qemuall = " preempt-rt"
KERNEL_VERSION_SANITY_SKIP ?= "1"
@@ -0,0 +1,11 @@
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
COMPATIBLE_MACHINE:beaglebone-yocto = "beaglebone-yocto"
COMPATIBLE_MACHINE:genericx86 = "genericx86"
COMPATIBLE_MACHINE:genericx86-64 = "genericx86-64"
KMACHINE:beaglebone-yocto ?= "beaglebone"
KMACHINE:genericx86 ?= "common-pc"
KMACHINE:genericx86-64 ?= "common-pc-64"
KBRANCH:genericarm64 ?= "v6.18/standard/preempt-rt/genericarm64"
SRCREV_machine:genericarm64 ?= "d9b25dac99fc12c4fa33d7c53ed819d1671e07fd"
@@ -0,0 +1,82 @@
# We need to change the SRC_URI to point to the bare git report in our layer.
# Otherwise the system may decide to fall back to the yoctoproject URL in some
# cases. This would end up causing problems either due to incorrect SRCREV
# entries or by missing critical patches.
addhandler linux_yocto_rewrite_uri
linux_yocto_rewrite_uri[eventmask] = "bb.event.RecipePreFinalise"
# Disable shallow tarball for kernel
BB_GIT_SHALLOW = "0"
python linux_yocto_rewrite_uri() {
pass
}
python linux_yocto_rewrite_uri:osv-wrlinux() {
d = e.data
layer_path="${LAYER_PATH_wrlinux}"
if not d.getVar("LAYER_PATH_wrlinux"):
bb.warn("Unable to replace SRC_URI paths with wrlinux layer paths. LAYER_PATH_wrlinux is not defined.")
return
# We only care about the SRC_URI as it is defined right now. We do NOT
# want to expand it.
src_uri=d.getVar("SRC_URI", False)
# We need the -file- PV, not the actual PV...
pv = d.expand("${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or 'dev'}")
# Replace the kernel URI.
if os.path.exists("%s/git/linux-yocto.git" % (d.expand(layer_path))):
src_uri = src_uri.replace("git://git.yoctoproject.org/linux-yocto.git", "git://${LAYER_PATH_wrlinux}/git/linux-yocto.git;protocol=file")
src_uri = src_uri.replace(";protocol=https", "")
if os.path.exists("%s/git/linux-yocto-dev.git" % (d.expand(layer_path))):
src_uri = src_uri.replace("git://git.yoctoproject.org/linux-yocto-dev.git", "git://${LAYER_PATH_wrlinux}/git/linux-yocto-dev.git;protocol=file")
src_uri = src_uri.replace(";protocol=https", "")
if os.path.exists("%s/git/linux-yocto-%s.git" % (d.expand(layer_path), pv)):
src_uri = src_uri.replace("git://git.yoctoproject.org/linux-yocto.git", "git://${LAYER_PATH_wrlinux}/git/linux-yocto-%s.git;protocol=file" % (pv))
src_uri = src_uri.replace("git://git.yoctoproject.org/linux-yocto-%s.git" % (pv), "git://${LAYER_PATH_wrlinux}/git/linux-yocto-%s.git;protocol=file" % (pv))
src_uri = src_uri.replace(";protocol=https", "")
# Replace the kernel-cache URI.
if os.path.exists("%s/git/yocto-kernel-cache.git" % d.expand(layer_path)):
src_uri = src_uri.replace("git://git.yoctoproject.org/yocto-kernel-cache", "git://${LAYER_PATH_wrlinux}/git/yocto-kernel-cache.git;protocol=file")
src_uri = src_uri.replace(";protocol=https", "")
# The kernel-cache branch is hard coded by oe-core. We need to make this adjutable.
if d.getVar("KERNEL_CACHE_BRANCH_%s" % pv):
import re
src_uri = re.sub('(yocto-kernel-cache.*;branch=)([^;]*)', '\\1${KERNEL_CACHE_BRANCH_%s}' % pv, src_uri)
if d.getVar("SRCREV_meta_%s" % pv):
d.setVar("SRCREV_meta", d.getVar("SRCREV_meta_%s" % pv))
if d.getVar("LINUX_VERSION_%s" % pv):
d.setVar("LINUX_VERSION", d.getVar("LINUX_VERSION_%s" % pv))
d.setVar("SRC_URI", src_uri)
}
#
# Verify that the defined KTYPE is in TARGET_SUPPORTED_KTYPES (if defined)
#
# This will help detect non-supported/non-tested configurations.
#
python () {
kernel_type = d.getVar('LINUX_KERNEL_TYPE')
supported_types = d.getVar('TARGET_SUPPORTED_KTYPES')
# Skip checking, as supported types is blank
if not supported_types or not kernel_type:
return
if kernel_type not in supported_types.split():
raise bb.parse.SkipPackage('(version %s) The defined LINUX_KERNEL_TYPE (%s) used by\
this recipe is not in TARGET_SUPPORTED_KTYPES (%s). To override add the type\
to the supported list in your local.conf, such as:\
TARGET_SUPPORTED_KTYPES:append = " %s"' % (d.getVar('PV'), kernel_type, supported_types, kernel_type))
}
+97
View File
@@ -0,0 +1,97 @@
SUMMARY = "Linux kernel"
SECTION = "kernel"
LICENSE = "GPL-2.0-with-Linux-syscall-note"
HOMEPAGE = "https://www.yoctoproject.org/"
LIC_FILES_CHKSUM ?= "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)"
RECIPE_NO_UPDATE_REASON = "Recipe is updated through a separate process"
# Skip processing of this recipe if it is not explicitly specified as the
# PREFERRED_PROVIDER for virtual/kernel. This avoids network access required
# by the use of AUTOREV SRCREVs, which are the default for this recipe.
python () {
if d.getVar("KERNEL_PACKAGE_NAME") == "kernel" and d.getVar("PREFERRED_PROVIDER_virtual/kernel") != d.getVar("PN"):
d.delVar("BB_DONT_CACHE")
raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to %s to enable it" % (d.getVar("PN")))
}
DEPENDS += "xz-native bc-native"
DEPENDS:append:aarch64 = " libgcc"
KERNEL_CC:append:aarch64 = " ${TOOLCHAIN_OPTIONS}"
KERNEL_LD:append:aarch64 = " ${TOOLCHAIN_OPTIONS}"
DEPENDS:append:nios2 = " libgcc"
KERNEL_CC:append:nios2 = " ${TOOLCHAIN_OPTIONS}"
KERNEL_LD:append:nios2 = " ${TOOLCHAIN_OPTIONS}"
DEPENDS:append:arc = " libgcc"
KERNEL_CC:append:arc = " ${TOOLCHAIN_OPTIONS}"
KERNEL_LD:append:arc = " ${TOOLCHAIN_OPTIONS}"
KERNEL_FEATURES:append:qemuall = " features/debug/printk.scc features/taskstats/taskstats.scc"
KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'efi', 'cfg/efi.scc', '', d)}"
KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}"
KERNEL_FEATURES:append = " ${@bb.utils.contains('MACHINE_FEATURES', 'vfat', 'cfg/fs/vfat.scc', '', d)}"
KERNEL_FEATURES_RISCV = "\
arch/riscv/tunes/riscv-isa-clear.scc \
${@bb.utils.contains( 'TUNE_FEATURES', 'rv 32 i m a', 'arch/riscv/tunes/riscv-isa-rv32i.scc', '', d)} \
${@bb.utils.contains( 'TUNE_FEATURES', 'rv 64 i m a', 'arch/riscv/tunes/riscv-isa-rv64i.scc', '', d)} \
${@bb.utils.contains( 'TUNE_FEATURES', 'f d', 'arch/riscv/tunes/riscv-isa-fpu.scc', '', d)} \
${@bb.utils.contains( 'TUNE_FEATURES', 'c', 'arch/riscv/tunes/riscv-isa-c.scc', '', d)} \
${@bb.utils.contains( 'TUNE_FEATURES', 'v', 'arch/riscv/tunes/riscv-isa-v.scc', '', d)} \
${@bb.utils.contains_any('TUNE_FEATURES', 'b zba', 'arch/riscv/tunes/riscv-isa-zba.scc', '', d)} \
${@bb.utils.contains_any('TUNE_FEATURES', 'b zbb', 'arch/riscv/tunes/riscv-isa-zbb.scc', '', d)} \
${@bb.utils.contains( 'TUNE_FEATURES', 'zbc', 'arch/riscv/tunes/riscv-isa-zbc.scc', '', d)} \
${@bb.utils.contains( 'TUNE_FEATURES', 'zicbom', 'arch/riscv/tunes/riscv-isa-zicbom.scc', '', d)} \
"
KERNEL_FEATURES:append:riscv32 = " ${KERNEL_FEATURES_RISCV}"
KERNEL_FEATURES:append:riscv64 = " ${KERNEL_FEATURES_RISCV}"
# A KMACHINE is the mapping of a yocto $MACHINE to what is built
# by the kernel. This is typically the branch that should be built,
# and it can be specific to the machine or shared
# KMACHINE = "UNDEFINED"
LINUX_VERSION_EXTENSION ??= "-yocto-${LINUX_KERNEL_TYPE}"
# Pick up shared functions
inherit kernel
inherit kernel-yocto
B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build"
do_install:append(){
if [ -n "${KMETA}" ]; then
rm -rf ${STAGING_KERNEL_DIR}/${KMETA}
fi
}
# enable kernel-sample for oeqa/runtime/cases's ksample.py test
KERNEL_FEATURES:append:qemuall = " features/kernel-sample/kernel-sample.scc"
KERNEL_DEBUG ?= ""
# These used to be version specific, but are now common dependencies. New
# tools / dependencies will continue to be added in version specific recipes.
DEPENDS += '${@bb.utils.contains_any("ARCH", [ "x86", "arm64", "powerpc" ], "elfutils-native", "", d)}'
DEPENDS += "openssl-native util-linux-native"
DEPENDS += "gmp-native libmpc-native"
# Some options depend on CONFIG_PAHOLE_VERSION, so need to make pahole-native available before do_kernel_configme
do_kernel_configme[depends] += '${@bb.utils.contains("KERNEL_DEBUG", "True", "pahole-native:do_populate_sysroot", "", d)}'
EXTRA_OEMAKE += '${@bb.utils.contains("KERNEL_DEBUG", "True", "", "PAHOLE=false", d)}'
do_devshell:prepend() {
# setup native pkg-config variables (kconfig scripts call pkg-config directly, cannot generically be overriden to pkg-config-native)
d.setVar("PKG_CONFIG_DIR", "${STAGING_DIR_NATIVE}${libdir_native}/pkgconfig")
d.setVar("PKG_CONFIG_PATH", "${PKG_CONFIG_DIR}:${STAGING_DATADIR_NATIVE}/pkgconfig")
d.setVar("PKG_CONFIG_LIBDIR", "${PKG_CONFIG_DIR}")
d.setVarFlag("PKG_CONFIG_SYSROOT_DIR", "unexport", "1")
d.appendVar("OE_TERMINAL_EXPORTS", " PKG_CONFIG_DIR PKG_CONFIG_PATH PKG_CONFIG_LIBDIR PKG_CONFIG_SYSROOT_DIR")
}
+81
View File
@@ -0,0 +1,81 @@
#
# This file is generated based on:
# linux-yocto-6.12
# yocto-kernel-cache
#
# Any manual changes will be overwritten.
#
# This will cause SRCREV_machine:kb-<KBRANCH> take priority over SRCREV_machine:<machine>
MACHINEOVERRIDES .= ":kb-${@oe.utils.conditional('PREFERRED_PROVIDER_virtual/kernel', 'linux-yocto-dev', 'dev-', '', d)}${@d.getVar('KBRANCH', True).replace("/", "-")}"
# linux-yocto-6.12 entries
# linux-yocto-6.12 branch entries
SRCREV_machine:kb-master ?= "0bcda530593bba114c23c9e6fa9f268062975390"
LINUX_VERSION:kb-master = "6.12"
SRCREV_machine:kb-v6.12-base ?= "fcd03f7736b1fa2b2181a7306d14008aa36b66ed"
LINUX_VERSION:kb-v6.12-base = "6.12.53"
SRCREV_machine:kb-v6.12-standard-arm-versatile-926ejs ?= "e646fbdc560660a283cb67b585c37ae73610c31b"
LINUX_VERSION:kb-v6.12-standard-arm-versatile-926ejs = "6.12.55"
SRCREV_machine:kb-v6.12-standard-base ?= "c77f4d163458157a4c88d9cd9e175543a5d20140"
LINUX_VERSION:kb-v6.12-standard-base = "6.12.55"
SRCREV_machine:kb-v6.12-standard-bcm-2xxx-rpi ?= "b659edeccbae65cf8137f265a6e2c6f1eba76a6e"
LINUX_VERSION:kb-v6.12-standard-bcm-2xxx-rpi = "6.12.55"
SRCREV_machine:kb-v6.12-standard-beaglebone ?= "c77f4d163458157a4c88d9cd9e175543a5d20140"
LINUX_VERSION:kb-v6.12-standard-beaglebone = "6.12.55"
SRCREV_machine:kb-v6.12-standard-intel-socfpga ?= "8faea548ade849fd24182a234d54efa1fd4c268c"
LINUX_VERSION:kb-v6.12-standard-intel-socfpga = "6.12.55"
SRCREV_machine:kb-v6.12-standard-mti-malta32 ?= "b1b7883585a3e1adce260c566b8986b5c8d5a12e"
LINUX_VERSION:kb-v6.12-standard-mti-malta32 = "6.12.55"
SRCREV_machine:kb-v6.12-standard-mti-malta64 ?= "74368748436dddfe2b5cef23fe9f4c149709cc97"
LINUX_VERSION:kb-v6.12-standard-mti-malta64 = "6.12.55"
SRCREV_machine:kb-v6.12-standard-nvidia-sdk-5.15-nvidia-soc ?= "3addb0eef4c10a266b8bca1a5bb6a619c30a42f5"
LINUX_VERSION:kb-v6.12-standard-nvidia-sdk-5.15-nvidia-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-nxp-sdk-6.12-nxp-soc ?= "2d27eadebae92d56bb69704dcac123290b76d73a"
LINUX_VERSION:kb-v6.12-standard-nxp-sdk-6.12-nxp-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-nxp-sdk-6.6-nxp-s32g ?= "4628e3f8a1542aa854d27eafea12751b331cdd47"
LINUX_VERSION:kb-v6.12-standard-nxp-sdk-6.6-nxp-s32g = "6.12.55"
SRCREV_machine:kb-v6.12-standard-octeon ?= "4c154a90a70706ae46933eaa5f71c2a13fe913ba"
LINUX_VERSION:kb-v6.12-standard-octeon = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-arm-versatile-926ejs ?= "d74a69ac9d434abbae5021e514e83ea813775891"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-arm-versatile-926ejs = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-base ?= "014bc4e5637527525b6f97f58a09f2207c140293"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-base = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-bcm-2xxx-rpi ?= "cee95b89d5e5358215a9570de5d7e9faeeec378e"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-bcm-2xxx-rpi = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-intel-socfpga ?= "b5077648775ff6e6c57fe394486eaa0eb9d7ee5c"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-intel-socfpga = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-nvidia-sdk-5.15-nvidia-soc ?= "6ea93a77cbc05d80f522e30755ae8e2a6c20440d"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-nvidia-sdk-5.15-nvidia-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-nxp-sdk-6.12-nxp-soc ?= "a464b62e9b8fcac1887970df64388f4544acbd55"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-nxp-sdk-6.12-nxp-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-nxp-sdk-6.6-nxp-s32g ?= "8a13f422f9dfb002f1497c8b98314f5fc05a67a9"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-nxp-sdk-6.6-nxp-s32g = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-octeon ?= "66dc0481a93a7192ec8adbf459d09ce70a091a77"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-octeon = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-ti-soc ?= "97f11b7ffed8aff9cf01f555cd7aa1f33b361874"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-ti-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-x86 ?= "d16dcac5c2c71dfb181d17b1ed3e85082ec78b13"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-x86 = "6.12.55"
SRCREV_machine:kb-v6.12-standard-preempt-rt-xlnx-soc ?= "78500a88b0637f3fa86d838f3d3498658d1c164a"
LINUX_VERSION:kb-v6.12-standard-preempt-rt-xlnx-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-qemuppc ?= "c77f4d163458157a4c88d9cd9e175543a5d20140"
LINUX_VERSION:kb-v6.12-standard-qemuppc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-ti-soc ?= "4c3c5837e32a22365967f3c4b4b66c64afd2f586"
LINUX_VERSION:kb-v6.12-standard-ti-soc = "6.12.55"
SRCREV_machine:kb-v6.12-standard-tiny-arm-versatile-926ejs ?= "15565008bcd072d528a893adf6ae16dbfdc88dfa"
LINUX_VERSION:kb-v6.12-standard-tiny-arm-versatile-926ejs = "6.12.55"
SRCREV_machine:kb-v6.12-standard-tiny-base ?= "c77f4d163458157a4c88d9cd9e175543a5d20140"
LINUX_VERSION:kb-v6.12-standard-tiny-base = "6.12.55"
SRCREV_machine:kb-v6.12-standard-tiny-x86 ?= "c77f4d163458157a4c88d9cd9e175543a5d20140"
LINUX_VERSION:kb-v6.12-standard-tiny-x86 = "6.12.55"
SRCREV_machine:kb-v6.12-standard-x86 ?= "feb5948c4a93aacabf8ab95d75b09490ae14175b"
LINUX_VERSION:kb-v6.12-standard-x86 = "6.12.55"
SRCREV_machine:kb-v6.12-standard-xilinx-zynqmp ?= "c77f4d163458157a4c88d9cd9e175543a5d20140"
LINUX_VERSION:kb-v6.12-standard-xilinx-zynqmp = "6.12.55"
SRCREV_machine:kb-v6.12-standard-xlnx-soc ?= "943e14e768b4dbc38c0089910c6e4b91a7730cda"
LINUX_VERSION:kb-v6.12-standard-xlnx-soc = "6.12.55"
# yocto-kernel-cache entries
KERNEL_CACHE_BRANCH_6.12 = "yocto-6.12"
SRCREV_meta_6.12 = "cdfa30c73acdf1f1c341047eb747fe94e97a2e8f"
@@ -0,0 +1,10 @@
#
# Copyright (C) 2019 Wind River Systems, Inc.
#
# TARGET_SUPPORTED_KTYPES:rpi = "standard preempt-rt"
# COMPATIBLE_MACHINE:rpi = "(bcm-2xxx-rpi4|bcm-2xxx-rpi5)"
# KMACHINE:rpi = "bcm-2xxx-rpi4"
inherit siteinfo
KERNEL_DTC_FLAGS:append:rpi = " -@ -H epapr"
@@ -0,0 +1,30 @@
COMPATIBLE_MACHINE:intel-x86-64 = "intel-x86-64"
#add the depends of cdrtools-native to make sure it is
#always built to support the usb-image & iso-image UEFI
#booting by default without explicitly add the configure
#option of "--enable-bootimage=iso"
DEPENDS:append:intel-x86-64 = " cdrtools-native"
# A method to install/update for bzImage on a deployed target
KERNELLOADEREXTENSION:append:intel-x86-64 = " kernel-grub"
TARGET_SUPPORTED_KTYPES:intel-x86 = "standard preempt-rt"
# When using qat17 or qat20 as the provider of virtual/qat, the out-of-tree QAT drivers will conflict
# with the in-tree ones. So remove in-tree QAT drivers when using qat17 or qat20 in template feature/intel-qat.
do_install:append:intel-x86() {
if [ -n "${@bb.utils.contains_any('PREFERRED_PROVIDER_virtual/qat', [ 'qat17', 'qat20' ], '1', '', d)}" ];then
rm -rf ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/crypto/intel/qat
if [ "`ls -A ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/crypto/intel`" = "" ];then
rm -rf ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/crypto/intel
fi
if [ "`ls -A ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/crypto`" = "" ];then
rm -rf ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/crypto
fi
fi
}
# Set the maximum supported CPU count to 512
KERNEL_FEATURES:append:intel-x86-64 = " cfg/cpu_nr_512.scc"