summaryrefslogtreecommitdiff
path: root/packages/linux/linux-storcenter_2.6.15.7.bb
blob: 4895b2174e48fb61a8e81f10f4602d15d5993849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DESCRIPTION = "Linux Kernel for the Iomega storcenter platform"
SECTION = "kernel"
LICENSE = "GPL"
DEPENDS = "u-boot-utils-native"
PR = "r1"

COMPATIBLE_MACHINE = "storcenter"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
	file://kernel.patch-${PV};patch=1 \
	file://defconfig-${PV} "

S = "${WORKDIR}/linux-${PV}"

inherit kernel

export ARCH = "ppc" 

KERNEL_IMAGETYPE = "uImage"
KERNEL_OUTPUT = "arch/${ARCH}/boot/images/${KERNEL_IMAGETYPE}"

do_configure() {
	install -m 644 ${WORKDIR}/defconfig-${PV} ${S}/.config
	make ARCH=${ARCH} oldconfig
}

do_deploy() {
        install -d ${DEPLOY_DIR_IMAGE}
        install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}
}

do_deploy[dirs] = "${S}"

addtask deploy before do_build after do_compile