openwrt/target/linux/mvebu/image/cortex-a53.mk
Andre Heider 7fbee0c7b2 mvebu: Add bootscript for espressobin to support mainline firmware
The generic bootscript is tailored around a downstream firmware and
doesn't work on a firmware built from mainline components.

Add a bootscript which:
* sets $console since mainline u-boot doesn't do that
* uses distro boot variables, so OpenWRT can be booted off any supported
  device when using a mainline firmware
* sets missing distro boot variables for the downstream firmware

Booting with a downstream firmware is unchanged.
Booting with a mainline firmware now works.

Signed-off-by: Andre Heider <a.heider@gmail.com>
(cherry picked from commit c43b45863e)
2020-10-28 23:22:44 +01:00

43 lines
1.3 KiB
Makefile

ifeq ($(SUBTARGET),cortexa53)
define Device/globalscale_espressobin
$(call Device/Default-arm64)
DEVICE_TITLE := ESPRESSObin (Marvell Armada 3700 Community Board)
DEVICE_DTS := armada-3720-espressobin
BOOT_SCRIPT := espressobin
endef
TARGET_DEVICES += globalscale_espressobin
define Device/globalscale_espressobin-emmc
$(call Device/Default-arm64)
DEVICE_TITLE := ESPRESSObin eMMC (Marvell Armada 3700 Community Board)
DEVICE_DTS := armada-3720-espressobin-emmc
BOOT_SCRIPT := espressobin
endef
TARGET_DEVICES += globalscale_espressobin-emmc
define Device/globalscale_espressobin-v7
$(call Device/Default-arm64)
DEVICE_TITLE := ESPRESSObin V7 (Marvell Armada 3700 Community Board)
DEVICE_DTS := armada-3720-espressobin-v7
BOOT_SCRIPT := espressobin
endef
TARGET_DEVICES += globalscale_espressobin-v7
define Device/globalscale_espressobin-v7-emmc
$(call Device/Default-arm64)
DEVICE_TITLE := ESPRESSObin V7 eMMC (Marvell Armada 3700 Community Board)
DEVICE_DTS := armada-3720-espressobin-v7-emmc
BOOT_SCRIPT := espressobin
endef
TARGET_DEVICES += globalscale_espressobin-v7-emmc
define Device/marvell_armada-3720-db
$(call Device/Default-arm64)
DEVICE_TITLE := Marvell Armada 3720 Development Board DB-88F3720-DDR3
DEVICE_DTS := armada-3720-db
endef
TARGET_DEVICES += marvell_armada-3720-db
endif