diff --git a/dbus/Makefile b/dbus/Makefile index 92eed7c..312e07a 100644 --- a/dbus/Makefile +++ b/dbus/Makefile @@ -161,6 +161,6 @@ BIN := $(APPDIR)/staging/libtelephony.a endif WASM_INITIAL_MEMORY = 131072 -WASM_BUILD = n +WASM_BUILD = both include $(APPDIR)/Application.mk diff --git a/glib/Makefile b/glib/Makefile index e837c54..75aa15c 100644 --- a/glib/Makefile +++ b/glib/Makefile @@ -42,6 +42,6 @@ ifneq ($(NOEXPORTSRCS),) BIN := $(APPDIR)/staging/libtelephony.a endif -WASM_BUILD = y +WASM_BUILD = both include $(APPDIR)/Application.mk diff --git a/ofono/Kconfig b/ofono/Kconfig index 09ab3cd..efae028 100644 --- a/ofono/Kconfig +++ b/ofono/Kconfig @@ -65,6 +65,13 @@ config OFONO_PLUGIN_DIR ---help--- Directory for the loading plugins. +config OFONO_WASM + bool "Compile to Wasm" + default n + ---help--- + Compile ofono to Wasm module instead of builitn app, + only available if any wasm runtime eanbled. + config OFONO_DATA_LOG_OVER_MIWEAR bool "support data log over miwear" default n diff --git a/ofono/Makefile b/ofono/Makefile index 69ee58d..c9789a1 100644 --- a/ofono/Makefile +++ b/ofono/Makefile @@ -133,7 +133,9 @@ clean:: endif +ifneq ($(CONFIG_OFONO_WASM),) WASM_INITIAL_MEMORY = 327680 -WASM_BUILD = n +WASM_BUILD = y +endif include $(APPDIR)/Application.mk