From 4e00972c1d5840e6567f6175e000f1f5d455dbb9 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Tue, 11 Sep 2018 22:20:07 +0200 Subject: [PATCH] Add sdcc for PIC --- satellites/gputils.sat | 14 ++++++++++++++ satellites/pk2cmd.sat | 31 +++++++++++++++++++++++++++++++ satellites/sdcc.sat | 17 +++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 satellites/gputils.sat create mode 100644 satellites/pk2cmd.sat create mode 100644 satellites/sdcc.sat diff --git a/satellites/gputils.sat b/satellites/gputils.sat new file mode 100644 index 0000000..145a55d --- /dev/null +++ b/satellites/gputils.sat @@ -0,0 +1,14 @@ +import 'compile/configure' + +name=gputils +majver=1.5.0 +version=$majver-1 + +dlextract "https://sourceforge.net/projects/$name/files/$name/$majver/$name-$version.tar.bz2" \ + '1fddfcba61c442d1e51bb0823dd6c34a' +_ + +cd "$name-$majver" +compile_configure + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: diff --git a/satellites/pk2cmd.sat b/satellites/pk2cmd.sat new file mode 100644 index 0000000..168736a --- /dev/null +++ b/satellites/pk2cmd.sat @@ -0,0 +1,31 @@ +import 'compile/configure' + +name=pk2cmd +version_pk2cmd=1.21-rc1 +version_devicefile=1.63.148 +version=${version_pk2cmd}_${version_devicefile} + +download "http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit2_PK2CMD_WIN32_SourceV1-21_RC1.zip" \ + '6f93ede97be484ab7859626a9156a5d6' +download "http://www.microchip.com/forums/download.axd?file=0;749972" \ + '3983ce4f45992318c4f0037c8d1acf9f' \ + "PK2DeviceFile_v$version_devicefile.zip" \ + 'curl -# -L -A firefox -o {dst} {src}' +extrafile "$name-$version_pk2cmd-paths.patch" +_ + +extract "PICkit2_PK2CMD_WIN32_SourceV1-21_RC1.zip" '' \ + 'unzip -qd {dst} {src}' +extract "PK2DeviceFile_v$version_devicefile.zip" '' \ + 'unzip -qd {dst} {src}' + +sed -i -e "s/%DATA%/$(safe_sed "/$dir_prefix/$dir_data/$name")/" "$name-$version_pk2cmd-paths.patch" + +cd pk2cmd/pk2cmd +patch -p0 -i "../../$name-$version_pk2cmd-paths.patch" +make linux + +install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" "$name" +install -Dm644 -t "$dir_install/$dir_prefix/$dir_data/$name" ../../PK2DeviceFile.dat ../release/PK2V023200.hex + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: diff --git a/satellites/sdcc.sat b/satellites/sdcc.sat new file mode 100644 index 0000000..a336edc --- /dev/null +++ b/satellites/sdcc.sat @@ -0,0 +1,17 @@ +import 'compile/configure' + +name=sdcc +version=3.7.0 + +dlextract "https://sourceforge.net/projects/$name/files/$name/$version/$name-src-$version.tar.bz2" \ + '76cc85d7ff27c46b930d309ea940a02f' +_ + +cd "$name" +compile_configure -- --without-ccache +rm -rf "$dir_install/$dir_prefix/$dir_data/$name"/lib/src/pic16/*/.deps +rm -rf "$dir_install/$dir_prefix/$dir_data/$name"/non-free/lib/src/pic16/*/.deps +find "$dir_install/$dir_prefix/$dir_data/$name/lib/src" -empty -delete +find "$dir_install/$dir_prefix/$dir_data/$name/non-free/lib/src" -empty -delete + +# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: