blob: 21f344fc909174995c27655234407fd27132768f (
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
39
40
41
42
43
44
45
|
DESCRIPTION = "Linux kernel for the MASTERIA PA-100 device."
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
LICENSE = "GPL"
KV = "${@oe.data.getVar('PV',d,True).split('-')[0]}"
MVLV = "${@oe.data.getVar('PV',d,True).split('-')[1]}"
PR = "r4"
DEPENDS = "cetools-native"
FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/montavista-sa-${PV}"
SRC_URI = "http://www.vanille.de/mirror/linux-${KV}_${MVLV}.tar.gz \
file://iw_handlers.w13-5.diff;patch=1 \
file://iw_handlers.w14-5.diff;patch=1 \
file://iw240_we15-6.diff;patch=1 \
\
file://flash-for-beagle-iii.patch;patch=1 \
\
file://mkdep.patch;patch=1 \
file://defconfig-${MACHINE}"
S = "${WORKDIR}/linux-${KV}_${MVLV}"
inherit kernel
CMDLINE="noinitrd root=/dev/mtdblock/1 mem=27M console=ttySA0"
KERNEL_CCSUFFIX = "-2.95"
KERNEL_LDSUFFIX = "-2.11.2"
COMPATIBLE_HOST = "arm.*-linux"
EXTRA_OEMAKE = ""
do_configure_prepend() {
install -m 0644 ${WORKDIR}/defconfig-${MACHINE} ${S}/.config || die "No default configuration for ${MACHINE} available."
echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config
}
do_deploy() {
install -d ${DEPLOY_DIR}/images
bin2rom arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR}/images/${KERNEL_IMAGETYPE}-${DATETIME}.bin c0008000 c0008000
}
do_deploy[dirs] = "${S}"
addtask deploy before do_build after do_compile
|