| inherit kernel |
| require recipes-kernel/linux/linux-yocto.inc |
| require recipes-bsp/gbmc-bsp-common/gbmc-bsp-common.inc |
| |
| PROVIDES += "virtual/kernel" |
| KCONFIG_MODE = "--allnoconfig" |
| PV = "${LINUX_VERSION}+git${SRCPV}" |
| |
| SRC_URI += " \ |
| git://gbmc.googlesource.com/linux;protocol=https;branch=${KBRANCH} \ |
| file://gbmc-flash-layout-32.dtsi \ |
| file://gbmc-flash-layout-64.dtsi \ |
| " |
| |
| FILESEXTRAPATHS:prepend := "${THISDIR}/files:" |
| SRC_URI += "file://defconfig" |
| SRC_URI:append:dev = " file://dev.cfg" |
| |
| SRC_URI:append:npcm7xx = " \ |
| file://npcm7xx.cfg \ |
| file://npcm7xx-gbmc.dtsi \ |
| " |
| |
| do_patch:append() { |
| cp ${WORKDIR}/gbmc-flash-layout-*.dtsi ${S}/arch/arm/boot/dts/ |
| } |
| |
| do_patch:append:npcm7xx() { |
| cp ${WORKDIR}/npcm7xx-gbmc.dtsi ${S}/arch/arm/boot/dts/ |
| cp ${WORKDIR}/npcm7xx-gbmc-common.dtsi ${S}/arch/arm/boot/dts/ |
| } |
| |
| do_compile_headers() { |
| oe_runmake -C ${S} O=${B} headers |
| } |
| |
| do_shared_headers() { |
| mkdir -p ${STAGING_KERNEL_BUILDDIR}/usr |
| cp -r ${B}/usr/include/ ${STAGING_KERNEL_BUILDDIR}/usr/ |
| } |
| |
| addtask do_compile_headers after do_configure |
| addtask do_shared_headers after do_shared_workdir do_compile_headers |