diff --git a/DEVELOPERS b/DEVELOPERS index c7a968b6c2..7f9a60b1b9 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2516,6 +2516,7 @@ F: package/tcf-agent/ N: Yu Chien Peter Lin F: board/andes F: configs/andes_ae350_45_defconfig +F: package/andes-spi-burn/ F: package/kmon/ N: Olaf Rempel diff --git a/package/Config.in.host b/package/Config.in.host index e4fbee4f2a..191833d94d 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -4,6 +4,7 @@ menu "Host utilities" source "package/aespipe/Config.in.host" source "package/agent-proxy/Config.in.host" source "package/amlogic-boot-fip/Config.in.host" + source "package/andes-spi-burn/Config.in.host" source "package/android-tools/Config.in.host" source "package/asn1c/Config.in.host" source "package/babeltrace2/Config.in.host" diff --git a/package/andes-spi-burn/Config.in.host b/package/andes-spi-burn/Config.in.host new file mode 100644 index 0000000000..09d5ddb2b4 --- /dev/null +++ b/package/andes-spi-burn/Config.in.host @@ -0,0 +1,8 @@ +config BR2_PACKAGE_HOST_ANDES_SPI_BURN + bool "host andes-spi-burn" + depends on BR2_riscv + help + Andes Technology SPI_burn tool to program bootloader and + device-tree blob onto flash memory of AE350 platform. + + https://github.com/andestech/IntelJ3 diff --git a/package/andes-spi-burn/andes-spi-burn.hash b/package/andes-spi-burn/andes-spi-burn.hash new file mode 100644 index 0000000000..5022f0fc1b --- /dev/null +++ b/package/andes-spi-burn/andes-spi-burn.hash @@ -0,0 +1,3 @@ +# Locally computed +sha256 72a5b016ebe0da77662a10edb8078c29cfcbedd8c0ff523d299248e0b1fb84dd andes-spi-burn-5b8193c35360febd8445cfa32adc6b13a861616d.tar.gz +sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE diff --git a/package/andes-spi-burn/andes-spi-burn.mk b/package/andes-spi-burn/andes-spi-burn.mk new file mode 100644 index 0000000000..8ee5fb2897 --- /dev/null +++ b/package/andes-spi-burn/andes-spi-burn.mk @@ -0,0 +1,20 @@ +################################################################################ +# +# andes-spi-burn +# +################################################################################ + +ANDES_SPI_BURN_VERSION = 5b8193c35360febd8445cfa32adc6b13a861616d +ANDES_SPI_BURN_SITE = $(call github,andestech,IntelJ3,$(ANDES_SPI_BURN_VERSION)) +ANDES_SPI_BURN_LICENSE = Apache-2.0 +ANDES_SPI_BURN_FILES = LICENSE + +define HOST_ANDES_SPI_BURN_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) -f Makefile_SPIburn +endef + +define HOST_ANDES_SPI_BURN_INSTALL_CMDS + $(INSTALL) -D -m 0755 $(@D)/SPI_burn $(HOST_DIR)/bin/SPI_burn +endef + +$(eval $(host-generic-package))