* [PATCH] build: Generate and install provision.db
@ 2024-02-01 20:23 Denis Kenzior
2024-02-01 21:40 ` patchwork-bot+ofono
0 siblings, 1 reply; 2+ messages in thread
From: Denis Kenzior @ 2024-02-01 20:23 UTC (permalink / raw)
To: ofono; +Cc: Denis Kenzior
Run provisiontool to generate the provisioning database in binary format
from the intermediate json format. The database will be installed in
pkgdata_DATA directory (typically /usr/share/ofono) when make install is
performed.
---
.gitignore | 1 +
Makefile.am | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.gitignore b/.gitignore
index 0cfe5283ec35..27184e16e42b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,6 +24,7 @@ stamp-h1
build-aux
autom4te.cache
ell
+provision.db
ofono.pc
include/ofono
diff --git a/Makefile.am b/Makefile.am
index 5221b1cca138..8517bc0309d1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -207,6 +207,11 @@ statedir = $(localstatedir)/lib/ofono
state_DATA =
endif
+provision.db: provision.json
+ $(AM_V_GEN)$(srcdir)/tools/provisiontool generate \
+ --infile $< --outfile $@
+pkgdata_DATA = provision.db
+
builtin_modules =
builtin_sources =
builtin_libadd =
@@ -748,7 +753,7 @@ src_ofonod_LDFLAGS = -Wl,--export-dynamic \
BUILT_SOURCES = $(local_headers) $(ell_built_sources) src/builtin.h
-CLEANFILES = $(BUILT_SOURCES) $(rules_DATA)
+CLEANFILES = $(BUILT_SOURCES) $(rules_DATA) provision.db
plugindir = $(pkglibdir)/plugins
@@ -901,7 +906,7 @@ test_SCRIPTS = $(test_scripts)
endif
EXTRA_DIST = src/genbuiltin plugins/ofono.rules plugins/ofono-speedup.rules \
- tools/provisiontool \
+ tools/provisiontool provision.json \
unit/test-provision.json \
$(doc_files) $(test_scripts)
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] build: Generate and install provision.db
2024-02-01 20:23 [PATCH] build: Generate and install provision.db Denis Kenzior
@ 2024-02-01 21:40 ` patchwork-bot+ofono
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+ofono @ 2024-02-01 21:40 UTC (permalink / raw)
To: Denis Kenzior; +Cc: ofono
Hello:
This patch was applied to ofono.git (master)
by Denis Kenzior <denkenz@gmail.com>:
On Thu, 1 Feb 2024 14:23:33 -0600 you wrote:
> Run provisiontool to generate the provisioning database in binary format
> from the intermediate json format. The database will be installed in
> pkgdata_DATA directory (typically /usr/share/ofono) when make install is
> performed.
> ---
> .gitignore | 1 +
> Makefile.am | 9 +++++++--
> 2 files changed, 8 insertions(+), 2 deletions(-)
Here is the summary with links:
- build: Generate and install provision.db
https://git.kernel.org/pub/scm/network/ofono/ofono.git/?id=378b94a12adc
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-01 21:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-01 20:23 [PATCH] build: Generate and install provision.db Denis Kenzior
2024-02-01 21:40 ` patchwork-bot+ofono
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox