summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-palmpre_2.6.24.bb
blob: 7a52d6ee886124d88029b74593d5a9c48f08b533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require linux.inc

DESCRIPTION = "Linux kernel for Palm Pre. Original version of Palm, Inc."
KERNEL_IMAGETYPE = "uImage"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
           http://palm.cdnetworks.net/opensource/1.1.0/linux-2.6.24-patch.gz;patch=1 \
           "

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

# We try to build the identical kernel as Palms here, use their defconfig.
do_configure_prepend() {
        install -m 0644 ${S}/arch/arm/configs/omap_sirloin_3430_defconfig ${WORKDIR}/defconfig
}

# linux.inc overrides LOCAVERSION but we like to stay with the one used originally
do_compile_prepend() {
	sed -i -e '/CONFIG_LOCALVERSION=/d' ${S}/.config
	echo 'CONFIG_LOCALVERSION="-joplin-3430"' >>${S}/.config
}