ramips: convert mt7628 to new image building code

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin 2016-05-11 12:21:45 +02:00
parent 825717d450
commit 0f12f32996
3 changed files with 21 additions and 31 deletions

View file

@ -2,16 +2,26 @@
# MT7628 Profiles # MT7628 Profiles
# #
Image/Build/Profile/MIWIFI-NANO=$(call BuildFirmware/Default16M/$(1),$(1),miwifi-nano,MIWIFI-NANO) define Device/mt7628
Image/Build/Profile/MT7628=$(call BuildFirmware/Default4M/$(1),$(1),mt7628,MT7628) DTS := MT7628
Image/Build/Profile/WRTNODE2P=$(call BuildFirmware/Default16M/$(1),$(1),wrtnode2p,WRTNODE2P) IMAGE_SIZE := $(ralink_default_fw_size_4M)
DEVICE_TITLE := MediaTek MT7628 EVB
define Image/Build/Profile/Default DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
$(call Image/Build/Profile/MIWIFI-NANO,$(1))
$(call Image/Build/Profile/MT7628,$(1))
$(call Image/Build/Profile/WRTNODE2P,$(1))
endef endef
TARGET_DEVICES += mt7628
define Image/Build/Profile/MiwifiNano define Device/miwifi-nano
$(call Image/Build/Profile/MIWIFI-NANO,$(1)) DTS := MIWIFI-NANO
IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := Xiaomi MiWiFi Nano
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef endef
TARGET_DEVICES += miwifi-nano
define Device/wrtnode2p
DTS := WRTNODE2P
IMAGE_SIZE := $(ralink_default_fw_size_16M)
DEVICE_TITLE := WRTnode 2P
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef
TARGET_DEVICES += wrtnode2p

View file

@ -7,9 +7,7 @@
define Profile/Default define Profile/Default
NAME:=Default Profile NAME:=Default Profile
PACKAGES:=\ PACKAGES:= kmod-usb-core kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
kmod-usb-core kmod-usb2 kmod-usb-ohci \
kmod-ledtrig-usbdev
endef endef
define Profile/Default/Description define Profile/Default/Description

View file

@ -1,18 +0,0 @@
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
define Profile/MiwifiNano
NAME:=Xiaomi MiWiFi Nano
PACKAGES:=\
kmod-usb-core kmod-usb2 kmod-usb-ohci \
kmod-ledtrig-usbdev
endef
define Profile/Default/Description
Image for Xiaomi MiWiFi Nano
endef
$(eval $(call Profile,MiwifiNano))