mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
e3b8849088
Use approach suggested by Adrian Schmutzler instead of introducing
another device variable.
Also revert the unnecessary white-space changes accidentally introduced
by the previous commit.
Fixed: c067b1e79b
("mediatek: move out-of-tree DTS files to dedicated dts folder")
Suggested-by: Adrian Schmutzler <mail@adrianschmutzler.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
DTS_DIR := $(DTS_DIR)/mediatek
|
|
KERNEL_LOADADDR := 0x44080000
|
|
|
|
define Device/bpi_bananapi-r64
|
|
DEVICE_VENDOR := Bpi
|
|
DEVICE_MODEL := Banana Pi R64
|
|
DEVICE_DTS := mt7622-bananapi-bpi-r64
|
|
SUPPORTED_DEVICES := bananapi,bpi-r64
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
|
|
endef
|
|
TARGET_DEVICES += bpi_bananapi-r64
|
|
|
|
define Device/bpi_bananapi-r64-rootdisk
|
|
DEVICE_VENDOR := Bpi
|
|
DEVICE_MODEL := Banana Pi R64 (rootdisk)
|
|
DEVICE_DTS := mt7622-bananapi-bpi-r64-rootdisk
|
|
DEVICE_DTS_DIR := ../dts
|
|
SUPPORTED_DEVICES := bananapi,bpi-r64
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
|
|
IMAGES := sysupgrade-emmc.bin.gz
|
|
IMAGE/sysupgrade-emmc.bin.gz := sysupgrade-emmc | gzip | append-metadata
|
|
endef
|
|
TARGET_DEVICES += bpi_bananapi-r64-rootdisk
|
|
|
|
define Device/elecom_wrc-2533gent
|
|
DEVICE_VENDOR := Elecom
|
|
DEVICE_MODEL := WRC-2533GENT
|
|
DEVICE_DTS := mt7622-elecom-wrc-2533gent
|
|
DEVICE_DTS_DIR := ../dts
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-mt7615e \
|
|
kmod-mt7615-firmware kmod-btmtkuart swconfig
|
|
endef
|
|
TARGET_DEVICES += elecom_wrc-2533gent
|
|
|
|
define Device/mediatek_mt7622-rfb1
|
|
DEVICE_VENDOR := MediaTek
|
|
DEVICE_MODEL := MTK7622 rfb1 AP
|
|
DEVICE_DTS := mt7622-rfb1
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
|
|
endef
|
|
TARGET_DEVICES += mediatek_mt7622-rfb1
|
|
|
|
define Device/mediatek_mt7622-ubi
|
|
DEVICE_VENDOR := MediaTek
|
|
DEVICE_MODEL := MTK7622 AP (UBI)
|
|
DEVICE_DTS := mt7622-rfb1-ubi
|
|
DEVICE_DTS_DIR := ../dts
|
|
UBINIZE_OPTS := -E 5
|
|
BLOCKSIZE := 128k
|
|
PAGESIZE := 2048
|
|
KERNEL_SIZE := 4194304
|
|
IMAGE_SIZE := 32768k
|
|
IMAGES += factory.bin
|
|
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
|
check-size $$$$(IMAGE_SIZE)
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar
|
|
DEVICE_PACKAGES := kmod-usb-ohci kmod-usb2 kmod-usb3 kmod-ata-ahci-mtk
|
|
endef
|
|
TARGET_DEVICES += mediatek_mt7622-ubi
|
|
|
|
define Device/ubnt_unifi-6-lr
|
|
DEVICE_VENDOR := Ubiquiti
|
|
DEVICE_MODEL := UniFi 6 LR
|
|
DEVICE_DTS := mt7622-ubnt-unifi-6-lr
|
|
DEVICE_DTS_DIR := ../dts
|
|
DEVICE_PACKAGES := kmod-mt7915e
|
|
endef
|
|
TARGET_DEVICES += ubnt_unifi-6-lr
|