octeon: disable edgerouter image
[openwrt/openwrt.git] / target / linux / octeon / image / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
9
10 define Build/strip-kernel
11 # Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
12 $(TARGET_CROSS)strip -R .notes $@ -o $@.stripped && mv $@.stripped $@
13 endef
14
15 define Device/Default
16 PROFILES = Default $$(DEVICE_NAME)
17 KERNEL_NAME := vmlinux.elf
18 KERNEL_INITRAMFS_NAME := vmlinux-initramfs.elf
19 KERNEL := kernel-bin | strip-kernel | patch-cmdline
20 IMAGES := sysupgrade.tar
21 IMAGE/sysupgrade.tar/squashfs := append-rootfs | pad-extra 128k | sysupgrade-tar rootfs=$$$$@
22 IMAGE/sysupgrade.tar := sysupgrade-tar
23 endef
24
25 define Device/generic
26 DEVICE_VENDOR := Generic
27 DEVICE_MODEL := Octeon
28 FILESYSTEMS := ext4
29 endef
30 TARGET_DEVICES += generic
31
32 ITUSROUTER_CMDLINE:=console=ttyS0,115200 root=/dev/mmcblk1p2 rootfstype=squashfs,ext4,f2fs rootwait
33 define Device/itus_shield-router
34 DEVICE_VENDOR := Itus Networks
35 DEVICE_MODEL := Shield Router
36 CMDLINE := $(ITUSROUTER_CMDLINE)
37 IMAGE/sysupgrade.tar/squashfs += | append-metadata
38 endef
39 TARGET_DEVICES += itus_shield-router
40
41 ER_CMDLINE:=-mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
42 define Device/ubnt_edgerouter
43 DEVICE_VENDOR := Ubiquiti
44 DEVICE_MODEL := EdgeRouter
45 BOARD_NAME := er
46 CMDLINE := $(ER_CMDLINE)
47 DEFAULT := n
48 endef
49 TARGET_DEVICES += ubnt_edgerouter
50
51 ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0)ro,512k(boot1)ro,64k(eeprom)ro root=/dev/sda2 rootfstype=squashfs,ext4 rootwait
52 define Device/ubnt_edgerouter-lite
53 DEVICE_VENDOR := Ubiquiti
54 DEVICE_MODEL := EdgeRouter Lite
55 BOARD_NAME := erlite
56 CMDLINE := $(ERLITE_CMDLINE)
57 endef
58 TARGET_DEVICES += ubnt_edgerouter-lite
59
60 $(eval $(call BuildImage))