octeon: use new ext4/f2fs overlay support
[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/squashfs := append-rootfs | pad-extra 128k | sysupgrade-tar rootfs=$$$$@
17 IMAGE/sysupgrade.tar := sysupgrade-tar
18 endef
19
20 define Build/strip-kernel
21 # Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
22 $(TARGET_CROSS)strip -R .notes $@ -o $@.stripped && mv $@.stripped $@
23 endef
24
25 define Device/generic
26 FILESYSTEMS := ext4
27 DEVICE_TITLE := Generic
28 endef
29 TARGET_DEVICES += generic
30
31 ER_CMDLINE:=-mtdparts=phys_mapped_flash:640k(boot0)ro,640k(boot1)ro,64k(eeprom)ro root=/dev/mmcblk0p2 rootfstype=squashfs,ext4 rootwait
32 define Device/er
33 CMDLINE := $(ER_CMDLINE)
34 DEVICE_TITLE := Ubiquiti EdgeRouter
35 endef
36 TARGET_DEVICES += er
37
38 ERLITE_CMDLINE:=-mtdparts=phys_mapped_flash:512k(boot0),512k(boot1),64k@1024k(eeprom) root=/dev/sda2 rootfstype=squashfs,ext4 rootwait
39 define Device/erlite
40 CMDLINE := $(ERLITE_CMDLINE)
41 DEVICE_TITLE := Ubiquiti EdgeRouter Lite
42 endef
43 TARGET_DEVICES += erlite
44
45 $(eval $(call BuildImage))