mirror of https://github.com/hak5/openwrt.git
mvebu: image: stack repeated variables
All of arm64 devices have part of variables repeatedly defined. Stack them to common define, and reference it in each device recipe. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>openwrt-19.07
parent
f0c2bac252
commit
ef384c68e7
|
@ -83,6 +83,14 @@ define Device/Default
|
|||
endef
|
||||
DEVICE_VARS += UBOOT
|
||||
|
||||
define Device/Default-arm64
|
||||
DTS_DIR := $(DTS_DIR)/marvell
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
endef
|
||||
|
||||
define Device/UBI
|
||||
IMAGES := sysupgrade.bin
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
|
|
|
@ -1,25 +1,17 @@
|
|||
ifeq ($(SUBTARGET),cortexa53)
|
||||
|
||||
define Device/globalscale-espressobin
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
$(call Device/Default-arm64)
|
||||
DEVICE_TITLE := ESPRESSObin (Marvell Armada 3700 Community Board)
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
DEVICE_DTS := armada-3720-espressobin
|
||||
DTS_DIR := $(DTS_DIR)/marvell
|
||||
SUPPORTED_DEVICES := globalscale,espressobin
|
||||
endef
|
||||
TARGET_DEVICES += globalscale-espressobin
|
||||
|
||||
define Device/armada-3720-db
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
$(call Device/Default-arm64)
|
||||
DEVICE_TITLE := Marvell Armada 3720 Development Board DB-88F3720-DDR3
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
DEVICE_DTS := armada-3720-db
|
||||
DTS_DIR := $(DTS_DIR)/marvell
|
||||
SUPPORTED_DEVICES := marvell,armada-3720-db
|
||||
endef
|
||||
TARGET_DEVICES += armada-3720-db
|
||||
|
|
|
@ -1,38 +1,28 @@
|
|||
ifeq ($(SUBTARGET),cortexa72)
|
||||
|
||||
define Device/armada-macchiatobin
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
$(call Device/Default-arm64)
|
||||
DEVICE_TITLE := MACCHIATObin (SolidRun Armada 8040 Community Board)
|
||||
DEVICE_PACKAGES += kmod-i2c-core kmod-i2c-mux kmod-i2c-mux-pca954x
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := boot-scr | boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
DEVICE_DTS := armada-8040-mcbin
|
||||
DTS_DIR := $(DTS_DIR)/marvell
|
||||
SUPPORTED_DEVICES := marvell,armada8040-mcbin
|
||||
endef
|
||||
TARGET_DEVICES += armada-macchiatobin
|
||||
|
||||
define Device/armada-8040-db
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
$(call Device/Default-arm64)
|
||||
DEVICE_TITLE := Marvell Armada 8040 DB board
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
DEVICE_DTS := armada-8040-db
|
||||
DTS_DIR := $(DTS_DIR)/marvell
|
||||
IMAGE/sdcard.img.gz := boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
SUPPORTED_DEVICES := marvell,armada8040-db
|
||||
endef
|
||||
TARGET_DEVICES += armada-8040-db
|
||||
|
||||
define Device/armada-7040-db
|
||||
KERNEL_NAME := Image
|
||||
KERNEL := kernel-bin
|
||||
$(call Device/Default-arm64)
|
||||
DEVICE_TITLE := Marvell Armada 7040 DB board
|
||||
IMAGES := sdcard.img.gz
|
||||
IMAGE/sdcard.img.gz := boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
DEVICE_DTS := armada-7040-db
|
||||
DTS_DIR := $(DTS_DIR)/marvell
|
||||
IMAGE/sdcard.img.gz := boot-img-ext4 | sdcard-img-ext4 | gzip | append-metadata
|
||||
SUPPORTED_DEVICES := marvell,armada7040-db
|
||||
endef
|
||||
TARGET_DEVICES += armada-7040-db
|
||||
|
|
Loading…
Reference in New Issue