Skip to content

Commit ce15dd4

Browse files
committed
fix build infra for the preonic
1 parent 98ce30f commit ce15dd4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Keyboardio/Preonic

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../lib/Kaleidoscope/plugins/Kaleidoscope-Hardware-Keyboardio-Preonic/examples/Devices/Keyboardio/Preonic/

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,14 @@ ${BOARDS}: %: %@build
4242

4343
%@build: BUILDDIR := $(shell mktemp -d)
4444
%@build:
45-
echo "* Building $*"
45+
echo "* Building $* into ${BUILDDIR}"
4646
${MAKE} -s -C $* compile OUTPUT_PATH=${BUILDDIR} \
4747
LOCAL_CFLAGS="-DKALEIDOSCOPE_FIRMWARE_VERSION=\\\"${EMBEDDED_VERSION}\\\""
4848
install -d output/$*
49-
if [ -e ${BUILDDIR}/*-latest.bin ]; then \
49+
ls ${BUILDDIR}
50+
if [ -e ${BUILDDIR}/Preonic.ino.zip ]; then \
51+
cp -L ${BUILDDIR}/Preonic.ino.zip output/$*/default.zip; \
52+
elif [ -e ${BUILDDIR}/*-latest.bin ]; then \
5053
cp -L ${BUILDDIR}/*-latest.bin output/$*/default.bin; \
5154
else \
5255
cp -L ${BUILDDIR}/*-latest.hex output/$*/default.hex; \

0 commit comments

Comments
 (0)