Brad Bishop | ac72846 | 2018-03-24 01:42:56 -0400 | [diff] [blame^] | 1 | DESCRIPTION = "Linux kernel for Aspeed" |
| 2 | SECTION = "kernel" |
| 3 | LICENSE = "GPLv2" |
| 4 | |
| 5 | PROVIDES += "virtual/kernel" |
| 6 | |
| 7 | KCONFIG_MODE="--alldefconfig" |
| 8 | |
| 9 | KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" |
| 10 | SRC_URI = "${KSRC}" |
| 11 | SRC_URI_append_ast2400 = " file://ast2400/defconfig" |
| 12 | SRC_URI_append_ast2500 = " file://ast2500/defconfig" |
| 13 | |
| 14 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 15 | |
| 16 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 17 | |
| 18 | do_patch_append() { |
| 19 | for DTB in "${KERNEL_DEVICETREE}"; do |
| 20 | DT=`basename ${DTB} .dtb` |
| 21 | if [ -r "${WORKDIR}/${DT}.dts" ]; then |
| 22 | cp ${WORKDIR}/${DT}.dts \ |
| 23 | ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts |
| 24 | fi |
| 25 | done |
| 26 | } |
| 27 | |
| 28 | inherit kernel |
| 29 | require recipes-kernel/linux/linux-yocto.inc |