1SUMMARY = "Linux kernel" 2SECTION = "kernel" 3LICENSE = "GPLv2" 4HOMEPAGE = "https://www.yoctoproject.org/" 5 6LIC_FILES_CHKSUM ?= "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 7 8UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+\.\d+(\.\d+)*)" 9 10RECIPE_NO_UPDATE_REASON = "Recipe is updated through a separate process" 11 12# Skip processing of this recipe if it is not explicitly specified as the 13# PREFERRED_PROVIDER for virtual/kernel. This avoids network access required 14# by the use of AUTOREV SRCREVs, which are the default for this recipe. 15python () { 16 if d.getVar("KERNEL_PACKAGE_NAME") == "kernel" and d.getVar("PREFERRED_PROVIDER_virtual/kernel") != d.getVar("PN"): 17 d.delVar("BB_DONT_CACHE") 18 raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to %s to enable it" % (d.getVar("PN"))) 19} 20 21DEPENDS += "xz-native bc-native" 22DEPENDS_append_aarch64 = " libgcc" 23KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" 24KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" 25 26DEPENDS_append_nios2 = " libgcc" 27KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}" 28KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}" 29 30DEPENDS_append_arc = " libgcc" 31KERNEL_CC_append_arc = " ${TOOLCHAIN_OPTIONS}" 32KERNEL_LD_append_arc = " ${TOOLCHAIN_OPTIONS}" 33 34KERNEL_FEATURES_append_qemuall=" features/debug/printk.scc" 35 36KERNEL_FEATURES_append = " ${@bb.utils.contains('MACHINE_FEATURES', 'numa', 'features/numa/numa.scc', '', d)}" 37 38# A KMACHINE is the mapping of a yocto $MACHINE to what is built 39# by the kernel. This is typically the branch that should be built, 40# and it can be specific to the machine or shared 41# KMACHINE = "UNDEFINED" 42 43LINUX_VERSION_EXTENSION ??= "-yocto-${LINUX_KERNEL_TYPE}" 44 45# Pick up shared functions 46inherit kernel 47inherit kernel-yocto 48 49B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build" 50 51do_install_append(){ 52 if [ -n "${KMETA}" ]; then 53 rm -rf ${STAGING_KERNEL_DIR}/${KMETA} 54 fi 55} 56 57# enable kernel-sample for oeqa/runtime/cases's ksample.py test 58KERNEL_FEATURES_append_qemuall=" features/kernel-sample/kernel-sample.scc" 59