Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Yocto Kernel" |
| 2 | SECTION = "kernel" |
| 3 | LICENSE = "GPLv2" |
| 4 | |
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 6 | |
| 7 | INC_PR = "r4" |
| 8 | |
| 9 | DEPENDS += "xz-native bc-native" |
| 10 | DEPENDS_append_aarch64 = " libgcc" |
| 11 | KERNEL_CC_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" |
| 12 | KERNEL_LD_append_aarch64 = " ${TOOLCHAIN_OPTIONS}" |
| 13 | |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 14 | DEPENDS_append_nios2 = " libgcc" |
| 15 | KERNEL_CC_append_nios2 = " ${TOOLCHAIN_OPTIONS}" |
| 16 | KERNEL_LD_append_nios2 = " ${TOOLCHAIN_OPTIONS}" |
| 17 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | # 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 | |
| 23 | LINUX_KERNEL_TYPE ?= "standard" |
| 24 | |
| 25 | # KMETA ?= "" |
| 26 | KBRANCH ?= "master" |
| 27 | KMACHINE ?= "${MACHINE}" |
| 28 | SRCREV_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 |
| 34 | KCONF_AUDIT_LEVEL ?= "1" |
| 35 | KCONF_BSP_AUDIT_LEVEL ?= "0" |
| 36 | |
| 37 | LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" |
| 38 | |
| 39 | # Pick up shared functions |
| 40 | inherit kernel |
| 41 | inherit kernel-yocto |
| 42 | require linux-dtb.inc |
| 43 | |
| 44 | B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build" |
| 45 | |
| 46 | do_install_append(){ |
| 47 | if [ -n "${KMETA}" ]; then |
| 48 | rm -rf ${STAGING_KERNEL_DIR}/${KMETA} |
| 49 | fi |
| 50 | } |
| 51 | |
| 52 | # extra tasks |
| 53 | addtask kernel_link_vmlinux after do_compile before do_install |
| 54 | addtask validate_branches before do_patch after do_kernel_checkout |
| 55 | addtask kernel_configcheck after do_configure before do_compile |