summaryrefslogtreecommitdiff
path: root/packages/linux/linux-xxs1500_2.4.21.bb
blob: 27752086803f0ea704149d64c2c8b0b1f5307287 (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
37
38
SECTION = "kernel"
DESCRIPTION = "Linux kernel for mycable xxs1500"
LICENSE = "GPL"
KV = "2.4.21"
PV = "${KV}"

SRC_URI = "http://mycable.de/xxs1500/cms/index.php?download=linux-2.4.21-20040514.1522.tgz \
	file://Makefile \
	file://defconfig-xxs1500 \
	file://zboot-Makefile-flags.diff;patch=1;pnum=0"

S = "${WORKDIR}/linux"

inherit kernel

COMPATIBLE_MACHINE = "xxs1500"

PACKAGE_ARCH = "xxs1500"
ARCH = "mips"
KERNEL_OUTPUT = "arch/mips/zboot/images/xxs1500.flash.srec"
KERNEL_IMAGETYPE = "zImage.flash"
KERNEL_IMAGEDEST = "tmp"

do_configure_prepend() {
	install -m 0644 ${WORKDIR}/defconfig-xxs1500 ${S}/.config
	cp ${WORKDIR}/Makefile ${S}/arch/mips
}

FILES_kernel += " /tmp"

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

do_deploy[dirs] = "${S}"

addtask deploy before do_build after do_compile