|
|
e0018b |
From 6d0e543f8bf01219b793cf4d7a603d3dfd7844ed Mon Sep 17 00:00:00 2001
|
|
|
e0018b |
From: Dan Williams <dan.j.williams@intel.com>
|
|
|
e0018b |
Date: Thu, 28 Apr 2022 15:10:05 -0700
|
|
|
e0018b |
Subject: [PATCH 155/217] build: Move utility helpers to libutil.a
|
|
|
e0018b |
|
|
|
e0018b |
Stop listing util/json.c and util/log.c per command, just add them to
|
|
|
e0018b |
the common libutil.a object.
|
|
|
e0018b |
|
|
|
e0018b |
Link: https://lore.kernel.org/r/165118380572.1676208.16232543117821121022.stgit@dwillia2-desk3.amr.corp.intel.com
|
|
|
e0018b |
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
|
|
|
e0018b |
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
|
|
|
e0018b |
---
|
|
|
e0018b |
cxl/meson.build | 2 --
|
|
|
e0018b |
daxctl/meson.build | 1 -
|
|
|
e0018b |
ndctl/meson.build | 2 --
|
|
|
e0018b |
util/meson.build | 2 ++
|
|
|
e0018b |
4 files changed, 2 insertions(+), 5 deletions(-)
|
|
|
e0018b |
|
|
|
e0018b |
diff -up ndctl-71.1/cxl/meson.build.orig ndctl-71.1/cxl/meson.build
|
|
|
e0018b |
--- ndctl-71.1/cxl/meson.build.orig 2022-10-07 16:54:43.451540066 -0400
|
|
|
e0018b |
+++ ndctl-71.1/cxl/meson.build 2022-10-07 16:55:35.330716698 -0400
|
|
|
e0018b |
@@ -3,8 +3,6 @@ cxl_src = [
|
|
|
e0018b |
'list.c',
|
|
|
e0018b |
'port.c',
|
|
|
e0018b |
'memdev.c',
|
|
|
e0018b |
- '../util/json.c',
|
|
|
e0018b |
- '../util/log.c',
|
|
|
e0018b |
'json.c',
|
|
|
e0018b |
'filter.c',
|
|
|
e0018b |
]
|
|
|
e0018b |
diff -up ndctl-71.1/daxctl/meson.build.orig ndctl-71.1/daxctl/meson.build
|
|
|
e0018b |
--- ndctl-71.1/daxctl/meson.build.orig 2022-10-07 16:54:43.333539664 -0400
|
|
|
e0018b |
+++ ndctl-71.1/daxctl/meson.build 2022-10-07 16:55:35.330716698 -0400
|
|
|
e0018b |
@@ -4,7 +4,6 @@ daxctl_src = [
|
|
|
e0018b |
'list.c',
|
|
|
e0018b |
'migrate.c',
|
|
|
e0018b |
'device.c',
|
|
|
e0018b |
- '../util/json.c',
|
|
|
e0018b |
'json.c',
|
|
|
e0018b |
'filter.c',
|
|
|
e0018b |
]
|
|
|
e0018b |
diff -up ndctl-71.1/ndctl/meson.build.orig ndctl-71.1/ndctl/meson.build
|
|
|
e0018b |
--- ndctl-71.1/ndctl/meson.build.orig 2022-10-07 16:54:43.333539664 -0400
|
|
|
e0018b |
+++ ndctl-71.1/ndctl/meson.build 2022-10-07 16:55:35.330716698 -0400
|
|
|
e0018b |
@@ -6,11 +6,9 @@ ndctl_src = [
|
|
|
e0018b |
'check.c',
|
|
|
e0018b |
'region.c',
|
|
|
e0018b |
'dimm.c',
|
|
|
e0018b |
- '../util/log.c',
|
|
|
e0018b |
'../daxctl/filter.c',
|
|
|
e0018b |
'filter.c',
|
|
|
e0018b |
'list.c',
|
|
|
e0018b |
- '../util/json.c',
|
|
|
e0018b |
'../daxctl/json.c',
|
|
|
e0018b |
'json.c',
|
|
|
e0018b |
'json-smart.c',
|
|
|
e0018b |
diff -up ndctl-71.1/util/meson.build.orig ndctl-71.1/util/meson.build
|
|
|
e0018b |
--- ndctl-71.1/util/meson.build.orig 2022-10-07 16:54:43.334539667 -0400
|
|
|
e0018b |
+++ ndctl-71.1/util/meson.build 2022-10-07 16:55:35.330716698 -0400
|
|
|
e0018b |
@@ -2,6 +2,8 @@ util = static_library('util', [
|
|
|
e0018b |
'parse-options.c',
|
|
|
e0018b |
'usage.c',
|
|
|
e0018b |
'size.c',
|
|
|
e0018b |
+ 'json.c',
|
|
|
e0018b |
+ 'log.c',
|
|
|
e0018b |
'main.c',
|
|
|
e0018b |
'help.c',
|
|
|
e0018b |
'strbuf.c',
|