@ -7,6 +7,11 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( INCLUDE_DIR ) / i m a g e . m k
i n c l u d e $( INCLUDE_DIR ) / i m a g e . m k
d e f i n e B u i l d / s t r i p - k e r n e l
# Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
$( TARGET_CROSS) strip -R .notes $@ -o $@ .stripped && mv $@ .stripped $@
e n d e f
d e f i n e D e v i c e / D e f a u l t
d e f i n e D e v i c e / D e f a u l t
PROFILES = Default $$ ( DEVICE_NAME)
PROFILES = Default $$ ( DEVICE_NAME)
KERNEL_NAME := vmlinux.elf
KERNEL_NAME := vmlinux.elf
@ -17,11 +22,6 @@ define Device/Default
IMAGE/sysupgrade.tar := sysupgrade-tar
IMAGE/sysupgrade.tar := sysupgrade-tar
e n d e f
e n d e f
d e f i n e B u i l d / s t r i p - k e r n e l
# Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
$( TARGET_CROSS) strip -R .notes $@ -o $@ .stripped && mv $@ .stripped $@
e n d e f
d e f i n e D e v i c e / g e n e r i c
d e f i n e D e v i c e / g e n e r i c
DEVICE_VENDOR := Generic
DEVICE_VENDOR := Generic
DEVICE_MODEL := Octeon
DEVICE_MODEL := Octeon
@ -30,19 +30,21 @@ endef
TARGET_DEVICES += generic
TARGET_DEVICES += generic
ER_CMDLINE := -mtdparts= phys_mapped_flash:640k( boot0) ro,640k( boot1) ro,64k( eeprom) ro root = /dev/mmcblk0p2 rootfstype = squashfs,ext4 rootwait
ER_CMDLINE := -mtdparts= phys_mapped_flash:640k( boot0) ro,640k( boot1) ro,64k( eeprom) ro root = /dev/mmcblk0p2 rootfstype = squashfs,ext4 rootwait
d e f i n e D e v i c e / er
d e f i n e D e v i c e / ub n t _ e d g e r o u t er
DEVICE_VENDOR := Ubiquiti
DEVICE_VENDOR := Ubiquiti
DEVICE_MODEL := EdgeRouter
DEVICE_MODEL := EdgeRouter
BOARD_NAME := er
CMDLINE := $( ER_CMDLINE)
CMDLINE := $( ER_CMDLINE)
e n d e f
e n d e f
TARGET_DEVICES += er
TARGET_DEVICES += ubnt_edgerout er
ERLITE_CMDLINE := -mtdparts= phys_mapped_flash:512k( boot0) ro,512k( boot1) ro,64k( eeprom) ro root = /dev/sda2 rootfstype = squashfs,ext4 rootwait
ERLITE_CMDLINE := -mtdparts= phys_mapped_flash:512k( boot0) ro,512k( boot1) ro,64k( eeprom) ro root = /dev/sda2 rootfstype = squashfs,ext4 rootwait
d e f i n e D e v i c e / er l i t e
d e f i n e D e v i c e / ub n t _ e d g er o u t e r - l i t e
DEVICE_VENDOR := Ubiquiti
DEVICE_VENDOR := Ubiquiti
DEVICE_MODEL := EdgeRouter Lite
DEVICE_MODEL := EdgeRouter Lite
BOARD_NAME := erlite
CMDLINE := $( ERLITE_CMDLINE)
CMDLINE := $( ERLITE_CMDLINE)
e n d e f
e n d e f
TARGET_DEVICES += erlite
TARGET_DEVICES += ubnt_edg erouter- lite
$( eval $ ( call BuildImage ) )
$( eval $ ( call BuildImage ) )