summaryrefslogtreecommitdiffstats
path: root/recipes-bcm/kernel-image/bcm2835-kernel-image.bb
blob: 085cd014e56cc7d617d9a752d83257c28bcb8d2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DESCRIPTION = "Helper recipe to make the munged kernel.img image for the RaspberryPi."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"

COMPATIBLE_MACHINE = "raspberrypi"
PR = "${MACHINE_KERNEL_PR}.2"

DEPENDS = "bcm2835-bootfiles bcm2835-mkimage-native virtual/kernel"

S = "${WORKDIR}"

addtask deploy before do_package after do_install

do_deploy() {
	install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
	bcm2835-mkimage.py ${DEPLOY_DIR_IMAGE}/zImage-${MACHINE}.bin ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/kernel.img ${STAGING_BINDIR_NATIVE}/
}

PACKAGE_ARCH = "${MACHINE_ARCH}"