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