diff --git a/libs/libupm/Makefile b/libs/libupm/Makefile index 7a2b8a2d2..7d37d583e 100644 --- a/libs/libupm/Makefile +++ b/libs/libupm/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libupm PKG_VERSION:=2.0.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/intel-iot-devkit/upm/tar.gz/v$(PKG_VERSION)? diff --git a/libs/libupm/patches/005-support_v12.patch b/libs/libupm/patches/005-support_v12.patch new file mode 100644 index 000000000..c9d9c668e --- /dev/null +++ b/libs/libupm/patches/005-support_v12.patch @@ -0,0 +1,11 @@ +--- a/src/carrays_uint32_t.i ++++ b/src/carrays_uint32_t.i +@@ -24,7 +24,7 @@ + %typemap(in) uint32_t { + int ecode2 = 0 ; + if (($input)->IsInt32()) +- $1 = ($input)->Uint32Value(); ++ $1 = ($input)->Uint32Value(SWIGV8_CURRENT_CONTEXT()).FromJust(); + else + SWIG_exception_fail(SWIG_ArgError(ecode2), "failed to convert uint32"); + }