mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Update libcoap
This commit is contained in:
parent
2de9619f21
commit
24b63bd9f0
@ -1,3 +1,9 @@
|
||||
ifneq (,$(filter libcoap,$(USEPKG)))
|
||||
ifeq (,$(filter pnet,$(USEMODULE)))
|
||||
USEMODULE += pnet
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter pnet,$(USEMODULE)))
|
||||
ifeq (,$(filter posix,$(USEMODULE)))
|
||||
USEMODULE += posix
|
||||
|
@ -4,6 +4,7 @@ UNDEF += $(BINDIR)startup.o
|
||||
USEMODULE += cpu core sys
|
||||
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
|
||||
ED = $(USEMODULE:%=-DMODULE_%)
|
||||
ED += $(USEPKG:%=-DMODULE_%)
|
||||
EXTDEFINES = $(shell echo $(ED)|tr 'a-z' 'A-Z')
|
||||
BL=$(USEMODULE:%= $(BINDIR)%.a)
|
||||
|
||||
|
BIN
pkg/libcoap/0001-Add-RIOT-Makefile.patch
Normal file
BIN
pkg/libcoap/0001-Add-RIOT-Makefile.patch
Normal file
Binary file not shown.
BIN
pkg/libcoap/0002-Add-config.h.patch
Normal file
BIN
pkg/libcoap/0002-Add-config.h.patch
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
||||
PKG_NAME=libcoap
|
||||
PKG_URL=http://git.code.sf.net/p/libcoap/code
|
||||
PKG_VERSION=89acaa6775ca3a4aedea510557e6b9c0c01fa5db
|
||||
PKG_VERSION=ef41ce5d02d64cec0751882ae8fd95f6c32bc018
|
||||
|
||||
ifneq ($(RIOTBOARD),)
|
||||
include $(RIOTBOARD)/$(BOARD)/Makefile.include
|
||||
@ -19,7 +19,7 @@ all: patch
|
||||
patch: $(CURDIR)/$(PKG_NAME)/Makefile
|
||||
|
||||
$(CURDIR)/$(PKG_NAME)/Makefile: $(CURDIR)/$(PKG_NAME)
|
||||
cd $< && git apply ../patch.txt
|
||||
cd "$<" && git am --ignore-whitespace $(CURDIR)/*.patch || true
|
||||
|
||||
$(CURDIR)/$(PKG_NAME)/:
|
||||
git clone $(PKG_URL) $@ && \
|
||||
|
Loading…
Reference in New Issue
Block a user