Skip to content
Snippets Groups Projects
Commit 190e2b4b authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

pkg: libcoap: adapt to use pkg.mk

parent b69941f3
No related branches found
No related tags found
No related merge requests found
PKG_NAME=libcoap PKG_NAME=libcoap
PKG_URL=https://github.com/obgm/libcoap PKG_URL=https://github.com/obgm/libcoap
PKG_VERSION=ef41ce5d02d64cec0751882ae8fd95f6c32bc018 PKG_VERSION=ef41ce5d02d64cec0751882ae8fd95f6c32bc018
PKG_DIR=$(CURDIR)/$(PKG_NAME)
ifneq ($(RIOTBASE),) ifneq ($(RIOTBASE),)
INCLUDES += -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/sys/net/include \ INCLUDES += -I$(RIOTBASE)/sys/include -I$(RIOTBASE)/sys/net/include \
-I$(RIOTBASE)/sys/posix/include -I$(RIOTBASE)/sys/posix/pnet/include -I$(RIOTBASE)/sys/posix/include -I$(RIOTBASE)/sys/posix/pnet/include
endif endif
.PHONY: all clean patch reset .PHONY: all
all: patch all: download
"$(MAKE)" -C $(PKG_DIR) "$(MAKE)" -C $(PKG_BUILDDIR)
patch: $(PKG_DIR)/Makefile include $(RIOTBASE)/pkg/pkg.mk
$(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config
cd "$(PKG_DIR)" && git am --ignore-whitespace "$(CURDIR)"/*.patch
$(PKG_DIR)/.git/config:
test -d "$(PKG_DIR)" || $(GITCACHE) clone "$(PKG_URL)" "$(PKG_VERSION)" "$(PKG_DIR)"
clean::
@echo "Cleaning up libcoap 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
INCLUDES += -I$(RIOTPKG)/libcoap/libcoap \ INCLUDES += -I$(BINDIR)/pkg/libcoap \
-I$(RIOTBASE)/sys/posix/include \ -I$(RIOTBASE)/sys/posix/include \
-I$(RIOTBASE)/sys/net/include -I$(RIOTBASE)/sys/net/include
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment