2015-08-12 14:56:16 +02:00
|
|
|
PKG_NAME=wakaama
|
2017-01-08 21:55:47 +01:00
|
|
|
PKG_URL=https://github.com/eclipse/wakaama.git
|
2019-01-09 14:47:36 +01:00
|
|
|
PKG_VERSION=da74b3c91570b9716fbb424e90935806b2b29814
|
2017-01-08 21:55:47 +01:00
|
|
|
PKG_LICENSE=EDL-1.0,EPL-1.0
|
2015-08-12 14:56:16 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
include $(RIOTBASE)/pkg/pkg.mk
|
2015-08-12 14:56:16 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
all:
|
2019-11-29 17:54:08 +01:00
|
|
|
"$(MAKE)" -C $(PKG_BUILDDIR)
|
2015-08-12 14:56:16 +02:00
|
|
|
|
2019-10-02 12:47:02 +02:00
|
|
|
$(PKG_PREPARED): $(PKG_BUILDDIR)/copied
|
|
|
|
$(PKG_BUILDDIR)/copied: $(PKG_PATCHED) FORCE
|
2019-11-29 17:54:08 +01:00
|
|
|
mkdir -p "$(PKG_BUILDDIR)"
|
|
|
|
# copy the Wakaama core files
|
|
|
|
cp $(PKG_BUILDDIR)/core/*.c $(PKG_BUILDDIR)/core/*.h $(PKG_BUILDDIR)
|
|
|
|
# copy the coap implementation from Wakaama
|
|
|
|
cp $(PKG_BUILDDIR)/core/er-coap-13/*.c $(PKG_BUILDDIR)/core/er-coap-13/*.h $(PKG_BUILDDIR)
|
|
|
|
# copy the mandatory objects, implemented on Wakaama examples
|
|
|
|
cp $(PKG_BUILDDIR)/examples/client/object_server.c $(PKG_BUILDDIR)
|
|
|
|
cp $(PKG_BUILDDIR)/examples/client/object_security.c $(PKG_BUILDDIR)
|
|
|
|
cp $(PKG_BUILDDIR)/examples/client/object_access_control.c $(PKG_BUILDDIR)
|
2015-08-12 14:56:16 +02:00
|
|
|
|
2019-11-29 17:54:08 +01:00
|
|
|
echo 'MODULE:=wakaama' > $(PKG_BUILDDIR)/Makefile
|
2019-10-02 12:47:02 +02:00
|
|
|
echo 'include $$(RIOTBASE)/Makefile.base' >> $(PKG_BUILDDIR)/Makefile
|