summaryrefslogtreecommitdiffstats
path: root/freebsd-to-rtems.py
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-14 14:02:44 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-07-14 14:02:44 -0500
commita30cd8ca65a6e2e67d6a2a37dcedd0784607159e (patch)
tree5753ff3ccaa4d14e48e6e0a9dfe8f721480c8fda /freebsd-to-rtems.py
parent.gitignore: Add generated pci_cfgreg.h and legacyvar.h (diff)
downloadrtems-libbsd-a30cd8ca65a6e2e67d6a2a37dcedd0784607159e.tar.bz2
Makefile: sparc/sis builds again
+ sparc did not really have a unique in_cksum.c and Makefile needed to be adjusted to reflect this + some destination directories for copied files did not exist. make the destination directory before copying. This is really not a great thing to do as it messes with the source tree but it works for now. It would be better to make a special place to put generated source and integrate that into the build system.
Diffstat (limited to 'freebsd-to-rtems.py')
-rwxr-xr-xfreebsd-to-rtems.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py
index 25f8c9b5..307c52ff 100755
--- a/freebsd-to-rtems.py
+++ b/freebsd-to-rtems.py
@@ -427,6 +427,7 @@ class ModuleManager:
'# The following targets use the MIPS Generic in_cksum routine\n'
for cpu in CPUsNeedingGenericIncksum:
data += 'rtemsbsd/' + cpu + '/' + cpu + '/in_cksum.c: freebsd/mips/mips/in_cksum.c\n' \
+ '\ttest -d rtemsbsd/' + cpu + '/' + cpu + '|| mkdir -p rtemsbsd/' + cpu + '/' + cpu + '\n' \
'\tcp $< $@\n' \
'\n' \
'rtemsbsd/' + cpu + '/include/freebsd/machine/in_cksum.h: freebsd/mips/include/freebsd/machine/in_cksum.h\n' \
@@ -445,7 +446,6 @@ class ModuleManager:
'CPU_SED += -e \'/i386/d\'\n' \
'CPU_SED += -e \'/powerpc/d\'\n' \
'CPU_SED += -e \'/mips/d\'\n' \
- 'CPU_SED += -e \'/sparc/d\'\n' \
'CPU_SED += -e \'/sparc64/d\'\n' \
'\n' \
'install: $(LIB) install_bsd lib_user install_user\n' \
@@ -2104,7 +2104,6 @@ pf.addSourceFiles(
in_cksum = Module('in_cksum')
in_cksum.addRTEMSHeaderFiles(
[
- 'sparc/include/freebsd/machine/in_cksum.h',
]
)
in_cksum.addCPUDependentHeaderFiles(