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