summaryrefslogtreecommitdiffstats
path: root/libbsd.py
diff options
context:
space:
mode:
authorJan Sommer <jan.sommer@dlr.de>2020-04-17 10:24:03 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-17 13:15:50 +0200
commitdbf72c205db0ee6a078d04c33f84531f084300e2 (patch)
tree54911076f6c409037b7672f4b464feb17b441d2a /libbsd.py
parenti386: Add missing files from FreeBSD (diff)
downloadrtems-libbsd-dbf72c205db0ee6a078d04c33f84531f084300e2.tar.bz2
waf: Add path-mappings feature
- path-mappings allow to fix autogenerated include paths for some corner cases of target platforms without the need to change the build system - Currently used for i386 based bsps
Diffstat (limited to 'libbsd.py')
-rw-r--r--libbsd.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbsd.py b/libbsd.py
index ed6493b2..cece4ed9 100644
--- a/libbsd.py
+++ b/libbsd.py
@@ -90,6 +90,14 @@ _defaults = {
'cpu-include-paths': ['rtemsbsd/@CPU@/include',
'freebsd/sys/@CPU@/include'],
+ #
+ # Map paths based on RTEMS naming to FreeBSD naming.
+ #
+ 'path-mappings': [ # (source, targets)
+ # i386
+ ('freebsd/sys/i386/include', ['freebsd/sys/x86/include', 'freebsd/sys/i386/include']),
+ ],
+
# The path where headers will be copied during build.
'build-include-path': ['build-include'],