db82422eece9c4b6fd97ac8cb5e69ae891ec6370
[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 Device/Default
11 PROFILES = Default $$(DEVICE_NAME)
12 KERNEL_NAME := vmlinux.elf
13 KERNEL_INITRAMFS_NAME := vmlinux-initramfs.elf
14 KERNEL := kernel-bin | strip-kernel | patch-cmdline
15 IMAGES := sysupgrade.tar
16 IMAGE/sysupgrade.tar := sysupgrade-tar
17 endef
18
19 define Build/strip-kernel
20 # Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
21 $(TARGET_CROSS)strip -R .notes $@ -o $@.stripped && mv $@.stripped $@
22 endef
23
24 define Device/generic
25 FILESYSTEMS := ext4
26 DEVICE_TITLE := Generic
27 endef
28 TARGET_DEVICES += generic
29
30 ER_CMDLINE:=-mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro block2mtd.block2mtd=/dev/mmcblk0p2,65536,rootfs,5 root=/dev/mtdblock3 rootfstype=squashfs rootwait
31 define Device/er
32 CMDLINE := $(ER_CMDLINE)
33 DEVICE_TITLE := Ubiquiti EdgeRouter
34 endef
35 TARGET_DEVICES += er
36
37 ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom) block2mtd.block2mtd=/dev/sda2,65536,rootfs,5 root=/dev/mtdblock3 rootfstype=squashfs rootwait
38 define Device/erlite
39 CMDLINE := $(ERLITE_CMDLINE)
40 DEVICE_TITLE := Ubiquiti EdgeRouter Lite
41 endef
42 TARGET_DEVICES += erlite
43
44 $(eval $(call BuildImage))