mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
microcoap: initial import
This commit is contained in:
parent
fe076783ba
commit
d7c5eb650d
BIN
pkg/microcoap/0001-Remove-unneeded-.c-files.patch
Normal file
BIN
pkg/microcoap/0001-Remove-unneeded-.c-files.patch
Normal file
Binary file not shown.
BIN
pkg/microcoap/0002-Add-RIOT-Makefile.patch
Normal file
BIN
pkg/microcoap/0002-Add-RIOT-Makefile.patch
Normal file
Binary file not shown.
42
pkg/microcoap/Makefile
Normal file
42
pkg/microcoap/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
PKG_NAME=microcoap
|
||||
PKG_URL=git://github.com/1248/microcoap.git
|
||||
PKG_VERSION=9cb1dcda2182a8dca8483b230cda8b591a924c82
|
||||
PKG_DIR=$(CURDIR)/$(PKG_NAME)
|
||||
|
||||
ifneq ($(RIOTBOARD),)
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.include
|
||||
endif
|
||||
|
||||
ifneq ($(RIOTBASE),)
|
||||
INCLUDES += -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/sys/net/include \
|
||||
-I$(RIOTBASE)/sys/posix/include -I$(RIOTBASE)/sys/posix/pnet/include
|
||||
endif
|
||||
|
||||
.PHONY: all clean patch reset
|
||||
|
||||
all: patch
|
||||
"$(MAKE)" -C $(PKG_DIR)
|
||||
|
||||
patch: $(PKG_DIR)/Makefile
|
||||
|
||||
$(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config
|
||||
cd "$(PKG_DIR)" && git am --ignore-whitespace "$(CURDIR)"/*.patch
|
||||
|
||||
$(PKG_DIR)/.git/config:
|
||||
test -d "$(PKG_DIR)" || git clone "$(PKG_URL)" "$(PKG_DIR)"; \
|
||||
cd "$(PKG_DIR)" && git checkout -f "$(PKG_VERSION)"
|
||||
|
||||
clean::
|
||||
@echo "Cleaning up $(PKG_NAME) package..."
|
||||
@cd "$(PKG_DIR)" 2> /dev/null > /dev/null && \
|
||||
git clean -x -f && \
|
||||
git am --abort && \
|
||||
git reset --hard "$(PKG_VERSION)" && \
|
||||
$(MAKE) patch || true
|
||||
|
||||
|
||||
distclean::
|
||||
rm -rf "$(PKG_DIR)"
|
||||
|
||||
Makefile.include:
|
||||
@true
|
1
pkg/microcoap/Makefile.include
Normal file
1
pkg/microcoap/Makefile.include
Normal file
@ -0,0 +1 @@
|
||||
INCLUDES += -I$(RIOTBASE)/pkg/microcoap/microcoap
|
Loading…
Reference in New Issue
Block a user