diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2017-09-06 15:56:10 +0200 |
---|---|---|
committer | Martin Borg <martin.borg@enea.com> | 2017-09-07 14:40:50 +0200 |
commit | 116cbd42e44dec3caca3d9c68c99bdddcff2302b (patch) | |
tree | 4ff816789f6571002bd39bc9899339f0553a6366 | |
parent | 192bce0802d63e099daacf70daa81551651a55fe (diff) | |
download | meta-enea-bsp-arm-116cbd42e44dec3caca3d9c68c99bdddcff2302b.tar.gz |
add separate kernel recipe for guest
guest kernel is based on cavium kernel source tree as the one
for host but we need a seprate recipe so we can append
different kernel configurations for guest.
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Signed-off-by: Martin Borg <martin.borg@enea.com>
-rw-r--r-- | recipes-kernel/linux/linux-cavium-guest_4.9.bb | 1 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-cavium-sdk_4.9.bb | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-cavium_4.9.bb | 38 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-cavium_4.9.inc | 37 |
4 files changed, 40 insertions, 38 deletions
diff --git a/recipes-kernel/linux/linux-cavium-guest_4.9.bb b/recipes-kernel/linux/linux-cavium-guest_4.9.bb new file mode 100644 index 0000000..2851845 --- /dev/null +++ b/recipes-kernel/linux/linux-cavium-guest_4.9.bb | |||
@@ -0,0 +1 @@ | |||
require linux-cavium_4.9.inc | |||
diff --git a/recipes-kernel/linux/linux-cavium-sdk_4.9.bb b/recipes-kernel/linux/linux-cavium-sdk_4.9.bb index 5e4cbfe..a45fe96 100644 --- a/recipes-kernel/linux/linux-cavium-sdk_4.9.bb +++ b/recipes-kernel/linux/linux-cavium-sdk_4.9.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | require linux-cavium_4.9.bb | 1 | require linux-cavium_4.9.inc |
2 | 2 | ||
3 | # Debug tools support | 3 | # Debug tools support |
4 | KERNEL_FEATURES_append = " features/debug/debug_kernel_y.scc" | 4 | KERNEL_FEATURES_append = " features/debug/debug_kernel_y.scc" |
diff --git a/recipes-kernel/linux/linux-cavium_4.9.bb b/recipes-kernel/linux/linux-cavium_4.9.bb index f26a34e..2851845 100644 --- a/recipes-kernel/linux/linux-cavium_4.9.bb +++ b/recipes-kernel/linux/linux-cavium_4.9.bb | |||
@@ -1,37 +1 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | require linux-cavium_4.9.inc | |
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | require recipes-kernel/linux/linux-deploy-kconfig.inc | ||
5 | |||
6 | # board specific branches | ||
7 | KBRANCH_cn8304 ?= "cavium-4.9" | ||
8 | KBRANCH_qemuarm64 ?= "cavium-4.9" | ||
9 | |||
10 | SRCREV_machine_cn8304 ?= "3804edd9db9c0d3e0e8301f13bdc569bcc0ebd09" | ||
11 | SRCREV_machine_qemuarm64 ?= "3804edd9db9c0d3e0e8301f13bdc569bcc0ebd09" | ||
12 | SRCREV_metaenea ?= "85a500385477e07d144fc3fcfa4ec62e6aabc8e8" | ||
13 | KENEABRANCH = "cavium-4.9" | ||
14 | |||
15 | SRC_URI = "git://git@git.enea.com/linux/linux-cavium.git;protocol=ssh;name=machine;branch=${KBRANCH} \ | ||
16 | git://git@git.enea.com/linux/enea-kernel-cache.git;protocol=ssh;type=kmeta;name=metaenea;branch=${KENEABRANCH};destsuffix=enea-kernel-cache \ | ||
17 | file://dts \ | ||
18 | " | ||
19 | |||
20 | LINUX_KERNEL_TYPE = "tiny" | ||
21 | LINUX_VERSION ?= "4.9.0" | ||
22 | LINUX_VERSION_EXTENSION = "-cavium-${LINUX_KERNEL_TYPE}" | ||
23 | PV = "4.9-octeontx.sdk.6.1.0.p2.build.17" | ||
24 | |||
25 | KERNEL_DEVICETREE_cn8304 = "cavium/ebb8304-linux.dtb" | ||
26 | |||
27 | COMPATIBLE_MACHINE = "cn8304|qemuarm64" | ||
28 | KMACHINE_cn8304 = "cavium-cn8304" | ||
29 | KMACHINE_qemuarm64 = "cavium-cn8304" | ||
30 | |||
31 | KERNEL_FEATURES_append = " features/udev/udev.scc" | ||
32 | KERNEL_FEATURES_append_cn8304 += "features/net/thunderx/thunderx_nic.scc" | ||
33 | |||
34 | do_patch_append() { | ||
35 | install -D ${S}/arch/${ARCH}/boot/dts | ||
36 | install ${WORKDIR}/dts/* ${S}/arch/${ARCH}/boot/dts/cavium/ | ||
37 | } | ||
diff --git a/recipes-kernel/linux/linux-cavium_4.9.inc b/recipes-kernel/linux/linux-cavium_4.9.inc new file mode 100644 index 0000000..1077e48 --- /dev/null +++ b/recipes-kernel/linux/linux-cavium_4.9.inc | |||
@@ -0,0 +1,37 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-cavium:" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | require recipes-kernel/linux/linux-deploy-kconfig.inc | ||
5 | |||
6 | # board specific branches | ||
7 | KBRANCH_cn8304 ?= "cavium-4.9" | ||
8 | KBRANCH_qemuarm64 ?= "cavium-4.9" | ||
9 | |||
10 | SRCREV_machine_cn8304 ?= "3804edd9db9c0d3e0e8301f13bdc569bcc0ebd09" | ||
11 | SRCREV_machine_qemuarm64 ?= "3804edd9db9c0d3e0e8301f13bdc569bcc0ebd09" | ||
12 | SRCREV_metaenea ?= "85a500385477e07d144fc3fcfa4ec62e6aabc8e8" | ||
13 | KENEABRANCH = "cavium-4.9" | ||
14 | |||
15 | SRC_URI = "git://git@git.enea.com/linux/linux-cavium.git;protocol=ssh;name=machine;branch=${KBRANCH} \ | ||
16 | git://git@git.enea.com/linux/enea-kernel-cache.git;protocol=ssh;type=kmeta;name=metaenea;branch=${KENEABRANCH};destsuffix=enea-kernel-cache \ | ||
17 | file://dts \ | ||
18 | " | ||
19 | |||
20 | LINUX_KERNEL_TYPE = "tiny" | ||
21 | LINUX_VERSION ?= "4.9.0" | ||
22 | LINUX_VERSION_EXTENSION = "-cavium-${LINUX_KERNEL_TYPE}" | ||
23 | PV = "4.9-octeontx.sdk.6.1.0.p2.build.17" | ||
24 | |||
25 | KERNEL_DEVICETREE_cn8304 = "cavium/ebb8304-linux.dtb" | ||
26 | |||
27 | COMPATIBLE_MACHINE = "cn8304|qemuarm64" | ||
28 | KMACHINE_cn8304 = "cavium-cn8304" | ||
29 | KMACHINE_qemuarm64 = "cavium-cn8304" | ||
30 | |||
31 | KERNEL_FEATURES_append = " features/udev/udev.scc" | ||
32 | KERNEL_FEATURES_append_cn8304 += "features/net/thunderx/thunderx_nic.scc" | ||
33 | |||
34 | do_patch_append() { | ||
35 | install -D ${S}/arch/${ARCH}/boot/dts | ||
36 | install ${WORKDIR}/dts/* ${S}/arch/${ARCH}/boot/dts/cavium/ | ||
37 | } | ||