aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-version.mk
blob: df96216cded62408a8f002b6041bff9bd8b7949f (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
# Use the default kernel version if the Makefile doesn't override it

ifeq ($(KERNEL),2.4)
  LINUX_VERSION?=2.4.34
else
  LINUX_VERSION?=2.6.21.5
endif
LINUX_RELEASE?=1

ifeq ($(LINUX_VERSION),2.4.34)
  LINUX_KERNEL_MD5SUM:=f59665540a7f3351ea416a0dad104b55
endif
ifeq ($(LINUX_VERSION),2.6.22.4)
  LINUX_KERNEL_MD5SUM:=6cf83acf21e65dcea4a5170c0bbc7125
endif
ifeq ($(LINUX_VERSION),2.6.21.5)
  LINUX_KERNEL_MD5SUM:=2e9a302b5d514b231640227d6a2ab7bf
endif
ifeq ($(LINUX_VERSION),2.6.23)
  LINUX_KERNEL_MD5SUM:=2cc2fd4d521dc5d7cfce0d8a9d1b3472
endif
ifeq ($(LINUX_VERSION),2.6.23.1)
  LINUX_KERNEL_MD5SUM:=518d57e08fdacd88907166a3bfe383b7
endif
ifeq ($(LINUX_VERSION),2.6.23.9)
  LINUX_KERNEL_MD5SUM:=fc341e4f23bcd4056bdb0c9edc24ea3d
endif
ifeq ($(LINUX_VERSION),2.6.23.11)
  LINUX_KERNEL_MD5SUM:=b9e18a02297ee556cac26d65f25e0ccf
endif

# disable the md5sum check for unknown kernel versions
LINUX_KERNEL_MD5SUM?=x

KERNEL?=2.$(word 2,$(subst ., ,$(strip $(LINUX_VERSION))))
KERNEL_PATCHVER=$(shell echo '$(LINUX_VERSION)' | cut -d. -f1,2,3 | cut -d- -f1)
ss="p">,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf"; ralink,function = "gpio"; }; }; }; cfi@1f000000 { compatible = "cfi-flash"; reg = <0x1f000000 0x800000>; bank-width = <2>; device-width = <2>; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "u-boot"; reg = <0x0 0x30000>; read-only; }; partition@30000 { label = "u-boot-env"; reg = <0x30000 0x10000>; read-only; }; factory: partition@40000 { label = "factory"; reg = <0x40000 0x10000>; read-only; }; partition@50000 { label = "firmware"; reg = <0x50000 0x7b0000>; }; }; gpio-leds { compatible = "gpio-leds"; wifi { label = "pwh2004:red:wifi"; gpios = <&gpio0 14 1>; }; power { label = "pwh2004:green:power"; gpios = <&gpio0 9 1>; }; }; gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>; #size-cells = <0>; poll-interval = <20>; wps { label = "wps"; gpios = <&gpio0 12 1>; linux,code = <0x198>; }; }; esw@10110000 { ralink,portmap = <0x2f>; }; wmac@10180000 { ralink,mtd-eeprom = <&factory 0>; }; };