diff options
author | jacques@(none) <jacques@(none)> | 2004-11-17 12:53:45 +0000 |
---|---|---|
committer | jacques@(none) <jacques@(none)> | 2004-11-17 12:53:45 +0000 |
commit | 974871cd9d31ea283966c95954cfb34956d38800 (patch) | |
tree | a30a93fdccbd65e637736495aceb647fa3f2d14f /ixp425-eth | |
parent | b2b808e8fe82f29432fe280ed57527cc5789e34a (diff) |
fixed patch ordering issue
BKrev: 419b49d9HbjywjLysaY3rxk0mlgVtw
Diffstat (limited to 'ixp425-eth')
-rw-r--r-- | ixp425-eth/ixp425-eth_1.1.oe | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/ixp425-eth/ixp425-eth_1.1.oe b/ixp425-eth/ixp425-eth_1.1.oe index e69de29bb2..0342e86b13 100644 --- a/ixp425-eth/ixp425-eth_1.1.oe +++ b/ixp425-eth/ixp425-eth_1.1.oe @@ -0,0 +1,48 @@ +DEPENDS = "ixp4xx-csr" +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_patch +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}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net + install -m 0644 ixp425_eth.o ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/ +} |