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 | |
| 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 | |
| 19 | LINUX_KERNEL_TYPE ?= "standard" |
| 20 | |
| 21 | # KMETA ?= "" |
| 22 | KBRANCH ?= "master" |
| 23 | KMACHINE ?= "${MACHINE}" |
| 24 | SRCREV_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 |
| 30 | KCONF_AUDIT_LEVEL ?= "1" |
| 31 | KCONF_BSP_AUDIT_LEVEL ?= "0" |
| 32 | |
| 33 | LINUX_VERSION_EXTENSION ?= "-yocto-${LINUX_KERNEL_TYPE}" |
| 34 | |
| 35 | # Pick up shared functions |
| 36 | inherit kernel |
| 37 | inherit kernel-yocto |
| 38 | require linux-dtb.inc |
| 39 | |
| 40 | B = "${WORKDIR}/linux-${PACKAGE_ARCH}-${LINUX_KERNEL_TYPE}-build" |
| 41 | |
| 42 | do_install_append(){ |
| 43 | if [ -n "${KMETA}" ]; then |
| 44 | rm -rf ${STAGING_KERNEL_DIR}/${KMETA} |
| 45 | fi |
| 46 | } |
| 47 | |
| 48 | # extra tasks |
| 49 | addtask kernel_link_vmlinux after do_compile before do_install |
| 50 | addtask validate_branches before do_patch after do_kernel_checkout |
| 51 | addtask kernel_configcheck after do_configure before do_compile |