Skip to contentSkip to conversation

buildtools: enable chkincs on Windows

PATCH Applied Dmitry Kozlyuk 3 participants 7 messages Oct 1, 2021 – Oct 24, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover buildtools: enable chkincs on Windows

Dmitry Kozlyuk (2):
eal/windows: do not install virt2phys header
buildtools: enable chkincs on Windows

 buildtools/chkincs/meson.build      | 5 -----
 lib/eal/windows/include/meson.build | 1 -
 2 files changed, 6 deletions(-)
Signature · 1 line
2.29.3
#1 lore raw

PATCH 1/2 eal/windows: do not install virt2phys header

The header was not intended to be a public one.
DPDK users should use rte_mem_virt2iova() to translate addresses. Other virt2phys users should use the header from the driver instead.

Fixes 2a5d547a4a9b ("eal/windows: implement basic memory management")
---
 lib/eal/windows/include/meson.build | 1 -
 1 file changed, 1 deletion(-)
lib/eal/windows/include/meson.build +0 -1
index b3534b025f..5fb1962ac7 100644
@@ -5,6 +5,5 @@ includes += include_directories('.')
 
 headers += files(
         'rte_os.h',
-        'rte_virt2phys.h',
         'rte_windows.h',
 )
Signature · 1 line
2.29.3
#2 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] eal/windows: do not install virt2phys header

01/10/2021 18:37, Dmitry Kozlyuk:

Quoted 7 lines

The header was not intended to be a public one.
DPDK users should use rte_mem_virt2iova() to translate addresses. Other virt2phys users should use the header from the driver instead.

Fixes 2a5d547a4a9b ("eal/windows: implement basic memory management")
Quoted 7 lines

---
headers += files(

         'rte_os.h',
-        'rte_virt2phys.h',
         'rte_windows.h',

)

We should plan to rename it.
Files starting with rte_ are supposed to be public.

#3 lore raw

Re: [dpdk-dev] [dpdk-stable] [PATCH 1/2] eal/windows: do not install virt2phys header

2021-10-11 21:07 (UTC+0200), Thomas Monjalon:

Quoted 16 lines

01/10/2021 18:37, Dmitry Kozlyuk:

Quoted 7 lines

The header was not intended to be a public one.
DPDK users should use rte_mem_virt2iova() to translate addresses. Other virt2phys users should use the header from the driver instead.

Fixes 2a5d547a4a9b ("eal/windows: implement basic memory management")
Quoted 7 lines

---
headers += files(

         'rte_os.h',
-        'rte_virt2phys.h',
         'rte_windows.h',

)

Quoted 2 lines

We should plan to rename it.
Files starting with rte_ are supposed to be public.

Is "rte_eal_" prefix OK for internal headers, like in "rte_eal_paging.h"? I want to put NetUIO interface to EAL, but also to use it from bus/pci.

#4 lore raw

PATCH 2/2 buildtools: enable chkincs on Windows

In reply to Dmitry Kozlyuk

Independent header compilation test (chkincs) was disabled on Windows. The comment stated that the shebang line in the generator script was not working. Meson 0.57.0, currently recommended for Windows, successfully parses that line and invokes the script. Remove the OS restriction as its reason no longer applies.

Fixes 05050ac4ce99 ("build: add header includes check")
---
 buildtools/chkincs/meson.build | 5 -----
 1 file changed, 5 deletions(-)
buildtools/chkincs/meson.build +0 -5
index 34dcd81ce1..5ffca89761 100644
@@ -6,11 +6,6 @@ if not get_option('check_includes')
     subdir_done()
 endif
 
-if is_windows
-    # for windows, the shebang line in the script won't work.
-    error('option "check_includes" is not supported on windows')
-endif
-
 gen_c_file_for_header = find_program('gen_c_file_for_header.py')
 gen_c_files = generator(gen_c_file_for_header,
         output: '@[email protected]',
Signature · 1 line
2.29.3
Acked-by on v1 2/2
#5 lore raw
Quoted 10 lines · Dmitry Kozlyuk

Independent header compilation test (chkincs) was disabled on Windows. The comment stated that the shebang line in the generator script was not working. Meson 0.57.0, currently recommended for Windows, successfully parses that line and invokes the script. Remove the OS restriction as its reason no longer applies.

Fixes 05050ac4ce99 ("build: add header includes check")
#6 lore raw
In reply to Dmitry Kozlyuk

01/10/2021 18:37, Dmitry Kozlyuk:

Quoted 3 lines

Dmitry Kozlyuk (2):
eal/windows: do not install virt2phys header
buildtools: enable chkincs on Windows

Applied, thanks.