blob: ecf80bdd44a88c58613162a9eb49c80ac2efd752 (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
DESCRIPTION = "Linux kernel for MTX-1 (MeshCube)"
HOMEPAGE = "http://meshcube.org/meshwiki/"
LICENSE = "GPLv2"
KV = "${PV}"
PR = "r11"
inherit module-base kernel
PROVIDES = "virtual/kernel"
RDEPENDS = "mtd-utils"
SRC_URI = "cvs://cvs:cvs@ftp.linux-mips.org/home/cvs;module=linux;tag=linux_2_4_27 \
file://01-mtd-2004-01-27.diff;apply=yes \
file://02-mtd-mtx-1-map.diff;apply=yes \
file://03-mtd-erase-compiler-bug.diff;apply=yes \
file://04-mtx-1-board-reset.diff;apply=yes \
file://05-mtx-1-pci-irq.diff;apply=yes \
file://06-zboot-2.4.26.patch;apply=yes \
file://07-zboot-zimage-flash-bin.diff;apply=yes \
file://08-usb-nonpci-2.4.24.patch;apply=yes \
file://09-au1000-eth-vlan.diff;apply=yes \
file://10-iw-max-spy-32.diff;apply=yes \
file://11-mtd-proc-partition-rw.diff;apply=yes \
file://12-openswan-2.2.0-nat-t.diff;apply=yes \
file://13-openswan-2.2.0.patch;apply=yes \
file://14-au1000-eth-link-beat.diff;apply=yes \
file://16-i2c.patch;apply=yes \
file://17-lmsensors.2.8.8.patch;apply=yes \
file://18-i2c-au1x00gpio.patch;apply=yes \
file://19-kernel-make-depend.diff;apply=yes \
file://20-au1x00_ethernet_tx_stats.diff;apply=yes \
file://21-mtx-1-watchdog.diff;apply=yes \
file://23-mtx-1_watchdog_autotrigger.patch;apply=yes \
file://24-mtx-1_sysbtn.patch;apply=yes \
file://25-mtx-sio2.diff;apply=yes \
file://26-usbd-amd-pb1x00-kit-23may2003-update.diff;apply=yes \
file://27-usbd-amd-pb1x00-kit-23may2003-usbd.diff;apply=yes \
file://29-au1000-pci-config-clear-errors.diff;apply=yes \
file://32-usbserial-stalled-hack.diff;apply=yes \
file://33-usbserial-bulk_in_size-4096.diff;apply=yes \
file://42-usb-ohci-fixes.patch;apply=yes \
file://43-usbserial-27-32-backport.diff;apply=yes \
file://45-acm-tty-and-sb2.patch;apply=yes \
file://48-pptp.patch;apply=yes \
file://49-bash4-configure.patch;apply=yes \
file://defconfig-mtx-1"
S = "${WORKDIR}/linux"
inherit kernel
COMPATIBLE_MACHINE = "mtx-1"
COMPATIBLE_HOST = "mipsel.*-linux"
ARCH = "mips"
KERNEL_OUTPUT = "arch/mips/zboot/images/mtx-1.flash.bin"
KERNEL_IMAGETYPE = "zImage.flash"
KERNEL_IMAGEDEST = "tmp"
MTX_KERNEL_NON_PCI_OHCI = "yes"
do_configure_prepend() {
install -m 0644 ${WORKDIR}/defconfig-mtx-1 ${S}/.config
if [ "x${MTX_KERNEL_NON_PCI_OHCI}" == "xyes" ]; then
echo "CONFIG_USB_NON_PCI_OHCI=y" >> ${S}/.config
fi
}
pkg_postinst_kernel() {
if test "x$D" != "x"; then
exit 1
else
if test -e /tmp/zImage.flash-${KV}; then
echo "*** flashing kernel ***"
flashcp -v /tmp/zImage.flash-${KV} /dev/mtd/2
echo "*** done. please reboot ***"
fi
fi
}
FILES_kernel += " /tmp"
do_deploy() {
install -d 0755 ${DEPLOY_DIR_IMAGE}
install -m 0644 arch/mips/zboot/images/mtx-1.flash.bin ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.flash.bin
install -m 0644 arch/mips/zboot/images/mtx-1.flash.srec ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.flash.srec
install -m 0644 arch/mips/zboot/images/mtx-1.srec ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_NAME}.ram.srec
}
|