2012-10-27 09:42:58 +00:00
|
|
|
#
|
2016-03-08 18:33:16 +00:00
|
|
|
# Copyright (C) 2006-2016 OpenWrt.org
|
2010-06-26 20:41:49 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
|
|
|
|
define Build/Clean
|
|
|
|
$(MAKE) -C lzma-loader clean
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Prepare
|
2014-08-18 21:00:55 +00:00
|
|
|
# Optimized LZMA compression (with dictionary), handled by lzma-loader.
|
2010-06-26 20:41:49 +00:00
|
|
|
cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
|
2014-08-18 21:00:55 +00:00
|
|
|
|
|
|
|
# Less optimal LZMA compression (no dictionary), handled by CFE.
|
|
|
|
$(STAGING_DIR_HOST)/bin/lzma e -so -d16 $(KDIR)/vmlinux > $(KDIR)/vmlinux-nodictionary.lzma
|
|
|
|
|
2013-09-16 21:09:10 +00:00
|
|
|
gzip -nc9 $(KDIR)/vmlinux > $(KDIR)/vmlinux.gz
|
2013-06-27 19:58:31 +00:00
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
|
|
|
cat $(KDIR)/vmlinux-initramfs | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux-initramfs.lzma
|
2014-10-13 05:53:33 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/lzma e -so -d16 $(KDIR)/vmlinux-initramfs > $(KDIR)/vmlinux-initramfs-nodictionary.lzma
|
2013-06-27 19:58:31 +00:00
|
|
|
endif
|
2010-06-26 20:41:49 +00:00
|
|
|
rm -f $(KDIR)/loader.gz
|
|
|
|
$(MAKE) -C lzma-loader \
|
|
|
|
BUILD_DIR="$(KDIR)" \
|
|
|
|
TARGET="$(KDIR)" \
|
|
|
|
clean install
|
|
|
|
echo -ne "\\x00" >> $(KDIR)/loader.gz
|
|
|
|
rm -f $(KDIR)/fs_mark
|
2011-08-29 21:23:51 +00:00
|
|
|
echo -ne '\xde\xad\xc0\xde' > $(KDIR)/fs_mark
|
2010-06-26 20:41:49 +00:00
|
|
|
$(call prepare_generic_squashfs,$(KDIR)/fs_mark)
|
|
|
|
endef
|
|
|
|
|
2011-06-15 21:11:49 +00:00
|
|
|
define Image/Build/wgt634u
|
2015-05-27 15:04:02 +00:00
|
|
|
dd if=$(KDIR)/loader.elf of=$(BIN_DIR)/$(IMG_PREFIX)-wgt634u-$(2).bin bs=131072 conv=sync
|
|
|
|
cat $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx >> $(BIN_DIR)/$(IMG_PREFIX)-wgt634u-$(2).bin
|
2011-06-15 21:11:49 +00:00
|
|
|
endef
|
2010-06-26 20:41:49 +00:00
|
|
|
|
2014-05-14 10:08:22 +00:00
|
|
|
# $(1): filesystem type.
|
|
|
|
# $(2): device model (used for output file).
|
|
|
|
# $(3): pattern (device specific magic).
|
|
|
|
# $(4): version.
|
|
|
|
# $(5): simplified filesystem type (without block size).
|
2010-06-26 20:41:49 +00:00
|
|
|
define Image/Build/CyberTAN
|
2015-05-27 15:04:02 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx -o $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(5).bin $(if $(6),-s $(6))
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
define Image/Build/CyberTAN2
|
2015-05-27 15:04:02 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(5).noheader.bin -o $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(5).bin $(if $(6),-s $(6))
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
define Image/Build/CyberTANHead
|
2015-05-27 15:04:02 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/addpattern -5 -p $(3) -v v$(4) -i /dev/null -o $(KDIR)/$(IMG_PREFIX)-$(2)-header.bin $(if $(6),-s $(6))
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Build/USR
|
2015-05-27 15:04:02 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx2usr $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3).bin
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
|
2010-12-02 21:27:54 +00:00
|
|
|
define Image/Build/Edi
|
2015-05-27 15:04:02 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx2edips $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3).bin
|
2010-12-02 21:27:54 +00:00
|
|
|
endef
|
|
|
|
|
2013-09-16 21:09:10 +00:00
|
|
|
define Image/Build/Huawei
|
2015-05-27 15:04:02 +00:00
|
|
|
dd if=/dev/zero of=$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3)-gz.bin bs=92 count=1
|
|
|
|
echo -ne 'HDR0\x08\x00\x00\x00' >> $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3)-gz.bin
|
|
|
|
cat $(BIN_DIR)/$(IMG_PREFIX)-$(1)-gz.trx >> $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(3)-gz.bin
|
2013-09-16 21:09:10 +00:00
|
|
|
endef
|
|
|
|
|
2014-05-14 10:08:56 +00:00
|
|
|
# $(1): filesystem type.
|
|
|
|
# $(2): device model (used for output file).
|
|
|
|
# $(3): board_id (device specific magic).
|
|
|
|
# $(4): region.
|
|
|
|
# $(5): simplified filesystem type (without block size).
|
|
|
|
define Image/Build/Chk
|
2015-05-27 15:04:02 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/mkchkimg -o $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(5).chk -k $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx -b $(3) -r $(4)
|
2014-05-14 10:08:56 +00:00
|
|
|
endef
|
|
|
|
|
2010-06-26 20:41:49 +00:00
|
|
|
define trxalign/jffs2-128k
|
|
|
|
-a 0x20000 -f $(KDIR)/root.$(1)
|
|
|
|
endef
|
|
|
|
define trxalign/jffs2-64k
|
|
|
|
-a 0x10000 -f $(KDIR)/root.$(1)
|
|
|
|
endef
|
|
|
|
define trxalign/squashfs
|
2010-07-30 21:19:49 +00:00
|
|
|
-a 1024 -f $(KDIR)/root.$(1) $(if $(2),-f $(2)) -a 0x10000 -A $(KDIR)/fs_mark
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Image/Build/trxV2
|
|
|
|
$(call Image/Build/CyberTANHead,$(1),$(2),$(3),$(4),$(5),$(if $(6),$(6)))
|
2015-09-11 17:54:55 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-09-11 17:54:55 +00:00
|
|
|
-2 \
|
|
|
|
-o $(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(5).noheader.bin \
|
|
|
|
-f $(KDIR)/loader.gz \
|
|
|
|
-f $(KDIR)/vmlinux.lzma \
|
2015-05-27 15:04:02 +00:00
|
|
|
$(call trxalign/$(1),$(1),$(KDIR)/$(IMG_PREFIX)-$(2)-header.bin)
|
2010-06-26 20:41:49 +00:00
|
|
|
$(call Image/Build/CyberTAN2,$(1),$(2),$(3),$(4),$(5),$(if $(6),$(6)))
|
|
|
|
endef
|
|
|
|
|
2015-03-29 18:15:38 +00:00
|
|
|
#################################################
|
|
|
|
# Images
|
|
|
|
#################################################
|
|
|
|
|
|
|
|
define Build/trx-with-loader
|
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-03-29 18:15:38 +00:00
|
|
|
-o $@ \
|
|
|
|
-f $(KDIR)/loader.gz \
|
|
|
|
-f $(word 1,$^) \
|
2015-04-08 09:50:57 +00:00
|
|
|
$(call trxalign/$(FILESYSTEM),$(FILESYSTEM))
|
2015-03-29 18:15:38 +00:00
|
|
|
endef
|
|
|
|
|
2015-05-27 13:54:19 +00:00
|
|
|
define Build/asus-trx
|
2015-05-27 15:37:05 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/asustrx -p "$(PRODUCTID)" -i $@ -o $@.new
|
2015-05-27 13:54:19 +00:00
|
|
|
mv $@.new $@
|
|
|
|
endef
|
|
|
|
|
2015-03-29 18:15:38 +00:00
|
|
|
define Build/linksys-bin
|
|
|
|
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(DEVICE_ID) -v v$(VERSION) -i $@ -o $@.new
|
|
|
|
mv $@.new $@
|
|
|
|
endef
|
|
|
|
|
2016-03-08 18:33:19 +00:00
|
|
|
define Build/motorola-bin
|
|
|
|
$(STAGING_DIR_HOST)/bin/motorola-bin -$(MOTOROLA_DEVICE) $@ $@.new
|
|
|
|
mv $@.new $@
|
|
|
|
endef
|
|
|
|
|
2016-03-08 18:33:16 +00:00
|
|
|
define Build/tailed-bin
|
|
|
|
echo $(BIN_TAIL) >> $@
|
|
|
|
endef
|
|
|
|
|
2015-03-29 18:15:38 +00:00
|
|
|
#################################################
|
|
|
|
# Devices
|
|
|
|
#################################################
|
|
|
|
|
2015-05-27 13:54:19 +00:00
|
|
|
DEVICE_VARS += PRODUCTID
|
2015-03-29 18:15:38 +00:00
|
|
|
DEVICE_VARS += DEVICE_ID VERSION
|
2015-08-14 13:04:22 +00:00
|
|
|
DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_REGION
|
2016-03-08 18:33:19 +00:00
|
|
|
DEVICE_VARS += MOTOROLA_DEVICE
|
2016-03-08 18:33:16 +00:00
|
|
|
DEVICE_VARS += BIN_TAIL
|
2015-03-29 18:15:38 +00:00
|
|
|
|
|
|
|
define Device/Default
|
2015-03-31 08:56:08 +00:00
|
|
|
KERNEL := kernel-bin
|
2015-03-29 18:15:38 +00:00
|
|
|
IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2)
|
2015-03-31 08:56:08 +00:00
|
|
|
KERNEL_NAME = vmlinux.lzma
|
2015-03-29 18:15:38 +00:00
|
|
|
FILESYSTEMS := $(FS_64K)
|
|
|
|
IMAGES := trx
|
2015-03-29 19:53:11 +00:00
|
|
|
IMAGE/trx := trx-with-loader
|
2015-03-29 18:15:38 +00:00
|
|
|
endef
|
|
|
|
|
2015-05-27 13:54:19 +00:00
|
|
|
define Device/asus
|
|
|
|
IMAGES := trx
|
|
|
|
IMAGE/trx := trx-with-loader | asus-trx
|
|
|
|
endef
|
|
|
|
|
|
|
|
define AsusDevice
|
|
|
|
define Device/asus-$(1)
|
|
|
|
$$(Device/asus)
|
|
|
|
PRODUCTID := $(2)
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += asus-$(1)
|
|
|
|
endef
|
|
|
|
|
2015-03-29 18:15:38 +00:00
|
|
|
define Device/linksys
|
|
|
|
IMAGES := bin
|
|
|
|
IMAGE/bin := trx-with-loader | linksys-bin
|
|
|
|
endef
|
|
|
|
|
2015-03-31 11:26:45 +00:00
|
|
|
define LinksysDevice
|
|
|
|
define Device/linksys-$(1)
|
|
|
|
$$(Device/linksys)
|
|
|
|
DEVICE_ID := $(2)
|
|
|
|
VERSION := $(3)
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += linksys-$(1)
|
|
|
|
endef
|
|
|
|
|
2016-03-08 18:33:19 +00:00
|
|
|
define Device/motorola
|
|
|
|
IMAGES := bin
|
|
|
|
IMAGE/bin := trx-with-loader | motorola-bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
define MotorolaDevice
|
|
|
|
define Device/motorola-$(1)
|
|
|
|
$$(Device/motorola)
|
|
|
|
MOTOROLA_DEVICE := $(2)
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += motorola-$(1)
|
|
|
|
endef
|
|
|
|
|
2015-03-29 19:53:11 +00:00
|
|
|
define Device/netgear
|
|
|
|
IMAGES := chk
|
|
|
|
IMAGE/chk := trx-with-loader | netgear-chk
|
|
|
|
endef
|
|
|
|
|
2015-03-31 11:26:45 +00:00
|
|
|
define NetgearDevice
|
|
|
|
define Device/netgear-$(1)
|
|
|
|
$$(Device/netgear)
|
2015-08-14 13:04:22 +00:00
|
|
|
NETGEAR_BOARD_ID := $(2)
|
|
|
|
NETGEAR_REGION := $(3)
|
2015-03-31 11:26:45 +00:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += netgear-$(1)
|
|
|
|
endef
|
|
|
|
|
2014-06-05 21:23:58 +00:00
|
|
|
#################################################
|
|
|
|
# Subtarget generic
|
|
|
|
#################################################
|
|
|
|
|
2015-03-31 12:17:08 +00:00
|
|
|
ifeq ($(SUBTARGET),generic)
|
|
|
|
# BCM4705 with tg3
|
|
|
|
$(eval $(call LinksysDevice,wrt300n-v1.1,EWC2,1.51.2))
|
|
|
|
$(eval $(call LinksysDevice,wrt310n-v1,310N,1.0.10))
|
|
|
|
$(eval $(call LinksysDevice,wrt350n-v1,EWCG,1.04.1))
|
|
|
|
$(eval $(call LinksysDevice,wrt610n-v1,610N,1.0.1))
|
|
|
|
|
|
|
|
# BCMA SoC with SSB WiFi
|
|
|
|
$(eval $(call LinksysDevice,wrt610n-v2,610N,2.0.0))
|
|
|
|
$(eval $(call LinksysDevice,e3000-v1,61XN,1.0.3))
|
|
|
|
endif
|
2010-06-26 20:41:49 +00:00
|
|
|
|
2014-07-06 17:21:37 +00:00
|
|
|
#################################################
|
|
|
|
# Subtarget legacy
|
|
|
|
#################################################
|
|
|
|
|
|
|
|
# $(1): filesystem type.
|
|
|
|
define Image/Build/legacy/devices-with-128k-blocks
|
|
|
|
$(call Image/Build/trxV2,$(1),wrt54g3gv2-vf,3G2V,3.00.24,$(patsubst jffs2-%,jffs2,$(1)),6)
|
|
|
|
$(call Image/Build/wgt634u,$(1),$(patsubst jffs2-%,jffs2,$(1)))
|
|
|
|
endef
|
|
|
|
|
|
|
|
# $(1): filesystem type.
|
|
|
|
define Image/Build/legacy/devices-with-64k-blocks
|
|
|
|
$(call Image/Build/Edi,$(1),ps1208mfg,$(patsubst jffs2-%,jffs2,$(1)))
|
|
|
|
$(call Image/Build/Huawei,$(1),e970,$(1))
|
|
|
|
$(call Image/Build/USR,$(1),usr5461,$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
# $(1): filesystem type.
|
|
|
|
define Image/Build/legacy/jffs2-64k
|
|
|
|
$(call Image/Build/legacy/devices-with-64k-blocks,$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
# $(1): filesystem type.
|
|
|
|
define Image/Build/legacy/jffs2-128k
|
|
|
|
$(call Image/Build/legacy/devices-with-128k-blocks,$(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
# $(1): filesystem type.
|
|
|
|
define Image/Build/legacy/squashfs
|
|
|
|
$(call Image/Build/legacy/devices-with-64k-blocks,$(1))
|
|
|
|
$(call Image/Build/legacy/devices-with-128k-blocks,$(1))
|
|
|
|
endef
|
|
|
|
|
2016-03-08 18:33:16 +00:00
|
|
|
define Device/dlink-dwl-3150
|
|
|
|
IMAGES := bin
|
|
|
|
IMAGE/bin := trx-with-loader | tailed-bin
|
|
|
|
BIN_TAIL := BCM-5352-2050-0000000-01
|
|
|
|
endef
|
|
|
|
|
2015-03-31 12:44:31 +00:00
|
|
|
define Device/linksys-wrt54gs
|
|
|
|
$(Device/linksys)
|
|
|
|
FILESYSTEMS := $(FS_128K)
|
|
|
|
DEVICE_ID := W54S
|
|
|
|
VERSION := 4.80.1
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/linksys-wrtsl54gs
|
|
|
|
$(Device/linksys)
|
|
|
|
FILESYSTEMS := $(FS_128K)
|
|
|
|
DEVICE_ID := W54U
|
|
|
|
VERSION := 2.08.1
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(SUBTARGET),legacy)
|
|
|
|
TARGET_DEVICES += \
|
2016-03-08 18:33:16 +00:00
|
|
|
dlink-dwl-3150 \
|
2015-03-31 12:44:31 +00:00
|
|
|
linksys-wrt54gs \
|
|
|
|
linksys-wrtsl54gs
|
|
|
|
|
2015-05-27 15:37:05 +00:00
|
|
|
$(eval $(call AsusDevice,wl-300g,WL300g ))
|
|
|
|
$(eval $(call AsusDevice,wl-320gp,WL320gP ))
|
|
|
|
$(eval $(call AsusDevice,wl-330ge,WL-330gE ))
|
|
|
|
$(eval $(call AsusDevice,wl-500gp-v1,WL500gp ))
|
2015-05-28 19:53:59 +00:00
|
|
|
$(eval $(call AsusDevice,wl-500gp-v2,WL500gpv2 ))
|
2015-05-27 15:37:05 +00:00
|
|
|
$(eval $(call AsusDevice,wl-500w,WL500W ))
|
|
|
|
$(eval $(call AsusDevice,wl-520gu,WL520gu ))
|
|
|
|
$(eval $(call AsusDevice,wl-550ge,WL550gE ))
|
|
|
|
$(eval $(call AsusDevice,wl-hdd25,WLHDD ))
|
2015-03-31 12:44:31 +00:00
|
|
|
$(eval $(call LinksysDevice,wrt54g3g,W54F,2.20.1))
|
|
|
|
$(eval $(call LinksysDevice,wrt54g3g-em,W3GN,2.20.1))
|
|
|
|
$(eval $(call LinksysDevice,wrt54g,W54G,4.71.1))
|
2015-04-09 05:40:37 +00:00
|
|
|
$(eval $(call LinksysDevice,wrt54gs-v4,W54s,1.09.1))
|
2015-03-31 12:44:31 +00:00
|
|
|
$(eval $(call LinksysDevice,wrt150n,N150,1.51.3))
|
2015-04-09 05:40:37 +00:00
|
|
|
$(eval $(call LinksysDevice,wrt160n-v1,N150,1.50.1))
|
|
|
|
$(eval $(call LinksysDevice,wrt300n-v1,EWCB,1.03.6))
|
2016-03-08 18:33:19 +00:00
|
|
|
$(eval $(call MotorolaDevice,wa840g,2))
|
|
|
|
$(eval $(call MotorolaDevice,we800g,3))
|
|
|
|
$(eval $(call MotorolaDevice,wr850g,1))
|
2015-04-09 05:40:37 +00:00
|
|
|
$(eval $(call NetgearDevice,wgr614-v8,U12H072T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wndr3300-v1,U12H093T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wnr834b-v2,U12H081T00_NETGEAR,2))
|
2015-03-31 12:44:31 +00:00
|
|
|
endif
|
|
|
|
|
2014-07-06 17:14:06 +00:00
|
|
|
#################################################
|
|
|
|
# Subtarget mips74k
|
|
|
|
#################################################
|
|
|
|
|
2015-03-29 18:15:38 +00:00
|
|
|
ifeq ($(SUBTARGET),mips74k)
|
2015-05-27 15:37:05 +00:00
|
|
|
$(eval $(call AsusDevice,rt-ac53u,RT-AC53U))
|
|
|
|
# $(eval $(call AsusDevice,rt-ac66u,RT-AC66U))
|
|
|
|
$(eval $(call AsusDevice,rt-n10,RT-N10 ))
|
|
|
|
$(eval $(call AsusDevice,rt-n10p,RT-N10P))
|
|
|
|
$(eval $(call AsusDevice,rt-n10p-v2,RT-N10PV2))
|
|
|
|
$(eval $(call AsusDevice,rt-n10u,RT-N10U))
|
|
|
|
$(eval $(call AsusDevice,rt-n10u-b,RT-N10U))
|
|
|
|
$(eval $(call AsusDevice,rt-n12,RT-N12 ))
|
|
|
|
$(eval $(call AsusDevice,rt-n12-b1,RT-N12B1))
|
|
|
|
$(eval $(call AsusDevice,rt-n12-c1,RT-N12C1))
|
|
|
|
$(eval $(call AsusDevice,rt-n12-d1,RT-N12D1))
|
|
|
|
$(eval $(call AsusDevice,rt-n12hp,RT-N12HP))
|
|
|
|
$(eval $(call AsusDevice,rt-n14uhp,RT-N14UHP))
|
|
|
|
$(eval $(call AsusDevice,rt-n15u,RT-N15U))
|
|
|
|
$(eval $(call AsusDevice,rt-n16,RT-N16))
|
|
|
|
$(eval $(call AsusDevice,rt-n53,RT-N53))
|
2015-05-27 13:54:19 +00:00
|
|
|
$(eval $(call AsusDevice,rt-n66u,RT-N66U))
|
2015-05-27 15:37:05 +00:00
|
|
|
$(eval $(call AsusDevice,rt-n66w,RT-N66U))
|
2015-03-31 11:26:50 +00:00
|
|
|
$(eval $(call LinksysDevice,wrt160n-v3,N150,3.0.3))
|
|
|
|
$(eval $(call LinksysDevice,wrt310n-v2,310N,2.0.1))
|
|
|
|
$(eval $(call LinksysDevice,wrt320n-v1,320N,1.0.5))
|
|
|
|
$(eval $(call LinksysDevice,e900-v1,E900,1.0.4))
|
|
|
|
$(eval $(call LinksysDevice,e1000-v1-v2-v2.1,E100,1.1.3))
|
|
|
|
$(eval $(call LinksysDevice,e1200-v1,E120,1.0.3))
|
2015-08-29 09:23:19 +00:00
|
|
|
$(eval $(call LinksysDevice,e1200-v2,E122,1.0.4))
|
2015-03-31 11:26:50 +00:00
|
|
|
$(eval $(call LinksysDevice,e1500-v1,E150,1.0.5))
|
|
|
|
$(eval $(call LinksysDevice,e1550-v1,1550,1.0.3))
|
|
|
|
$(eval $(call LinksysDevice,e2000-v1,32XN,1.0.4))
|
|
|
|
$(eval $(call LinksysDevice,e2500-v1,E25X,1.0.7))
|
|
|
|
$(eval $(call LinksysDevice,e2500-v2,E25X,2.0.0))
|
|
|
|
$(eval $(call LinksysDevice,e2500-v2.1,25RU,2.1.0))
|
|
|
|
$(eval $(call LinksysDevice,e2500-v3,25V3,3.0.0))
|
|
|
|
$(eval $(call LinksysDevice,e3200-v1,3200,1.0.1))
|
|
|
|
$(eval $(call LinksysDevice,e4200-v1,4200,1.0.5))
|
|
|
|
$(eval $(call NetgearDevice,wgr614-v10_north-america,U12H139T01_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wgr614-v10_other-regions,U12H139T01_NETGEAR,1))
|
2015-12-02 09:24:52 +00:00
|
|
|
$(eval $(call NetgearDevice,wn2500rp-v1,U12H197T00_NETGEAR,1))
|
2015-03-31 11:26:50 +00:00
|
|
|
$(eval $(call NetgearDevice,wndr3400-v1,U12H155T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wndr3400-v2,U12H187T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wndr3400-v3,U12H208T00_NETGEAR,1))
|
2015-03-31 11:26:45 +00:00
|
|
|
$(eval $(call NetgearDevice,wndr3700-v3,U12H194T00_NETGEAR,2))
|
2015-03-31 11:26:50 +00:00
|
|
|
$(eval $(call NetgearDevice,wndr4000,U12H181T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wnr1000-v3,U12H139T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wnr2000v2,U12H114T00_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wnr3000rp,U12H163T01_NETGEAR,1))
|
|
|
|
$(eval $(call NetgearDevice,wnr3500l-v1-north-america,U12H136T99_NETGEAR,2))
|
|
|
|
$(eval $(call NetgearDevice,wnr3500l-v1-other-regions,U12H136T99_NETGEAR,1))
|
|
|
|
$(eval $(call NetgearDevice,wnr3500l-v2,U12H172T00_NETGEAR,1))
|
|
|
|
$(eval $(call NetgearDevice,wnr3500-v2,U12H127T00_NETGEAR,2))
|
2015-03-29 18:15:38 +00:00
|
|
|
endif
|
|
|
|
|
2014-06-05 21:23:58 +00:00
|
|
|
#################################################
|
|
|
|
# Shared BuildImage defines
|
|
|
|
#################################################
|
|
|
|
|
2010-06-26 20:41:49 +00:00
|
|
|
define Image/Build/Initramfs
|
2015-09-11 17:54:55 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-09-11 17:54:55 +00:00
|
|
|
-o $(BIN_DIR)/$(IMG_PREFIX)-initramfs.trx \
|
|
|
|
-f $(KDIR)/loader.gz \
|
|
|
|
-f $(KDIR)/vmlinux-initramfs.lzma
|
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-09-11 17:54:55 +00:00
|
|
|
-o $(BIN_DIR)/$(IMG_PREFIX)-initramfs-noloader-nodictionary.trx \
|
|
|
|
-f $(KDIR)/vmlinux-initramfs-nodictionary.lzma
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
|
2014-05-14 10:08:22 +00:00
|
|
|
# $(1): filesystem type.
|
2010-06-26 20:41:49 +00:00
|
|
|
define Image/Build
|
2015-09-11 17:54:55 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-09-11 17:54:55 +00:00
|
|
|
-o $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx \
|
2010-06-26 20:41:49 +00:00
|
|
|
-f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma \
|
|
|
|
$(call trxalign/$(1),$(1))
|
2015-09-11 17:54:55 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-09-11 17:54:55 +00:00
|
|
|
-o $(BIN_DIR)/$(IMG_PREFIX)-$(1)-noloader-nodictionary.trx \
|
2014-08-18 21:00:55 +00:00
|
|
|
-f $(KDIR)/vmlinux-nodictionary.lzma \
|
|
|
|
$(call trxalign/$(1),$(1))
|
2015-09-11 17:54:55 +00:00
|
|
|
$(STAGING_DIR_HOST)/bin/trx \
|
2015-09-11 17:55:28 +00:00
|
|
|
-m 33554432 \
|
2015-09-11 17:54:55 +00:00
|
|
|
-o $(BIN_DIR)/$(IMG_PREFIX)-$(1)-gz.trx \
|
2013-09-16 21:09:10 +00:00
|
|
|
-f $(KDIR)/vmlinux.gz \
|
|
|
|
$(call trxalign/$(1),$(1))
|
2014-06-05 21:23:58 +00:00
|
|
|
$(call Image/Build/$(SUBTARGET)/$(1),$(1))
|
2012-02-18 23:21:47 +00:00
|
|
|
# $(call Image/Build/Chk,$(1),wgr614_v9,U12H094T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1)))
|
|
|
|
# $(call Image/Build/Chk,$(1),wndr3400_vcna,U12H155T01_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1)))
|
|
|
|
# $(call Image/Build/Chk,$(1),wnr3500U,U12H136T00_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1)))
|
|
|
|
# $(call Image/Build/Chk,$(1),wnr3500v2_VC,U12H127T70_NETGEAR,2,$(patsubst jffs2-%,jffs2,$(1)))
|
2013-06-27 19:58:31 +00:00
|
|
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
|
|
|
$(call Image/Build/Initramfs)
|
|
|
|
endif
|
2010-06-26 20:41:49 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildImage))
|