blob: 2f2f56dad33b77ed48cea45f8121f5376b5ec1ad (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
PN = "linux"
PV = "2.4.18-rmk7-pxa3-embedix"
LICENSE = "GPL"
KV = "2.4.18"
RMKV = "7"
PXAV = "3"
SHARPV = "20031107"
DESCRIPTION = "Linux kernel for OpenZaurus PXA processor based devices."
FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/openzaurus-pxa-${KV}-rmk${RMKV}-pxa${PXAV}-embedix${SHARPV}"
SRC_URI = "ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-${KV}.tar.bz2 \
ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-${KV}-rmk${RMKV}.gz;patch=1 \
ftp://source.mvista.com/pub/xscale/pxa/diff-${KV}-rmk${RMKV}-pxa${PXAV}.gz;patch=1 \
http://developer.ezaurus.com/sl_j/source/c860/${SHARPV}/${PN}-${PV}-slc860-${SHARPV}-rom1_10.bz2;patch=1 \
\
file://${FILESDIR}/piro.patch;patch=1 \
file://${FILESDIR}/swap-performance.patch;patch=1 \
\
file://${FILESDIR}/bluetooth-2.4.18-mh11.patch;patch=1 \
file://${FILESDIR}/iw_handlers.w13-5.diff;patch=1 \
file://${FILESDIR}/iw_handlers.w14-5.diff;patch=1 \
file://${FILESDIR}/iw240_we15-6.diff;patch=1 \
\
file://${FILESDIR}/bt950_cs.patch;patch=1 \
file://${FILESDIR}/bluecard_cs.patch;patch=1 \
file://${FILESDIR}/sharpsl_battery.patch;patch=1 \
file://${FILESDIR}/irda-qos.patch;patch=1 \
\
file://${FILESDIR}/buffered-fbmem.patch;patch=1 \
file://${FILESDIR}/enable-sysrq.patch;patch=1 \
file://${FILESDIR}/compile.patch;patch=1 \
file://${FILESDIR}/idecs.patch;patch=1 \
file://${FILESDIR}/logo.patch;patch=1 \
file://${FILESDIR}/initsh.patch;patch=1 \
file://${FILESDIR}/keyboard-ctrl+alt.patch;patch=1 \
file://${FILESDIR}/keymap-more-sane.patch;patch=1 \
file://${FILESDIR}/mkdep.patch;patch=1"
# apply this when we have a kernel that builds with gcc 3.x:
# SRC_URI_append = file://${FILESDIR}/machtune-args.patch;patch=1
S = "${WORKDIR}/linux"
inherit kernel
EXTRA_OEMAKE = ""
do_configure_prepend() {
install -m 0644 ${FILESDIR}/defconfig-${MACHINE} ${S}/.config
oe_runmake oldconfig
}
do_compile() {
cd ${S}
test -f ${S}/.hdepend || touch ${S}/include/linux/version.h
oe_runmake dep-files CC=${HOST_PREFIX}gcc-2.95 LD=${HOST_PREFIX}ld-2.11.2
cd ${S}/arch/arm/tools
${MAKE} dep CC=${HOST_PREFIX}gcc-2.95 LD=${HOST_PREFIX}ld-2.11.2
rm -f ${S}/include/linux/version.h
cd ${S}
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
oe_runmake dep CC=${HOST_PREFIX}gcc-2.95 LD=${HOST_PREFIX}ld-2.11.2
oe_runmake ${KERNEL_IMAGETYPE} CC=${HOST_PREFIX}gcc-2.95 LD=${HOST_PREFIX}ld-2.11.2
oe_runmake modules CC=${HOST_PREFIX}gcc-2.95 LD=${HOST_PREFIX}ld-2.11.2
}
|