blob: 81ffa24d05419b4747ba387be9441b466d30f833 [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
Patrick Williamsf1e5d692016-03-30 15:21:19 -050014DEPENDS_append_nios2 = " libgcc"
15KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
16KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}"
17
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018# A KMACHINE is the mapping of a yocto $MACHINE to what is built
19# by the kernel. This is typically the branch that should be built,
20# and it can be specific to the machine or shared
21# KMACHINE = "UNDEFINED"
22
23LINUX_KERNEL_TYPE ?= "standard"
24
25# KMETA ?= ""
26KBRANCH ?= "master"
27KMACHINE ?= "${MACHINE}"
28SRCREV_FORMAT ?= "meta_machine"
29
30# LEVELS:
31# 0: no reporting
32# 1: report options that are specified, but not in the final config
33# 2: report options that are not hardware related, but set by a BSP
34KCONF_AUDIT_LEVEL ?= "1"
35KCONF_BSP_AUDIT_LEVEL ?= "0"
36
37LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}"
38
39# Pick up shared functions
40inherit kernel
41inherit kernel-yocto
42require linux-dtb.inc
43
44B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build"
45
46do_install_append(){
47 if [ -n "${KMETA}" ]; then
48 rm -rf ${STAGING_KERNEL_DIR}/${KMETA}
49 fi
50}
51
52# extra tasks
53addtask kernel_link_vmlinux after do_compile before do_install
54addtask validate_branches before do_patch after do_kernel_checkout
55addtask kernel_configcheck after do_configure before do_compile