Fix install arch-specific header files

This commit is contained in:
Sebastian Huber
2017-10-24 07:42:36 +02:00
parent a677fe9932
commit fb84af014c

View File

@@ -654,10 +654,11 @@ class ModuleManager(builder.ModuleManager):
self.add(' for headers in header_paths:') self.add(' for headers in header_paths:')
self.add(' ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), headers[2])') self.add(' ipath = os.path.join(rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP), headers[2])')
self.add(' start_dir = bld.path.find_dir(headers[0])') self.add(' start_dir = bld.path.find_dir(headers[0])')
self.add(' bld.install_files("${PREFIX}/" + ipath,') self.add(' if start_dir != None:')
self.add(' start_dir.ant_glob(headers[1]),') self.add(' bld.install_files("${PREFIX}/" + ipath,')
self.add(' cwd = start_dir,') self.add(' start_dir.ant_glob(headers[1]),')
self.add(' relative_trick = True)') self.add(' cwd = start_dir,')
self.add(' relative_trick = True)')
self.add('') self.add('')
self.add(' # Tests') self.add(' # Tests')