mirror of
https://git.yoctoproject.org/poky
synced 2026-02-22 17:39:39 +01:00
During the preparation of some linux-yocto extension documentation it was clear that some variables are being defined in each recipe, when they don't have to be. Moving the defaults into linux-yocto.in and allowing them to be overidden in recipes simpifies the reuse of the base infrastructure. (From OE-Core rev: 0ca26544efe8d650f36db9dc1c3b3a15110d7e31) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
37 lines
972 B
PHP
37 lines
972 B
PHP
DESCRIPTION = "Yocto Kernel"
|
|
SECTION = "kernel"
|
|
LICENSE = "GPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
|
|
|
|
# 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"
|
|
|
|
# Set this to 'preempt_rt' in the local.conf if you want a real time kernel
|
|
LINUX_KERNEL_TYPE ?= standard
|
|
|
|
KMETA ?= meta
|
|
SRCREV_FORMAT ?= "meta_machine"
|
|
|
|
LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
|
|
KERNEL_REVISION_CHECKING ?= "t"
|
|
YOCTO_KERNEL_META_DATA ?= t
|
|
|
|
do_patch[depends] = "kern-tools-native:do_populate_sysroot"
|
|
|
|
addtask kernel_configme before do_configure after do_patch
|
|
|
|
# Pick up shared functions
|
|
inherit kernel-yocto
|
|
require linux-dtb.inc
|
|
|
|
B = "${WORKDIR}/linux-${MACHINE}-${LINUX_KERNEL_TYPE}-build"
|
|
|
|
do_install_append(){
|
|
if [ -n "${KMETA}" ]; then
|
|
rm -rf ${STAGING_KERNEL_DIR}/${KMETA}
|
|
fi
|
|
}
|