1 # This file was derived from the linux-yocto-custom.bb recipe in
4 # linux-yocto-custom.bb:
6 # A yocto-bsp-generated kernel recipe that uses the linux-yocto and
7 # oe-core kernel classes to apply a subset of yocto kernel
8 # management to git managed kernel repositories.
12 # Building this kernel without providing a defconfig or BSP
13 # configuration will result in build or boot errors. This is not a
18 # patches: patches can be merged into to the source git tree itself,
19 # added via the SRC_URI, or controlled via a BSP
22 # example configuration addition:
23 # SRC_URI += "file://smp.cfg"
24 # example patch addition:
25 # SRC_URI += "file://0001-linux-version-tweak.patch
26 # example feature addition:
27 # SRC_URI += "file://feature.scc"
31 require recipes-kernel/linux/linux-yocto.inc
33 {{ if kernel_choice == "custom" and custom_kernel_remote == "y": }}
34 SRC_URI = "{{=custom_kernel_remote_path}};protocol=git;bareclone=1"
35 {{ if kernel_choice == "custom" and custom_kernel_remote == "n": }}
36 SRC_URI = "git://{{=custom_kernel_local_path}};protocol=file;bareclone=1"
38 SRC_URI += "file://defconfig"
40 SRC_URI += "file://{{=machine}}.scc \
41 file://{{=machine}}.cfg \
42 file://user-config.cfg \
43 file://user-patches.scc \
46 {{ if kernel_choice == "custom" and custom_kernel_need_kbranch == "y" and custom_kernel_kbranch and custom_kernel_kbranch != "master": }}
47 KBRANCH = "{{=custom_kernel_kbranch}}"
49 LINUX_VERSION ?= "{{=custom_kernel_linux_version}}"
50 LINUX_VERSION_EXTENSION ?= "{{=custom_kernel_linux_version_extension}}"
52 SRCREV="{{=custom_kernel_srcrev}}"
55 PV = "${LINUX_VERSION}+git${SRCPV}"
57 COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"