[rtems-net-legacy commit] waf: Move rtems/rtems-net-legacy.h to machine/rtems-net-legacy.h

Chris Johns chrisj at rtems.org
Fri May 26 04:34:22 UTC 2023


Module:    rtems-net-legacy
Branch:    main
Commit:    ad5ae9e4d81f227b521e2dc7441aca2accb0966e
Changeset: http://git.rtems.org/rtems-net-legacy/commit/?id=ad5ae9e4d81f227b521e2dc7441aca2accb0966e

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu May 25 15:18:41 2023 +1000

waf: Move rtems/rtems-net-legacy.h to machine/rtems-net-legacy.h

This patch installs the header in the same path as the libbsd header
machine/rtems-bsd-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(-)

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()



More information about the vc mailing list