From d503a13a7c4ec8e61f17610cc0768090fef079f7 Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Wed, 8 Jul 2015 10:15:02 +0200 Subject: [PATCH] stm32flash: new package Signed-off-by: Luca Ceresoli Tested-by: Frank Hunleth Signed-off-by: Peter Korsgaard --- package/Config.in | 1 + package/stm32flash/Config.in | 8 ++++++++ package/stm32flash/stm32flash.mk | 21 +++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 package/stm32flash/Config.in create mode 100644 package/stm32flash/stm32flash.mk diff --git a/package/Config.in b/package/Config.in index 23858caa20..d9b0794279 100644 --- a/package/Config.in +++ b/package/Config.in @@ -411,6 +411,7 @@ endif source "package/snowball-hdmiservice/Config.in" source "package/sredird/Config.in" source "package/statserial/Config.in" + source "package/stm32flash/Config.in" source "package/sunxi-cedarx/Config.in" source "package/sunxi-mali/Config.in" source "package/sunxi-mali-prop/Config.in" diff --git a/package/stm32flash/Config.in b/package/stm32flash/Config.in new file mode 100644 index 0000000000..cb6f4805ed --- /dev/null +++ b/package/stm32flash/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_STM32FLASH + bool "stm32flash" + help + Open source cross platform flash program for the STM32 ARM + microcontrollers using the built-in ST serial bootloader over UART + or I2C. + + http://sourceforge.net/projects/stm32flash/ diff --git a/package/stm32flash/stm32flash.mk b/package/stm32flash/stm32flash.mk new file mode 100644 index 0000000000..2c0fa56adc --- /dev/null +++ b/package/stm32flash/stm32flash.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# stm32flash +# +################################################################################ + +STM32FLASH_VERSION = 4ac0566f188f39eace0223d966d349cd2f2c5895 +STM32FLASH_SITE = git://git.code.sf.net/p/stm32flash/code +STM32FLASH_LICENSE = GPLv2+ +STM32FLASH_LICENSE_FILES = gpl-2.0.txt + +define STM32FLASH_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) +endef + +define STM32FLASH_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) DESTDIR="$(TARGET_DIR)" PREFIX="/usr" \ + -C $(@D) install +endef + +$(eval $(generic-package))