Skip to content

Commit

Permalink
RIOT: Pick up any uncommited changes when doing a local RIOT build
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdeep1 committed Jun 29, 2024
1 parent 8157d04 commit 15576ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion examples/riot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ pkg:
git pull --unshallow > /dev/null 2>&1 ; \
if [ ! -z "$${RIOT_HASH}" ] ; then \
(cd pkg_libcoap/patches ; git format-patch -n $${RIOT_HASH}) ; \
fi \
fi ; \
COMMIT_FILE=pkg_libcoap/patches/9999-Not-Yet-Commited.patch ; \
WC=`git diff HEAD -p --stat | wc -l` ; \
if [ "$${WC}" != 0 ] ; then \
echo "From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001" > $${COMMIT_FILE}} ; \
echo "From: Internal <test@test.com>" >> $${COMMIT_FILE}} ; \
echo "Date: `date`" >> $${COMMIT_FILE}} ; \
echo "Subject: [PATCH 1/1] RIOT: To commit" >> $${COMMIT_FILE}} ; \
echo "" >> $${COMMIT_FILE}} ; \
echo "---" >> $${COMMIT_FILE}} ; \
git diff HEAD -p --stat >> $${COMMIT_FILE}} ; \
echo "9999-Not-Yet-Commited.patch" ; \
fi ; \
fi
rm -rf RIOT/pkg/libcoap && mkdir RIOT/pkg/libcoap
cd pkg_libcoap && cp -r * ../RIOT/pkg/libcoap
Expand Down
2 changes: 1 addition & 1 deletion examples/riot/pkg_libcoap/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PKG_NAME=libcoap
PKG_URL=https://github.com/obgm/libcoap
PKG_VERSION=0392d022173516b6d33a95b8285ba3cbc8767bdf
PKG_VERSION=319ffb02c11c5010b26934ba55f50a25ac3b6051
PKG_LICENSE=BSD-2-Clause

LIBCOAP_BUILD_DIR=$(BINDIR)/pkg/$(PKG_NAME)
Expand Down

0 comments on commit 15576ed

Please sign in to comment.