]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/blob
5471c93227891344819489b192ecbb61b88000a8
[thirdparty/openembedded/openembedded-core-contrib.git] /
1 # This file was derived from the linux-yocto-custom.bb recipe in
2 # oe-core.
3 #
4 # linux-yocto-custom.bb:
5 #
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.
9 #
10 # Warning:
11 #
12 # Building this kernel without providing a defconfig or BSP
13 # configuration will result in build or boot errors. This is not a
14 # bug.
15 #
16 # Notes:
17 #
18 # patches: patches can be merged into to the source git tree itself,
19 # added via the SRC_URI, or controlled via a BSP
20 # configuration.
21 #
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"
28 #
29
30 inherit kernel
31 require recipes-kernel/linux/linux-yocto.inc
32
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"
37
38 SRC_URI += "file://defconfig"
39
40 SRC_URI += "file://{{=machine}}.scc \
41 file://{{=machine}}.cfg \
42 file://user-config.cfg \
43 file://user-patches.scc \
44 "
45
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}}"
48
49 LINUX_VERSION ?= "{{=custom_kernel_linux_version}}"
50 LINUX_VERSION_EXTENSION ?= "{{=custom_kernel_linux_version_extension}}"
51
52 SRCREV="{{=custom_kernel_srcrev}}"
53
54 PR = "r0"
55 PV = "${LINUX_VERSION}+git${SRCPV}"
56
57 COMPATIBLE_MACHINE_{{=machine}} = "{{=machine}}"