summaryrefslogtreecommitdiff
path: root/target/linux/ramips/image/Makefile
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:38:12 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-09-14 23:38:12 +0200
commite266de11dcd0b2d71c445b943bef2f50258fa314 (patch)
treefd53612a762e46dbda5727f521c60b9d20b36e80 /target/linux/ramips/image/Makefile
parentca2d447b348acc07b74c8e624771ae7f9bb1fc9e (diff)
downloadmtk-20170518-e266de11dcd0b2d71c445b943bef2f50258fa314.zip
mtk-20170518-e266de11dcd0b2d71c445b943bef2f50258fa314.tar.gz
mtk-20170518-e266de11dcd0b2d71c445b943bef2f50258fa314.tar.bz2
target/linux/ramips: profile mt7621, cpu 24kec to 1004kc, custom modules
hw_nat MTK Hardware NAT nf-sc Netfilter shortcut mtk-i2c APSoC/MTK I2C Driver mtk-i2s I2S Driver mtk-mmc MMC/SD card support hw_wdg Kernel Mode Watchdog rdm Register Debug Module cfg80211-normal CFG80211 kernel support
Diffstat (limited to 'target/linux/ramips/image/Makefile')
-rw-r--r--target/linux/ramips/image/Makefile101
1 files changed, 39 insertions, 62 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile
index 35057e4..5ce8215 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -24,21 +24,21 @@ define Image/Build/Initramfs
endef
endif
-ifeq ($(CONFIG_SOC_RT288X),y)
+ifeq ($(CONFIG_RALINK_MT7621),y)
+ifeq ($(CONFIG_RT2880_DRAM_512M),y)
define kernel_entry
--a 0x88000000 -e 0x88000000
+-a 0x82001000 -e 0x82001000
endef
else
-ifeq ($(CONFIG_SOC_MT7621),y)
define kernel_entry
--a 0x80001000 -e 0x80001000
+-a 0x81001000 -e 0x81001000
endef
+endif
else
define kernel_entry
-a 0x80000000 -e 0x80000000
endef
endif
-endif
define MkCombineduImage
$(call PatchKernelLzma,$(2),$(3))
@@ -58,7 +58,7 @@ endef
#
define MkImage
- $(eval imagename=$(if $(4),$(4),MIPS OpenWrt Linux-$(LINUX_VERSION)))
+ $(eval imagename=$(if $(4),$(4),OpenWrt Linux-$(LINUX_EXT_VERSION)))
-mkimage -A mips -O linux -T kernel -C $(1) $(call kernel_entry)\
-n "$(imagename)" \
-d $(2) $(3)
@@ -81,8 +81,8 @@ endef
define PatchKernelLzmaDtb
cp $(KDIR)/vmlinux$(3) $(KDIR)/vmlinux-$(1)$(3)
- $(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(2).dtb ../dts/$(2).dts
- $(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1)$(3) $(KDIR)/$(2).dtb
+ #$(LINUX_DIR)/scripts/dtc/dtc -O dtb -o $(KDIR)/$(2).dtb ../dts/$(2).dts
+ #$(STAGING_DIR_HOST)/bin/patch-dtb $(KDIR)/vmlinux-$(1)$(3) $(KDIR)/$(2).dtb
$(call CompressLzma,$(KDIR)/vmlinux-$(1)$(3),$(KDIR)/vmlinux-$(1)$(3).bin.lzma)
endef
@@ -124,6 +124,10 @@ ralink_default_fw_size_16M=16121856
BuildFirmware/Default16M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_16M),$(4))
BuildFirmware/Default16M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+ralink_default_fw_size_32M=33554432
+BuildFirmware/Default32M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_32M),$(4))
+BuildFirmware/Default32M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4))
+
# Build images for a custom sized flash layout
# $(1) = squashfs/initramfs
# $(2) = lowercase board name
@@ -504,8 +508,6 @@ endef
BuildFirmware/WHRG300N/initramfs=$(call BuildFirmware/OF/initramfs,$(1),whr-g300n,WHR-G300N)
Image/Build/Profile/WHRG300N=$(call BuildFirmware/WHRG300N/$(1),$(1))
-Image/Build/Profile/WIZARD8800=$(call BuildFirmware/Default8M/$(1),$(1),wizard-8800,WIZARD8800,Linux Kernel Image)
-
Image/Build/Profile/WL_330N=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n,WL_330N)
Image/Build/Profile/WL_330N3G=$(call BuildFirmware/Default4M/$(1),$(1),wl-330n3g,WL_330N3G)
@@ -627,7 +629,6 @@ define Image/Build/Profile/Default
$(call Image/Build/Profile/W502U,$(1))
$(call Image/Build/Profile/WCR150GN,$(1))
$(call Image/Build/Profile/WHRG300N,$(1))
- $(call Image/Build/Profile/WIZARD8800,$(1))
$(call Image/Build/Profile/WL_330N,$(1))
$(call Image/Build/Profile/WL_330N3G,$(1))
$(call Image/Build/Profile/WL341V3,$(1))
@@ -709,78 +710,54 @@ endef
endif
#
-# MT7620A Profiles
+# MT7620 Profiles
#
-Image/Build/Profile/MT7620a=$(call BuildFirmware/Default8M/$(1),$(1),mt7620a,MT7620a)
-Image/Build/Profile/MT7620a_MT7610e=$(call BuildFirmware/Default8M/$(1),$(1),mt7620a_mt7610e,MT7620a_MT7610e)
-Image/Build/Profile/MT7620a_MT7530=$(call BuildFirmware/Default8M/$(1),$(1),mt7620a_mt7530,MT7620a_MT7530)
-Image/Build/Profile/MT7620a_V22SG=$(call BuildFirmware/Default8M/$(1),$(1),mt7620a_v22sg,MT7620a_V22SG)
-Image/Build/Profile/RP-N53=$(call BuildFirmware/Default8M/$(1),$(1),rp_n53,RP-N53)
-whr_300hp2_mtd_size=7012352
-Image/Build/Profile/WHR300HP2=$(call BuildFirmware/CustomFlash/$(1),$(1),whr-300hp2,WHR-300HP2,$(whr_300hp2_mtd_size))
-Image/Build/Profile/WHR600D=$(call BuildFirmware/CustomFlash/$(1),$(1),whr-600d,WHR-600D,$(whr_300hp2_mtd_size))
-whr_1166d_mtd_size=15400960
-Image/Build/Profile/WHR1166D=$(call BuildFirmware/CustomFlash/$(1),$(1),whr-1166d,WHR-1166D,$(whr_1166hd_mtd_size))
-dlink810l_mtd_size=6881280
-Image/Build/Profile/DIR-810L=$(call BuildFirmware/CustomFlash/$(1),$(1),dir-810l,DIR-810L,$(dlink810l_mtd_size))
-na930_mtd_size=20971520
-Image/Build/Profile/NA930=$(call BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size))
-Image/Build/Profile/MZK-750DHP=$(call BuildFirmware/Default8M/$(1),$(1),mzk-750dhp,MZK-750DHP)
-Image/Build/Profile/Y1=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1,Y1)
-Image/Build/Profile/Y1S=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1s,Y1S)
-
-ifeq ($(SUBTARGET),mt7620a)
+
+Image/Build/Profile/MT7620=$(call BuildFirmware/Default8M/$(1),$(1),mt7620,MT7620)
+
+ifeq ($(SUBTARGET),mt7620)
define Image/Build/Profile/Default
- $(call Image/Build/Profile/MT7620a,$(1))
- $(call Image/Build/Profile/MT7620a_MT7610e,$(1))
- $(call Image/Build/Profile/MT7620a_MT7530,$(1))
- $(call Image/Build/Profile/MT7620a_V22SG,$(1))
- $(call Image/Build/Profile/RP-N53,$(1))
- $(call Image/Build/Profile/DIR-810L,$(1))
- $(call Image/Build/Profile/WHR300HP2,$(1))
- $(call Image/Build/Profile/WHR600D,$(1))
- $(call Image/Build/Profile/WHR1166D,$(1))
- $(call Image/Build/Profile/MZK-750DHP,$(1))
- $(call Image/Build/Profile/NA930,$(1))
- $(call Image/Build/Profile/Y1,$(1))
- $(call Image/Build/Profile/Y1S,$(1))
+ $(call Image/Build/Profile/MT7620,$(1))
endef
endif
#
-# MT7620N Profiles
+# MT7621 Profiles
#
-Image/Build/Profile/MLW221=$(call BuildFirmware/Default16M/$(1),$(1),mlw221,MLW221)
-Image/Build/Profile/WMR300=$(call BuildFirmware/Default8M/$(1),$(1),wmr-300,WMR300)
-Image/Build/Profile/RT-N14U=$(call BuildFirmware/Default8M/$(1),$(1),rt-n14u,RT-N14U)
-Image/Build/Profile/WR8305RT=$(call BuildFirmware/Default8M/$(1),$(1),wr8305rt,WR8305RT)
-Image/Build/Profile/WRTNODE=$(call BuildFirmware/Default16M/$(1),$(1),wrtnode,WRTNODE)
-Image/Build/Profile/ZBT-WA05=$(call BuildFirmware/Default8M/$(1),$(1),zbt-wa05,ZBT-WA05)
+Image/Build/Profile/MT7621=$(call BuildFirmware/Default8M/$(1),$(1),mt7621,MT7621)
-ifeq ($(SUBTARGET),mt7620n)
+ifeq ($(SUBTARGET),mt7621)
define Image/Build/Profile/Default
- $(call Image/Build/Profile/MLW221,$(1))
- $(call Image/Build/Profile/WMR300,$(1))
- $(call Image/Build/Profile/RT-N14U,$(1))
- $(call Image/Build/Profile/WR8305RT,$(1))
- $(call Image/Build/Profile/WRTNODE,$(1))
- $(call Image/Build/Profile/ZBT-WA05,$(1))
+ $(call Image/Build/Profile/MT7621,$(1))
endef
endif
#
-# MT7621 Profiles
+# MT7628 Profiles
#
-Image/Build/Profile/MT7621=$(call BuildFirmware/Default4M/$(1),$(1),mt7621,MT7621)
+Image/Build/Profile/MT7628=$(call BuildFirmware/Default8M/$(1),$(1),mt7628,MT7628)
-ifeq ($(SUBTARGET),mt7621)
+ifeq ($(SUBTARGET),mt7628)
define Image/Build/Profile/Default
- $(call Image/Build/Profile/MT7621,$(1))
+ $(call Image/Build/Profile/MT7628,$(1))
+endef
+endif
+
+
+#
+# MT7688 Profiles
+#
+
+Image/Build/Profile/MT7688=$(call BuildFirmware/Default8M/$(1),$(1),mt7688,MT7688)
+
+ifeq ($(SUBTARGET),mt7688)
+define Image/Build/Profile/Default
+ $(call Image/Build/Profile/MT7688,$(1))
endef
endif