summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-wrt_2.4.20.bb
blob: 30deb51463e74723c069d0a6b3e4fb874e0b5842 (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
SECTION = "kernel"
DESCRIPTION = "Linux kernel for the Linksys WRT54 devices"
LICENSE = "GPLv2"
PR = "r1"

SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.4/linux-2.4.20.tar.bz2 \
	   file://linux-2.4.20-mipscvs.patch \
	   file://2.4.20_broadcom_3_37_2_1109_US.patch \
	   file://110-sch_htb.patch \
	   file://120-openwrt.patch \
	   file://130-nfsswap.patch \
	   file://140-ebtables-brnf-5.patch \
	   file://150-mppe-mppc-0.98.patch \
	   file://160-expr.patch \
	   file://linux-2.4.24-attribute-used.patch \
	   file://gcc_mtune.patch \
	   file://gcc3.patch \
	   file://nobcom.patch \
	   file://compressed-20040531.tar.bz2 \
	   file://diag.c \
           file://defconfig"
S = "${WORKDIR}/linux-2.4.20"


COMPATIBLE_HOST = 'mipsel.*-linux'

inherit kernel

CMDLINE_CONSOLE ?= "ttyS0,115200n8"
CMDLINE_ROOT ?= "root=/dev/mtdblock2 noinitrd"
# CMDLINE_INIT = "init=/bin/busybox ash"
CMDLINE_INIT ?= " "
CMDLINE = "${CMDLINE_ROOT} ${CMDLINE_CONSOLE} ${CMDLINE_INIT}"
EXTRA_OEMAKE += "'SRCBASE=${STAGING_LIBDIR}/bcom'"

do_unpack_extra(){
	install -m 0644 ${WORKDIR}/diag.c ${S}/drivers/net/diag/diag_led.c
	if [ -e ${WORKDIR}/compressed ]; then
		rm -rf ${S}/arch/mips/brcm-boards/bcm947xx/compressed
		mv ${WORKDIR}/compressed ${S}/arch/mips/brcm-boards/bcm947xx/compressed
	fi
}
addtask unpack_extra after do_patch before do_configure

do_configure_prepend() {
	install -m 0644 ${WORKDIR}/defconfig ${S}/.config
	echo "CONFIG_CMDLINE=\"${CMDLINE}\"" >> ${S}/.config
}

COMPATIBLE_MACHINE = "wrt54"

SRC_URI[md5sum] = "c439d5c93d7fc9a1480a90842465bb97"
SRC_URI[sha256sum] = "8c08d562e2263ac82cb47a7b6fcb8e2c1a6cb33d598fa92b0731351f26620875"