stm32flash-0.3.recipe revision f561efbc
1SUMMARY="Cross platform flash program for the STM32 bootloader"
2DESCRIPTION="Open source flash program for the STM32 ARM processors using \
3ST serial bootloader.
4
5* device identification
6* write to flash/ram
7* read from flash/ram
8* auto-detect Intel HEX or raw binary input format with option to force binary
9* flash from binary file
10* save flash to binary file
11* verify & retry up to N times on failed writes
12* start execution at specified address
13* software reset the device when finished if -g not specified
14* resume already initialized connection (for when reset fails)
15"
16HOMEPAGE="http://code.google.com/p/stm32flash/"
17REVISION="1"
18ARCHITECTURES=""
19if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
20	# x86_gcc2 is fine as primary target architecture as long as we're building
21	# for a different secondary architecture.
22	ARCHITECTURES="$ARCHITECTURES x86_gcc2"
23fi
24SECONDARY_ARCHITECTURES="x86"
25COPYRIGHT="
26	Geoffrey McRae
27	2012-2014 Tormod Volden
28	"
29LICENSE="GNU GPL v2"
30
31SOURCE_URI="https://releases.stm32flash.googlecode.com/git/stm32flash-0.3.tar.gz"
32CHECKSUM_SHA256="8c9da430c6aca2cb711c90a1bd6e38d7169f73f9baf6cbf11234f1f8c444f47f"
33SOURCE_DIR="stm32flash"
34
35PROVIDES="
36	stm32flash$secondaryArchSuffix = $portVersion
37	cmd:stm32flash$secondaryArchSuffix = $portVersion
38	"
39REQUIRES="
40	haiku$secondaryArchSuffix
41	"
42BUILD_PREREQUIRES="
43	haiku${secondaryArchSuffix}_devel
44	cmd:gcc$secondaryArchSuffix
45	cmd:make
46	"
47
48BUILD()
49{
50	make $jobArgs
51}
52
53INSTALL()
54{
55	mkdir -p $binDir
56	cp stm32flash $binDir
57	mkdir -p $manDir/man1
58	cp stm32flash.1 $manDir/man1
59}
60