* [PATCH v1] framework: Add makefile deprecation warning
@ 2022-01-26 19:52 ohilyard
2022-02-09 1:53 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: ohilyard @ 2022-01-26 19:52 UTC (permalink / raw)
To: dts; +Cc: lijuan.tu, Owen Hilyard
From: Owen Hilyard <ohilyard@iol.unh.edu>
Adds the following deprecation warning to DTS when running a makefile
build:
Makefile builds have been deprecated and will be removed in the next release.
Please switch to using meson builds.
Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
---
framework/dts.py | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/framework/dts.py b/framework/dts.py
index 892aa1fc..1baddb84 100644
--- a/framework/dts.py
+++ b/framework/dts.py
@@ -35,6 +35,7 @@ import copy # copy module for duplicate variable
import imp
import inspect # load attribute
import json # json format
+import logging
import os # operation system module
import re # regular expressions module
import signal # signal module for debug mode
@@ -77,7 +78,7 @@ stats_report = None
log_handler = None
-def dts_parse_param(config, section):
+def dts_parse_param(config, section, log_handler):
"""
Parse execution file parameters.
"""
@@ -94,11 +95,16 @@ def dts_parse_param(config, section):
parameters = config.get(section, 'parameters').split(':')
drivername = config.get(section, 'drivername').split('=')[-1]
- # get the build method, default is makefile
+ # get the build method, default is meson
try:
buildtype = config.get(section, 'build_type').split('=')[-1]
except:
buildtype = 'meson'
+
+ if buildtype == 'makefile':
+ log_handler.warning("Makefile builds have been deprecated and will be removed in the next release.")
+ log_handler.warning("Please switch to using meson builds.")
+
buildtype = buildtype.lower()
settings.save_global_setting(settings.HOST_BUILD_TYPE_SETTING, buildtype)
@@ -588,7 +594,7 @@ def run_all(config_file, pkgName, git, patch, skip_setup,
# for all Execution sections
for section in config.sections():
crbInsts = list()
- dts_parse_param(config, section)
+ dts_parse_param(config, section, log_handler)
# verify if the delimiter is good if the lists are vertical
duts, targets, test_suites = dts_parse_config(config, section)
--
2.30.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: [PATCH v1] framework: Add makefile deprecation warning
2022-01-26 19:52 [PATCH v1] framework: Add makefile deprecation warning ohilyard
@ 2022-02-09 1:53 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2022-02-09 1:53 UTC (permalink / raw)
To: ohilyard, dts
> -----Original Message-----
> From: ohilyard@iol.unh.edu <ohilyard@iol.unh.edu>
> Sent: 2022年1月27日 3:52
> To: dts@dpdk.org
> Cc: Tu, Lijuan <lijuan.tu@intel.com>; Owen Hilyard <ohilyard@iol.unh.edu>
> Subject: [PATCH v1] framework: Add makefile deprecation warning
>
> From: Owen Hilyard <ohilyard@iol.unh.edu>
>
> Adds the following deprecation warning to DTS when running a makefile
> build:
>
> Makefile builds have been deprecated and will be removed in the next release.
> Please switch to using meson builds.
>
> Signed-off-by: Owen Hilyard <ohilyard@iol.unh.edu>
Applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-09 1:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26 19:52 [PATCH v1] framework: Add makefile deprecation warning ohilyard
2022-02-09 1:53 ` Tu, Lijuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).