X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=buildtools%2Fmap_to_win.py;h=aa1752cacd86a2f32f0a88dd6e78ec88a3bab8ea;hb=8050b61562723c531ad9d4736f5549050eba190e;hp=2990b586341c1c75e25d077d44827d66e628362d;hpb=309bf90bf99e1e3b41e2abfdfd0f15f8299034b8;p=dpdk.git diff --git a/buildtools/map_to_win.py b/buildtools/map_to_win.py index 2990b58634..aa1752cacd 100644 --- a/buildtools/map_to_win.py +++ b/buildtools/map_to_win.py @@ -1,14 +1,12 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2019 Intel Corporation -from __future__ import print_function import sys -from os.path import dirname, basename, join, exists def is_function_line(ln): - return ln.startswith('\t') and ln.endswith(';\n') and ":" not in ln + return ln.startswith('\t') and ln.endswith(';\n') and ":" not in ln and "# WINDOWS_NO_EXPORT" not in ln # MinGW keeps the original .map file but replaces per_lcore* to __emutls_v.per_lcore* def create_mingw_map_file(input_map, output_map): @@ -25,12 +23,6 @@ def main(args): create_mingw_map_file(args[1], args[2]) return 0 -# special case, allow override if an def file already exists alongside map file - override_file = join(dirname(args[1]), basename(args[2])) - if exists(override_file): - with open(override_file) as f_in: - functions = f_in.readlines() - # generate def file from map file. # This works taking indented lines only which end with a ";" and which don't # have a colon in them, i.e. the lines defining functions only.