Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • reform/reform
  • artfwo/reform
  • technomancy/reform
  • Chartreuse/reform
  • robey/reform
  • m0ppers/reform
  • djdeath/reform
  • jacqueline/reform
  • rufform/reform
  • devkev/reform
  • vkoskiv/reform
  • NanoCodeBug/reform-lpc-fw-spi
  • cinap_lenrek/reform
  • jcstaudt/reform
  • sigrid/reform
  • josch/reform
  • jackhumbert/reform
  • paul/reform
  • eibachd/reform
  • sevan/reform
  • mauro/reform
  • omasanori/reform
  • hramrach/reform
  • gustav/reform
24 results
Show changes
Commits on Source (244)
Showing
with 95 additions and 1 deletion
...@@ -18,4 +18,13 @@ _autosave* ...@@ -18,4 +18,13 @@ _autosave*
a.out a.out
bin bin
update-mntbom.sh update-mntbom.sh
*-rescue.kicad_sym
*-rescue.lib
*-cache.lib
*.kicad_prl
*.net
*.zip
sym-lib-table
fp-info-cache
fp-lib-table
*.lck
image: debian:unstable-slim
build:
artifacts:
paths:
- reform2-keyboard-fw/keyboard-2.hex
- reform2-keyboard-fw/keyboard-2-standalone.hex
- reform2-keyboard-fw/keyboard-2_US.hex
- reform2-keyboard-fw/keyboard-2_US-standalone.hex
- reform2-keyboard-fw/keyboard-3.hex
- reform2-keyboard-fw/keyboard-3-standalone.hex
- reform2-keyboard-fw/keyboard-3_US.hex
- reform2-keyboard-fw/keyboard-3_US-standalone.hex
- reform2-keyboard-fw/keyboard-3_NEO2.hex
- reform2-keyboard-fw/keyboard-3_NEO2-standalone.hex
- reform2-keyboard4-fw/reform2-keyboard4-fw-standalone-intl.uf2
- reform2-keyboard4-fw/reform2-keyboard4-fw-standalone-us.uf2
- reform2-keyboard4-fw/reform2-keyboard4-fw-laptop-intl.uf2
- reform2-keyboard4-fw/reform2-keyboard4-fw-laptop-us.uf2
- reform2-trackball-fw/Mouse.hex
- reform2-trackpad-fw/Mouse.hex
- reform2-trackball2-fw/build/reform2-trackball2-fw.uf2
- reform2-lpc-fw/firmware-20_R3.bin
- reform2-lpc-fw/firmware-25_R2.bin
script: |
set -x
apt update
apt-get --no-install-recommends -y install ca-certificates git build-essential avr-libc gcc-avr gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib libusb-1.0-0-dev cmake python3 picotool
# install pico-sdk
git clone --branch 1.5.1 --depth 1 https://github.com/raspberrypi/pico-sdk || true
# Need submodules as otherwise USB will silently fail.
(cd pico-sdk && git checkout 1.5.1 && git submodule update --init)
git clone --branch sdk-1.5.1 --depth 1 https://github.com/raspberrypi/pico-extras || true
(cd pico-extras && git checkout sdk-1.5.1)
# use the timestamp of the latest git commit to set reproducible S_D_E
if [ -z ${SOURCE_DATE_EPOCH:+x} ] && git -C . rev-parse 2>/dev/null; then
SOURCE_DATE_EPOCH=$(git log -1 --format=%ct)
fi
export SOURCE_DATE_EPOCH
# check if the current commit is tagged or otherwise use the git hash
if git describe >/dev/null 2>&1 && [ "$(git describe --abbrev=0)" = "$(git describe)" ]; then
VERSION="$(git describe --abbrev=0 | tr -d -)"
else
VERSION="g$(git rev-parse --short=7 HEAD)"
fi
for variant in 2 2_US 3 3_US 3_NEO2; do
make -C reform2-keyboard-fw REFORM_KBD_OPTIONS="-DKBD_VARIANT_$variant -DKBD_FW_VERSION=\\\"$VERSION\\\""
mv reform2-keyboard-fw/keyboard.hex reform2-keyboard-fw/keyboard-$variant.hex
make -C reform2-keyboard-fw clean
make -C reform2-keyboard-fw REFORM_KBD_OPTIONS="-DKBD_VARIANT_$variant -DKBD_MODE_STANDALONE -DKBD_FW_VERSION=\\\"$VERSION\\\""
mv reform2-keyboard-fw/keyboard.hex reform2-keyboard-fw/keyboard-$variant-standalone.hex
make -C reform2-keyboard-fw clean
done
cd reform2-keyboard4-fw
./build.sh -DKBD_MODE=KBD_MODE_STANDALONE -DKBD_VARIANT=KBD_VARIANT_INTL -DKBD_HID_FW_REV=\"$VERSION\"
mv build/reform2-keyboard4-fw.uf2 reform2-keyboard4-fw-standalone-intl.uf2
./build.sh -DKBD_MODE=KBD_MODE_STANDALONE -DKBD_VARIANT=KBD_VARIANT_US -DKBD_HID_FW_REV=\"$VERSION\"
mv build/reform2-keyboard4-fw.uf2 reform2-keyboard4-fw-standalone-us.uf2
./build.sh -DKBD_MODE=KBD_MODE_LAPTOP -DKBD_VARIANT=KBD_VARIANT_INTL -DKBD_FW_VERSION=\"$VERSION\"
mv build/reform2-keyboard4-fw.uf2 reform2-keyboard4-fw-laptop-intl.uf2
./build.sh -DKBD_MODE=KBD_MODE_LAPTOP -DKBD_VARIANT=KBD_VARIANT_US -DKBD_FW_VERSION=\"$VERSION\"
mv build/reform2-keyboard4-fw.uf2 reform2-keyboard4-fw-laptop-us.uf2
cd ..
make -C reform2-trackball-fw
make -C reform2-trackpad-fw
cd reform2-trackball2-fw
./build.sh
cd ..
make -C reform2-lpc-fw lpcrc
for rev in 20_R3 25_R2; do
make -C reform2-lpc-fw REFORM_LPC_OPTIONS="-DREFORM_MOTHERBOARD_REV=REFORM_MBREV_$rev -DFW_STRING3=\\\"$VERSION\\\""
mv reform2-lpc-fw/bin/firmware.bin reform2-lpc-fw/firmware-$rev.bin
make -C reform2-lpc-fw clean
done
md5sum reform2-keyboard-fw/keyboard-*.hex reform2-lpc-fw/firmware-*.bin
# assure that the latest git tag is reflected in the code
if git describe >/dev/null 2>&1; then
grep --quiet "# define KBD_FW_VERSION \"$(git describe --always --tags --abbrev=0 | tr -d -)\"" reform2-keyboard-fw/constants.h
grep --quiet "# define FW_STRING3 \"$(git describe --always --tags --abbrev=0 | tr -d -)\"" reform2-lpc-fw/src/boards/reform2/board_reform2.c
fi
# assure that the latest git tag is reflected in top CHANGELOG.md
if git describe >/dev/null 2>&1; then
head -1 reform2-keyboard-fw/CHANGELOG.md | grep --quiet "^### $(git describe --always --tags --abbrev=0)"
head -1 reform2-lpc-fw/CHANGELOG.md | grep --quiet "^### $(git describe --always --tags --abbrev=0)"
fi