blob: f77a7c017273522de31e013443bd655b639f58c2 (
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
|
DEPENDS = "ixp4xx-csr patcher-native"
LICENSE = "GPL"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
SRC_URI = "http://www.intel.com/design/network/swsup/ixp400LinuxEthernetDriverPatch-1_1.zip \
file://makefile.patch;patch=1 \
file://ethhdr.patch;patch=1"
S = "${WORKDIR}"
COMPATIBLE_HOST = "^armeb-linux.*"
inherit module
do_ixp425_c_patch_fetch () {
if test ! -e ${DL_DIR}/ixp425_eth.c.patch.md5; then
cd ${DL_DIR}
wget -Oixp425_eth.c.patch http://sourceforge.net/tracker/download.php?group_id=74209\&atid=544386\&file_id=90129\&aid=970193
md5sum > ixp425_eth.c.patch.md5
fi
}
addtask ixp425_c_patch_fetch after do_fetch before do_unpack
do_ixp425_c_patch_unpack () {
install -m 0644 ${DL_DIR}/ixp425_eth.c.patch ${WORKDIR}/
}
addtask ixp425_c_patch_unpack after do_unpack before do_pre_patch
do_pre_patch () {
patcher -p 0 -i ixp425_eth_1_1_update_nf_bridge.patch
patcher -f -p 0 -i ixp425_eth.c.patch
}
addtask pre_patch before do_patch
do_compile () {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
oe_runmake 'KDIR=${STAGING_KERNEL_DIR}' \
'CC=${KERNEL_CC}' \
'LD=${KERNEL_LD}' \
'EXTRA_CFLAGS=-I${STAGING_INCDIR}/linux/ixp4xx-csr -I${STAGING_KERNEL_DIR}/include'
}
do_install () {
install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
install -m 0644 ixp425_eth.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/
}
|