Skip to content

Commit 4d0cb7a

Browse files
committed
add example files
0 parents  commit 4d0cb7a

File tree

5 files changed

+126
-0
lines changed

5 files changed

+126
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ArduinoPackager"]
2+
path = ArduinoPackager
3+
url = https://github.com/ATtinyTeenageRiot/ArduinoPackager.git

ArduinoPackager

Submodule ArduinoPackager added at 587f9ff

packager

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
source ./ArduinoPackager/packager

packager.conf

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#
2+
# Arduino package hierarchy
3+
#
4+
# PACKAGE
5+
# |
6+
# |_______PLATFORMS:
7+
# *PLATFORM ver 0.1 depends on tools NAME and ver
8+
# *PLATFORM ver 0.2 depends on tools NAME and ver
9+
# |_______TOOLS:
10+
# *TOOLS NAME ver 0.1, download url, os, hash
11+
# *TOOLS NAME ver 0.2, download url, os, hash
12+
#
13+
# Requirement:
14+
# 1.create repo for arduino package (this will goes to REPO_SOURCE_GIT_URL)
15+
# |-> or fork and rename this template repo:
16+
# https://github.com/badgeek/ArduinoPackageAVR/
17+
# 2.create github pages repo for hosting released package ( RELEASE_REPO_GIT_URL )
18+
# |-> or fork and rename this template repo:
19+
# https://github.com/ATtinyTeenageRiot/ArduinoPackagePage/
20+
#
21+
# Then fill all config variables
22+
#
23+
24+
# 1.REPO SOURCE - pointed to AVR platform source code
25+
#---------------------------------------------
26+
REPO_SOURCE_GIT_URL="/Users/xcorex/Documents/Projects/AVR/TeenyRiot/platform"
27+
#REPO_SOURCE_GIT_URL="https://github.com/TeenyRiotDevel/TeenyRiotAVR.git"
28+
29+
# 2.RELEASE - destination github page repo (GitHub Pages)
30+
# package will be uploaded to this github repo at branch "gh-pages"
31+
#---------------------------------------------
32+
RELEASE_REPO_GIT_URL="https://github.com/TeenyRiot/TeenyRiot.git"
33+
RELEASE_PAGE_URL="http://teenyriot.github.io/TeenyRiot"
34+
RELEASE_INDEX_JSON_FILENAME="package_teenyriot_index.json"
35+
RELEASE_PREFIX="teenyriot-"
36+
37+
# 3.Board info - displayed on board manager
38+
#---------------------------------------------
39+
BOARD_NAME=TeenyRiot
40+
BOARD_ARCH=avr
41+
BOARD_CATEGORY=contributed
42+
BOARD_HELP_URL=https://github.com/TeenyRiot/TeenyRiot
43+
44+
# 4.Package info - displayed on arduino board manager
45+
#---------------------------------------------
46+
BOARD_PACKAGE_MAINTAINER=ATtinyTeenageRiot
47+
BOARD_PACKAGE_WEB_URL=https://github.com/TeenyRiot/TeenyRiot
48+
BOARD_PACKAGE_HELP_URL=https://github.com/TeenyRiot/TeenyRiot
49+
50+
51+
# 5.Package template - custom template for package
52+
# located at ./template/, leave it blank for default
53+
#---------------------------------------------
54+
BOARD_PACKAGE_TEMPLATE=package_template.json
55+
56+
# 6.Supported board list - displayed on the board manager
57+
#---------------------------------------------
58+
#ADD_BOARD_LIST 8BitMixtape
59+
ADD_BOARD_LIST TeenyRiot
60+
61+
# 7.Add board dependencies
62+
# add "dependency name" to "dependency group"
63+
#---------------------------------------------
64+
# dependency group dependency name version
65+
ADD_DEPENDENCIES basic_dependencies micronucleus 2.0a4
66+
67+
# 8.Add release version here..
68+
# example:
69+
# add release #ver #commit #dependencies group #platform custom template
70+
# associate this release with dependency group leave it blank for default
71+
# ADD_RELEASE 0.0.1 57d899c6 basic_dependencies customtemplate
72+
#---------------------------------------------------------------------------------------------------------------
73+
ADD_RELEASE 0.0.1 57d899c6 basic_dependencies

template/package_template.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"packages": [{
3+
"about" : "ok",
4+
"name": "${BOARD_PACKAGE_NAME}",
5+
"maintainer": "${BOARD_PACKAGE_MAINTAINER}",
6+
"websiteURL": "${BOARD_PACKAGE_WEB_URL}",
7+
"email": "${BOARD_PACKAGE_MAINTAINER_EMAIL}",
8+
"help": {
9+
"online": "${BOARD_PACKAGE_HELP_URL}"
10+
},
11+
"platforms": [
12+
${_platforms}
13+
],
14+
"tools": [{
15+
"name": "micronucleus",
16+
"version": "2.0a4",
17+
"systems": [{
18+
"host": "x86_64-apple-darwin",
19+
"archiveFileName": "micronucleus-2.0a4-osx.tar.gz",
20+
"url": "https://teenyriot.github.io/TeenyRiot/tools/micronucleus-2.0a4-osx.tar.gz",
21+
"checksum": "SHA-256:B5EB0C7B251CD88F4816186BB931855834141E71A28D90FB9E46788E483AA421",
22+
"size": "51203"
23+
}, {
24+
"host": "i686-mingw32",
25+
"archiveFileName": "micronucleus-2.0a4-win.zip",
26+
"url": "https://teenyriot.github.io/TeenyRiot/tools/micronucleus-2.0a4-win.zip",
27+
"checksum": "SHA-256:7738d2a2a46a13771ac567ca3797a4867bcb802e7ca12e41941448645b035c6c",
28+
"size": "1712001"
29+
}, {
30+
"host": "i686-linux-gnu",
31+
"archiveFileName": "micronucleus-2.0a4-linux32.tar.gz",
32+
"url": "https://teenyriot.github.io/TeenyRiot/tools/micronucleus-2.0a4-linux32.tar.gz",
33+
"checksum": "SHA-256:0D4286388EED28D1ECB29AFE81253F24F54D4F0A5C1B2C17507EABD504C595F8",
34+
"size": "21909"
35+
}, {
36+
"host": "x86_64-linux-gnu",
37+
"archiveFileName": "micronucleus-2.0a4-linux64.tar.gz",
38+
"url": "https://teenyriot.github.io/TeenyRiot/tools/micronucleus-2.0a4-linux64.tar.gz",
39+
"checksum": "SHA-256:1f545c0bb60e85a604901c2d7044772ac91776594c209c571dfedad4a70195b8",
40+
"size": "22874"
41+
}
42+
43+
]
44+
}]
45+
}]
46+
}

0 commit comments

Comments
 (0)