2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
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
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
$@
27 DEVICE_TITLE
:= Generic
29 TARGET_DEVICES
+= generic
31 ER_CMDLINE
:=-mtdparts
=phys_mapped_flash
:640k
(boot0
)ro
,640k
(boot1
)ro
,64k
(eeprom
)ro root
=/dev
/mmcblk0p2 rootfstype
=squashfs
,ext4 rootwait
33 DEVICE_VENDOR
:= Ubiquiti
34 DEVICE_MODEL
:= EdgeRouter
35 CMDLINE
:= $(ER_CMDLINE
)
39 ERLITE_CMDLINE
:=-mtdparts
=phys_mapped_flash
:512k
(boot0
)ro
,512k
(boot1
)ro
,64k
(eeprom
)ro root
=/dev
/sda2 rootfstype
=squashfs
,ext4 rootwait
41 DEVICE_VENDOR
:= Ubiquiti
42 DEVICE_MODEL
:= EdgeRouter Lite
43 CMDLINE
:= $(ERLITE_CMDLINE
)
45 TARGET_DEVICES
+= erlite
47 $(eval
$(call BuildImage
))