blob: 3b41a61c36311abdf15911f1ed048d05283f132d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001DESCRIPTION = "Yocto Kernel"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
6
7INC_PR = "r4"
8
9DEPENDS += "xz-native bc-native"
10DEPENDS_append_aarch64 = " libgcc"
11KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
12KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}"
13
14# A KMACHINE is the mapping of a yocto $MACHINE to what is built
15# by the kernel. This is typically the branch that should be built,
16# and it can be specific to the machine or shared
17# KMACHINE = "UNDEFINED"
18
19LINUX_KERNEL_TYPE ?= "standard"
20
21# KMETA ?= ""
22KBRANCH ?= "master"
23KMACHINE ?= "${MACHINE}"
24SRCREV_FORMAT ?= "meta_machine"
25
26# LEVELS:
27# 0: no reporting
28# 1: report options that are specified, but not in the final config
29# 2: report options that are not hardware related, but set by a BSP
30KCONF_AUDIT_LEVEL ?= "1"
31KCONF_BSP_AUDIT_LEVEL ?= "0"
32
33LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
34
35# Pick up shared functions
36inherit kernel
37inherit kernel-yocto
38require linux-dtb.inc
39
40B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build"
41
42do_install_append(){
43 if [ -n "${KMETA}" ]; then
44 rm -rf ${STAGING_KERNEL_DIR}/${KMETA}
45 fi
46}
47
48# extra tasks
49addtask kernel_link_vmlinux after do_compile before do_install
50addtask validate_branches before do_patch after do_kernel_checkout
51addtask kernel_configcheck after do_configure before do_compile