diff options
Diffstat (limited to 'meta/packages/linux/linux-nokia770_2.6.16-osso26.bb')
-rw-r--r-- | meta/packages/linux/linux-nokia770_2.6.16-osso26.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-nokia770_2.6.16-osso26.bb b/meta/packages/linux/linux-nokia770_2.6.16-osso26.bb new file mode 100644 index 0000000000..e980e8d7b2 --- /dev/null +++ b/meta/packages/linux/linux-nokia770_2.6.16-osso26.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | SECTION = "kernel" | ||
2 | DESCRIPTION = "Linux kernel for Nokia 770" | ||
3 | LICENSE = "GPL" | ||
4 | PR = "r1" | ||
5 | |||
6 | SRC_URI = "http://repository.maemo.org/pool/maemo2.1/free/source/k/kernel-source-2.6.16/kernel-source-2.6.16_2.6.16.rel-osso26.tar.gz \ | ||
7 | file://defconfig" | ||
8 | |||
9 | S = "${WORKDIR}/kernel-source-2.6.16-2.6.16.rel" | ||
10 | |||
11 | KERNEL_OUTPUT = "arch/${ARCH}/boot/compressed/${KERNEL_IMAGETYPE}" | ||
12 | |||
13 | inherit kernel | ||
14 | |||
15 | RPROVIDES_kernel-image = "hostap-modules" | ||
16 | |||
17 | COMPATIBLE_MACHINE = "nokia770" | ||
18 | |||
19 | do_configure_prepend() { | ||
20 | |||
21 | rm -f ${S}/.config || true | ||
22 | |||
23 | if [ "${TARGET_OS}" == "linux-gnueabi" -o "${TARGET_OS}" == "linux-uclibcgnueabi" ]; then | ||
24 | echo "CONFIG_AEABI=y" >> ${S}/.config | ||
25 | echo "CONFIG_OABI_COMPAT=y" >> ${S}/.config | ||
26 | else | ||
27 | echo "# CONFIG_AEABI is not set" >> ${S}/.config | ||
28 | echo "# CONFIG_OABI_COMPAT is not set" >> ${S}/.config | ||
29 | fi | ||
30 | |||
31 | sed -e '/CONFIG_AEABI/d' \ | ||
32 | -e '/CONFIG_OABI_COMPAT=/d' \ | ||
33 | '${WORKDIR}/defconfig' >>'${S}/.config' | ||
34 | |||
35 | yes '' | oe_runmake oldconfig | ||
36 | |||
37 | } | ||
38 | |||
39 | do_deploy() { | ||
40 | install -d ${DEPLOY_DIR}/images | ||
41 | install -m 0644 arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME} | ||
42 | } | ||
43 | |||
44 | do_deploy[dirs] = "${S}" | ||
45 | |||
46 | addtask deploy before do_build after do_compile | ||