forked from Optiboot/optiboot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of "release.sh" release-building script.
Also the board manager .json file (first attempt)
- Loading branch information
Showing
3 changed files
with
205 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
optiboot/package_optiboot_optiboot-additional_index.json.TEMPLATE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"packages": [ | ||
{ | ||
"name": "Optiboot-additional", | ||
"maintainer": "westfw", | ||
"websiteURL": "https://github.com/optboot/optiboot", | ||
"email": "", | ||
"help": { | ||
"online": "" | ||
}, | ||
"platforms": [ | ||
{ | ||
"name": "Additional chips with optiboot", | ||
"architecture": "avr", | ||
"version": "6.2.0", | ||
"category": "Optiboot", | ||
"help": { | ||
"online": "" | ||
}, | ||
"url": "https://github.com/Optiboot/optiboot/raw/master/optiboot/optiboot.zip", | ||
"archiveFileName": "optiboot.zip", | ||
"checksum": "SHA-256:ab00d9fcf91fe1d81c4fb75058d6b3544d1981a3c95a45eb643e7f0830bbdfc7", | ||
"size": "14446", | ||
"boards": [ | ||
{"name": "Optiboot Bootloader"}, | ||
], | ||
"toolsDependencies": [ | ||
{ | ||
"packager": "arduino", | ||
"name": "avr-gcc", | ||
"version": "4.8.1-arduino5" | ||
}, | ||
{ | ||
"packager": "arduino", | ||
"name": "avrdude", | ||
"version": "6.0.1-arduino5" | ||
} | ||
] | ||
}, | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#%/bin/bash | ||
|
||
# Build a "release" .zip file for Optiboot bootloader | ||
# Run from the build directory | ||
|
||
# Uncomment if you want a clean builds of specific files | ||
# make clean | ||
# make atmega328 | ||
# make atmega168 | ||
# make atmega8 | ||
|
||
rm -Rf /tmp/optiboot-release | ||
|
||
# | ||
# Create the 3rd-party hardware extension directory structure | ||
mkdir /tmp/optiboot-release | ||
mkdir /tmp/optiboot-release/Optiboot | ||
mkdir /tmp/optiboot-release/Optiboot/avr | ||
mkdir /tmp/optiboot-release/Optiboot/avr/bootloaders | ||
mkdir /tmp/optiboot-release/Optiboot/avr/bootloaders/optiboot | ||
cp ../../boards-1.6.txt /tmp/optiboot-release/Optiboot/avr/boards.txt | ||
# | ||
# Create platform.tx, because it contains the "group" name for the boards menu | ||
echo name=\[Optiboot $1\] > /tmp/optiboot-release/Optiboot/avr/platform.txt | ||
echo version=$1 >> /tmp/optiboot-release/Optiboot/avr/platform.txt | ||
|
||
# | ||
# Create a README file. | ||
echo This is an Optiboot version $1 \"Binary\" Release. > /tmp/optiboot-release/Optiboot/README.TXT | ||
echo >> /tmp/optiboot-release/Optiboot/README.TXT | ||
echo For Source code see http://github.com/Optiboot/optiboot >> /tmp/optiboot-release/Optiboot/README.TXT | ||
|
||
# | ||
# Copy over our "binaries." | ||
cp *.hex /tmp/optiboot-release/Optiboot/avr/bootloaders/optiboot | ||
|
||
# files we'd specifical exclude, if we weren't doing only .hex files. | ||
#rm /tmp/optiboot-release/Optiboot/avr/bootloaders/optiboot/*.lst | ||
#rm /tmp/optiboot-release/Optiboot/avr/bootloaders/optiboot/*~ | ||
#rm /tmp/optiboot-release/Optiboot/avr/bootloaders/optiboot/#* | ||
|
||
# | ||
# zip everything up. | ||
pushd /tmp/optiboot-release | ||
zip -r Optiboot.zip Optiboot | ||
popd | ||
|