aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/image
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2020-03-16 10:56:01 +0100
committerPetr Štetiar <ynezz@true.cz>2020-03-28 13:03:02 +0100
commit5217aa78f19058e462f38e6155973811b48aa47e (patch)
tree699fe2247fac35f0eb96305462eed4eee9b9cf5f /target/linux/sunxi/image
parent5f2ff607e286ab92ede986d62b39391557d36c61 (diff)
downloadupstream-5217aa78f19058e462f38e6155973811b48aa47e.tar.gz
upstream-5217aa78f19058e462f38e6155973811b48aa47e.tar.bz2
upstream-5217aa78f19058e462f38e6155973811b48aa47e.zip
sunxi: a53: image: make it DRY
Replace same copy&pasted lines with the appropriate reusable bits. Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/sunxi/image')
-rw-r--r--target/linux/sunxi/image/cortex-a53.mk46
1 files changed, 22 insertions, 24 deletions
diff --git a/target/linux/sunxi/image/cortex-a53.mk b/target/linux/sunxi/image/cortex-a53.mk
index eeaaa887d7..79dd43c60f 100644
--- a/target/linux/sunxi/image/cortex-a53.mk
+++ b/target/linux/sunxi/image/cortex-a53.mk
@@ -6,14 +6,27 @@
# See /LICENSE for more information.
#
+define Device/sun50i
+ SUNXI_DTS_DIR := allwinner/
+ KERNEL_NAME := Image
+ KERNEL := kernel-bin
+endef
+
+define Device/sun50i-h5
+ SOC := sun50i-h5
+ $(Device/sun50i)
+endef
+
+define Device/sun50i-a64
+ SOC := sun50i-a64
+ $(Device/sun50i)
+endef
+
define Device/friendlyarm_nanopi-neo-plus2
DEVICE_VENDOR := FriendlyARM
DEVICE_MODEL := NanoPi NEO Plus2
SUPPORTED_DEVICES:=nanopi-neo-plus2
- SUNXI_DTS_DIR := allwinner/
- SOC := sun50i-h5
- KERNEL_NAME := Image
- KERNEL := kernel-bin
+ $(Device/sun50i-h5)
endef
TARGET_DEVICES += friendlyarm_nanopi-neo-plus2
@@ -21,49 +34,34 @@ define Device/friendlyarm_nanopi-neo2
DEVICE_VENDOR := FriendlyARM
DEVICE_MODEL := NanoPi NEO2
SUPPORTED_DEVICES:=nanopi-neo2
- SUNXI_DTS_DIR := allwinner/
- SOC := sun50i-h5
- KERNEL_NAME := Image
- KERNEL := kernel-bin
+ $(Device/sun50i-h5)
endef
TARGET_DEVICES += friendlyarm_nanopi-neo2
define Device/pine64_pine64-plus
DEVICE_VENDOR := Pine64
DEVICE_MODEL := Pine64+
- SUNXI_DTS_DIR := allwinner/
- SOC := sun50i-a64
- KERNEL_NAME := Image
- KERNEL := kernel-bin
+ $(Device/sun50i-a64)
endef
TARGET_DEVICES += pine64_pine64-plus
define Device/pine64_sopine-baseboard
DEVICE_VENDOR := Pine64
DEVICE_MODEL := SoPine
- SUNXI_DTS_DIR := allwinner/
- SOC := sun50i-a64
- KERNEL_NAME := Image
- KERNEL := kernel-bin
+ $(Device/sun50i-a64)
endef
TARGET_DEVICES += pine64_sopine-baseboard
define Device/xunlong_orangepi-pc2
DEVICE_VENDOR := Xunlong
DEVICE_MODEL := Orange Pi PC 2
- SUNXI_DTS_DIR := allwinner/
- SOC := sun50i-h5
- KERNEL_NAME := Image
- KERNEL := kernel-bin
+ $(Device/sun50i-h5)
endef
TARGET_DEVICES += xunlong_orangepi-pc2
define Device/xunlong_orangepi-zero-plus
DEVICE_VENDOR := Xunlong
DEVICE_MODEL := Orange Pi Zero Plus
- SUNXI_DTS_DIR := allwinner/
- SOC := sun50i-h5
- KERNEL_NAME := Image
- KERNEL := kernel-bin
+ $(Device/sun50i-h5)
endef
TARGET_DEVICES += xunlong_orangepi-zero-plus