diff options
author | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-04-11 17:38:51 +1000 |
---|---|---|
committer | Nathan Rossi <nathan.rossi@xilinx.com> | 2014-04-11 18:41:06 +1000 |
commit | d6d579dc7a903bac4508bc48a9869744b3b1ba45 (patch) | |
tree | a2b21ed50b6c93c8488464dbc47cc73e7523d3ba | |
parent | 8035fae171ec7bbf9229c0294b661714e8520036 (diff) | |
download | meta-xilinx-d6d579dc7a903bac4508bc48a9869744b3b1ba45.tar.gz |
linux/linux-machine-common.inc: Refactor defconfigs
* Refactor defconfig default setting of MACHINE_KCONFIG, moving it from
linux-xlnx.inc to linux-machine-common.inc, to allow sharing between
linux-xlnx and linux-yocto recipes
* Switch to prepending the configs, this ensures that the defconfigs are
at the lowest priority, and that additional configs appended will
override the defconfig
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r-- | recipes-kernel/linux/linux-machine-common.inc | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-xlnx.inc | 5 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto-dev.bbappend | 6 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_3.10.bbappend | 3 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-yocto_3.14.bbappend | 6 |
5 files changed, 11 insertions, 14 deletions
diff --git a/recipes-kernel/linux/linux-machine-common.inc b/recipes-kernel/linux/linux-machine-common.inc index 2b76cdee..c4a21c19 100644 --- a/recipes-kernel/linux/linux-machine-common.inc +++ b/recipes-kernel/linux/linux-machine-common.inc | |||
@@ -9,3 +9,8 @@ MACHINE_DEVICETREE_append_zynq += " \ | |||
9 | common/zynq-7-base.dtsi \ | 9 | common/zynq-7-base.dtsi \ |
10 | common/zynq-7-mainline-gem.dtsi \ | 10 | common/zynq-7-mainline-gem.dtsi \ |
11 | " | 11 | " |
12 | |||
13 | # Architecture specific kernel configuration parts, defconfigs for Xilinx architectures | ||
14 | MACHINE_KCONFIG_LINUX_VERSION ?= "${@'.'.join(d.getVar('LINUX_VERSION', True).split('.')[0:2])}" | ||
15 | MACHINE_KCONFIG_prepend_zynq += "common/linux/zynq/defconfig_${MACHINE_KCONFIG_LINUX_VERSION}.cfg " | ||
16 | MACHINE_KCONFIG_prepend_microblaze += "common/linux/microblaze/defconfig_${MACHINE_KCONFIG_LINUX_VERSION}.cfg " | ||
diff --git a/recipes-kernel/linux/linux-xlnx.inc b/recipes-kernel/linux/linux-xlnx.inc index b72c0e04..3caddc87 100644 --- a/recipes-kernel/linux/linux-xlnx.inc +++ b/recipes-kernel/linux/linux-xlnx.inc | |||
@@ -23,8 +23,3 @@ require linux-machine-kconfig.inc | |||
23 | 23 | ||
24 | # Override COMPATIBLE_MACHINE to include your machine in a bbappend file. | 24 | # Override COMPATIBLE_MACHINE to include your machine in a bbappend file. |
25 | COMPATIBLE_MACHINE = "qemumicroblaze|qemuzynq|microblaze|zynq" | 25 | COMPATIBLE_MACHINE = "qemumicroblaze|qemuzynq|microblaze|zynq" |
26 | |||
27 | # Common kernel configuration parts | ||
28 | # Arch specific kernel configuration parts | ||
29 | MACHINE_KCONFIG_append_zynq += "common/linux/zynq/defconfig_${LINUX_VERSION}.cfg" | ||
30 | MACHINE_KCONFIG_append_microblaze += "common/linux/microblaze/defconfig_${LINUX_VERSION}.cfg" | ||
diff --git a/recipes-kernel/linux/linux-yocto-dev.bbappend b/recipes-kernel/linux/linux-yocto-dev.bbappend index 0e924c7d..239ea7cf 100644 --- a/recipes-kernel/linux/linux-yocto-dev.bbappend +++ b/recipes-kernel/linux/linux-yocto-dev.bbappend | |||
@@ -1,8 +1,8 @@ | |||
1 | 1 | ||
2 | require linux-machine-common.inc | 2 | require linux-machine-common.inc |
3 | 3 | ||
4 | # Use the 3.10 defconfigs | ||
5 | MACHINE_KCONFIG_LINUX_VERSION = "3.10" | ||
6 | |||
4 | COMPATIBLE_MACHINE_zynq = "zynq" | 7 | COMPATIBLE_MACHINE_zynq = "zynq" |
5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | 8 | COMPATIBLE_MACHINE_microblaze = "microblaze" |
6 | |||
7 | MACHINE_KCONFIG_append_zynq += "common/linux/zynq/defconfig_3.10.cfg" | ||
8 | MACHINE_KCONFIG_append_microblaze += "common/linux/microblaze/defconfig_3.10.cfg" | ||
diff --git a/recipes-kernel/linux/linux-yocto_3.10.bbappend b/recipes-kernel/linux/linux-yocto_3.10.bbappend index 4990ae67..3601d587 100644 --- a/recipes-kernel/linux/linux-yocto_3.10.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.10.bbappend | |||
@@ -4,8 +4,5 @@ require linux-machine-common.inc | |||
4 | COMPATIBLE_MACHINE_zynq = "zynq" | 4 | COMPATIBLE_MACHINE_zynq = "zynq" |
5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | 5 | COMPATIBLE_MACHINE_microblaze = "microblaze" |
6 | 6 | ||
7 | MACHINE_KCONFIG_append_zynq += "common/linux/zynq/defconfig_3.10.cfg" | ||
8 | MACHINE_KCONFIG_append_microblaze += "common/linux/microblaze/defconfig_3.10.cfg" | ||
9 | |||
10 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" | 7 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-yocto:" |
11 | SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch" | 8 | SRC_URI_append_microblaze += "file://ec2eba55f0c0e74dd39aca14dcc597583cf1eb67.patch" |
diff --git a/recipes-kernel/linux/linux-yocto_3.14.bbappend b/recipes-kernel/linux/linux-yocto_3.14.bbappend index 0e924c7d..239ea7cf 100644 --- a/recipes-kernel/linux/linux-yocto_3.14.bbappend +++ b/recipes-kernel/linux/linux-yocto_3.14.bbappend | |||
@@ -1,8 +1,8 @@ | |||
1 | 1 | ||
2 | require linux-machine-common.inc | 2 | require linux-machine-common.inc |
3 | 3 | ||
4 | # Use the 3.10 defconfigs | ||
5 | MACHINE_KCONFIG_LINUX_VERSION = "3.10" | ||
6 | |||
4 | COMPATIBLE_MACHINE_zynq = "zynq" | 7 | COMPATIBLE_MACHINE_zynq = "zynq" |
5 | COMPATIBLE_MACHINE_microblaze = "microblaze" | 8 | COMPATIBLE_MACHINE_microblaze = "microblaze" |
6 | |||
7 | MACHINE_KCONFIG_append_zynq += "common/linux/zynq/defconfig_3.10.cfg" | ||
8 | MACHINE_KCONFIG_append_microblaze += "common/linux/microblaze/defconfig_3.10.cfg" | ||