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.
This commit is contained in:
Joel Sherrill
2012-07-14 14:02:44 -05:00
parent 08084e4357
commit a30cd8ca65
2 changed files with 12 additions and 3 deletions

View File

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