blob: 55678405ff60fb9b8bbb4b54066c35f59abc84b4 [file] [log] [blame]
Brad Bishopac728462018-03-24 01:42:56 -04001DESCRIPTION = "Linux kernel for Aspeed"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5PROVIDES += "virtual/kernel"
6
7KCONFIG_MODE="--alldefconfig"
8
9KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
10SRC_URI = "${KSRC}"
11SRC_URI_append_ast2400 = " file://ast2400/defconfig"
12SRC_URI_append_ast2500 = " file://ast2500/defconfig"
13
14LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
15
16PV = "${LINUX_VERSION}+git${SRCPV}"
17
18do_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
28inherit kernel
29require recipes-kernel/linux/linux-yocto.inc