diff mbox series

build: Generate and install provision.db

Message ID 20240201202350.951327-1-denkenz@gmail.com (mailing list archive)
State Accepted
Commit 378b94a12adc688b3e91cf1d65a82e58503250d6
Headers show
Series build: Generate and install provision.db | expand

Commit Message

Denis Kenzior Feb. 1, 2024, 8:23 p.m. UTC
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(-)

Comments

patchwork-bot+ofono@kernel.org Feb. 1, 2024, 9:40 p.m. UTC | #1
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!
diff mbox series

Patch

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)