From: Chris Johns <chr...@rtems.org> This patch installs the header in the same path as the libbsd header machine/rtems-version.h. These headers can be used to detect which network stack is installed. --- include/{rtems => machine}/rtems-net-legacy.h.in | 0 netlegacy.py | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename include/{rtems => machine}/rtems-net-legacy.h.in (100%)
diff --git a/include/rtems/rtems-net-legacy.h.in b/include/machine/rtems-net-legacy.h.in similarity index 100% rename from include/rtems/rtems-net-legacy.h.in rename to include/machine/rtems-net-legacy.h.in diff --git a/netlegacy.py b/netlegacy.py index 8533f4c..c1882e6 100644 --- a/netlegacy.py +++ b/netlegacy.py @@ -48,8 +48,8 @@ def version_header(bld): sed = 'sed ' for cfg in versions: sed += "-e 's/@%s@/%s/' " % (cfg, versions[cfg]) - bld(target='include/rtems/rtems-net-legacy.h', - source='include/rtems/rtems-net-legacy.h.in', + bld(target='include/machine/rtems-net-legacy.h', + source='include/machine/rtems-net-legacy.h.in', rule=sed + ' < ${SRC} > ${TGT}', update_outputs=True) @@ -214,7 +214,7 @@ def build(bld): os.path.join(bld.env.PREFIX, arch_inc_path, inc_dir, hname), header) bld.install_as( - os.path.join(bld.env.PREFIX, arch_inc_path, 'rtems', - 'rtems-net-legacy.h'), 'include/rtems/rtems-net-legacy.h') + os.path.join(bld.env.PREFIX, arch_inc_path, 'machine', + 'rtems-net-legacy.h'), 'include/machine/rtems-net-legacy.h') bld.add_group() -- 2.37.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel