Prechádzať zdrojové kódy

sunxi: add build for sopine

This will generate image for Pine64 Sopine board.

Signed-off-by: Fan Fan <[email protected]>
Fan Fan 7 rokov pred
rodič
commit
8e1065d681

+ 10 - 0
package/boot/uboot-sunxi/Makefile

@@ -190,6 +190,15 @@ define U-Boot/pine64_plus
   UENV:=a64
 endef
 
+define U-Boot/sopine_baseboard
+  BUILD_SUBTARGET:=cortexa53
+  NAME:=Sopine Baseboard
+  BUILD_DEVICES:=sun50i-a64-sopine-baseboard
+  DEPENDS:=+PACKAGE_u-boot-sopine_baseboard:arm-trusted-firmware-sunxi
+  UENV:=a64
+endef
+
+
 define U-Boot/orangepi_zero_plus
   BUILD_SUBTARGET:=cortexa53
   NAME:=Xunlong Orange Pi Zero Plus
@@ -226,6 +235,7 @@ UBOOT_TARGETS := \
 	orangepi_2 \
 	pangolin \
 	pine64_plus \
+	sopine_baseboard \
 	orangepi_zero_plus
 
 UBOOT_CONFIGURE_VARS += USE_PRIVATE_LIBGCC=yes

+ 10 - 0
target/linux/sunxi/image/cortex-a53.mk

@@ -27,6 +27,16 @@ endef
 
 TARGET_DEVICES += sun50i-a64-pine64-plus
 
+define Device/sun50i-a64-sopine-baseboard
+  DEVICE_TITLE:=Pine64 Sopine
+  SUPPORTED_DEVICES:=pine64,sopine-baseboard
+  SUNXI_DTS:=allwinner/sun50i-a64-sopine-baseboard
+  KERNEL_NAME := Image
+  KERNEL := kernel-bin
+endef
+
+TARGET_DEVICES += sun50i-a64-sopine-baseboard
+
 
 define Device/sun50i-h5-orangepi-zero-plus
   DEVICE_TITLE:=Xunlong Orange Pi Zero Plus