diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2017-09-30 01:13:36 +1000 |
---|---|---|
committer | Nathan Rossi <nathan@nathanrossi.com> | 2017-10-18 18:00:09 +1000 |
commit | cac099d109916246d62fa45a93a1d4ceb9cf58aa (patch) | |
tree | 0db73a225f616d18e03960e8b25003ac81ea15ee | |
parent | 5cc65e95f280e377822bbb0021187405b337356c (diff) | |
download | meta-xilinx-cac099d109916246d62fa45a93a1d4ceb9cf58aa.tar.gz |
linux-yocto: Rework kmeta/config for linux-yocto bbappends
Rework meta-xilinx specific appends for linux-yocto to configure
specific KMACHINE -> MACHINE pairs as well as setting up the
xilinx-kmeta directory for additional fragments.
Additionally pull out the MicroBlaze specific DEPENDS modificaation for
common use.
Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r-- | recipes-kernel/linux/linux-microblaze.inc | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto-dev.bbappend | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto-tiny_%.bbappend | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto-xilinx.inc | 25 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_%.bbappend | 5 |
5 files changed, 33 insertions, 12 deletions
diff --git a/recipes-kernel/linux/linux-microblaze.inc b/recipes-kernel/linux/linux-microblaze.inc new file mode 100644 index 00000000..e23a50e8 --- /dev/null +++ b/recipes-kernel/linux/linux-microblaze.inc | |||
@@ -0,0 +1,5 @@ | |||
1 | # MicroBlaze is a uImage target, but its not called 'uImage' instead it is called 'linux.bin.ub' | ||
2 | python () { | ||
3 | if d.getVar('KERNEL_IMAGETYPE', True).endswith('.ub'): | ||
4 | d.setVar('DEPENDS', "%s u-boot-mkimage-native" % d.getVar('DEPENDS', True)) | ||
5 | } | ||
diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend index 651e0d72..05c39951 100644 --- a/recipes-kernel/linux/linux-yocto-dev.bbappend +++ b/recipes-kernel/linux/linux-yocto-dev.bbappend | |||
@@ -1,4 +1 @@ | |||
1 | require linux-yocto-xilinx.inc | ||
2 | require linux-xilinx-configs.inc | ||
3 | require linux-xilinx-machines.inc | ||
4 | |||
diff --git a/recipes-kernel/linux/linux-yocto-tiny_%.bbappend b/recipes-kernel/linux/linux-yocto-tiny_%.bbappend index 651e0d72..05c39951 100644 --- a/recipes-kernel/linux/linux-yocto-tiny_%.bbappend +++ b/recipes-kernel/linux/linux-yocto-tiny_%.bbappend | |||
@@ -1,4 +1 @@ | |||
1 | require linux-yocto-xilinx.inc | ||
2 | require linux-xilinx-configs.inc | ||
3 | require linux-xilinx-machines.inc | ||
4 | |||
diff --git a/recipes-kernel/linux/linux-yocto-xilinx.inc b/recipes-kernel/linux/linux-yocto-xilinx.inc new file mode 100644 index 00000000..92093008 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto-xilinx.inc | |||
@@ -0,0 +1,25 @@ | |||
1 | require linux-microblaze.inc | ||
2 | |||
3 | # Add meta-xilinx kmeta | ||
4 | FILESEXTRAPATHS_prepend := "${THISDIR}:" | ||
5 | SRC_URI_append = " file://xilinx-kmeta;type=kmeta;name=xilinx-kmeta;destsuffix=xilinx-kmeta" | ||
6 | |||
7 | # Zynq default generic KMACHINE | ||
8 | COMPATIBLE_MACHINE_zynq = "zynq" | ||
9 | KMACHINE_zynq = "zynq" | ||
10 | |||
11 | # ZynqMP default generic KMACHINE | ||
12 | COMPATIBLE_MACHINE_zynqmp = "zynqmp" | ||
13 | KMACHINE_zynqmp = "zynqmp" | ||
14 | |||
15 | # MicroBlaze KMACHINEs | ||
16 | KMACHINE_ml605-qemu-microblazeel = "qemumicroblazeel" | ||
17 | KMACHINE_s3adsp1800-qemu-microblazeeb = "qemumicroblazeeb" | ||
18 | |||
19 | # MicroBlaze default generic KMACHINE | ||
20 | KMACHINE_microblaze = "microblaze" | ||
21 | COMPATIBLE_MACHINE_microblaze = "microblaze" | ||
22 | |||
23 | # Default kernel config fragements for specific machines | ||
24 | KERNEL_FEATURES_append_kc705-microblazeel = " bsp/kc705-microblazeel/kc705-microblazeel.scc" | ||
25 | |||
diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend index 651e0d72..05c39951 100644 --- a/recipes-kernel/linux/linux-yocto_%.bbappend +++ b/recipes-kernel/linux/linux-yocto_%.bbappend | |||
@@ -1,4 +1 @@ | |||
1 | require linux-yocto-xilinx.inc | ||
2 | require linux-xilinx-configs.inc | ||
3 | require linux-xilinx-machines.inc | ||
4 | |||