diff options
Diffstat (limited to 'meta-openbmc-bsp')
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc | 29 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed/ast2400/defconfig (renamed from meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc/defconfig) | 0 | ||||
-rwxr-xr-x | meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed/ast2500/defconfig (renamed from meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc/defconfig) | 0 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed_4.13.bb | 6 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/conf/machine/include/aspeed.inc | 2 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/meta-ast2400/conf/layer.conf | 6 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc_%.bbappend | 2 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/layer.conf | 6 | ||||
-rw-r--r-- | meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc_%.bbappend | 2 |
9 files changed, 38 insertions, 15 deletions
diff --git a/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc new file mode 100644 index 000000000..55678405f --- /dev/null +++ b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc @@ -0,0 +1,29 @@ +DESCRIPTION = "Linux kernel for Aspeed" +SECTION = "kernel" +LICENSE = "GPLv2" + +PROVIDES += "virtual/kernel" + +KCONFIG_MODE="--alldefconfig" + +KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" +SRC_URI = "${KSRC}" +SRC_URI_append_ast2400 = " file://ast2400/defconfig" +SRC_URI_append_ast2500 = " file://ast2500/defconfig" + +LINUX_VERSION_EXTENSION ?= "-${SRCREV}" + +PV = "${LINUX_VERSION}+git${SRCPV}" + +do_patch_append() { + for DTB in "${KERNEL_DEVICETREE}"; do + DT=`basename ${DTB} .dtb` + if [ -r "${WORKDIR}/${DT}.dts" ]; then + cp ${WORKDIR}/${DT}.dts \ + ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts + fi + done +} + +inherit kernel +require recipes-kernel/linux/linux-yocto.inc diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc/defconfig b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed/ast2400/defconfig index ed1c470ba..ed1c470ba 100644 --- a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc/defconfig +++ b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed/ast2400/defconfig diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc/defconfig b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed/ast2500/defconfig index 5183a7fd5..5183a7fd5 100755 --- a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc/defconfig +++ b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed/ast2500/defconfig diff --git a/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed_4.13.bb b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed_4.13.bb new file mode 100644 index 000000000..42bff8fea --- /dev/null +++ b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed_4.13.bb @@ -0,0 +1,6 @@ +KBRANCH ?= "dev-4.13" +LINUX_VERSION ?= "4.13.16" + +SRCREV="aca92be80c008bceeb6fb62fd1d450b5be5d0a4f" + +require linux-aspeed.inc diff --git a/meta-openbmc-bsp/meta-aspeed/conf/machine/include/aspeed.inc b/meta-openbmc-bsp/meta-aspeed/conf/machine/include/aspeed.inc index ff6c83e42..88290ff82 100644 --- a/meta-openbmc-bsp/meta-aspeed/conf/machine/include/aspeed.inc +++ b/meta-openbmc-bsp/meta-aspeed/conf/machine/include/aspeed.inc @@ -1,4 +1,4 @@ -PREFERRED_PROVIDER_virtual/kernel ?= "linux-obmc" +PREFERRED_PROVIDER_virtual/kernel ?= "linux-aspeed" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-aspeed" PREFERRED_PROVIDER_u-boot ?= "u-boot-aspeed" PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-fw-utils-aspeed" diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/conf/layer.conf b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/conf/layer.conf index 2ce719c7f..5757afeb4 100644 --- a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/conf/layer.conf +++ b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/conf/layer.conf @@ -1,10 +1,6 @@ # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" -# We have recipes-* directories, add to BBFILES -BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" - -BBFILE_PATTERN_ast2400-layer = "^${LAYERDIR}/" +BBFILE_PATTERN_ast2400-layer = "" BBFILE_COLLECTIONS += "ast2400-layer" LAYERVERSION_ast2400-layer = "1" diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc_%.bbappend b/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc_%.bbappend deleted file mode 100644 index 7b49ba126..000000000 --- a/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-kernel/linux/linux-obmc_%.bbappend +++ /dev/null @@ -1,2 +0,0 @@ -FILESEXTRAPATHS_prepend_ast2400 := "${THISDIR}/${PN}:" -SRC_URI_append_ast2400 = " file://defconfig" diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/layer.conf b/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/layer.conf index 00dd677ff..c18b2cfea 100644 --- a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/layer.conf +++ b/meta-openbmc-bsp/meta-aspeed/meta-ast2500/conf/layer.conf @@ -1,10 +1,6 @@ # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" -# We have recipes-* directories, add to BBFILES -BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" - -BBFILE_PATTERN_ast2500-layer = "^${LAYERDIR}/" +BBFILE_PATTERN_ast2500-layer = "" BBFILE_COLLECTIONS += "ast2500-layer" LAYERVERSION_ast2500-layer = "1" diff --git a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc_%.bbappend b/meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc_%.bbappend deleted file mode 100644 index ee9a010ea..000000000 --- a/meta-openbmc-bsp/meta-aspeed/meta-ast2500/recipes-kernel/linux/linux-obmc_%.bbappend +++ /dev/null @@ -1,2 +0,0 @@ -FILESEXTRAPATHS_prepend_ast2500 := "${THISDIR}/${PN}:" -SRC_URI_append_ast2500 = " file://defconfig" |