code: def copy_extra_files(tile):
      
  
      env = Environment(tools=[])
      outputbase = os.path.join('build', 'output')
  
      for src, dest in tile.settings.get('copy_files', {}).items():
          outputfile = os.path.join(outputbase, dest)
          env.Command([outputfile], [src], Copy("$TARGET", "$SOURCE"))
  
      resolver = ProductResolver.Create()
      for src, dest in tile.settings.get('copy_products', {}).items():
          prod = resolver.find_unique(None, src)
          outputfile = os.path.join(outputbase, dest)
  
          env.Command([outputfile], [prod.full_path], Copy("$TARGET", "$SOURCE"))
docs: Copy all files listed in a copy_files and copy_products section.
  
      Files listed in copy_files will be copied from the specified location
      in the current component to the specified path under the output
      folder.
  
      Files listed in copy_products will be looked up with a ProductResolver
      and copied copied to the specified path in the output folder.  There
      is not currently a way to specify what type of product is being resolved.
      The `short_name` given must be unique across all products from this
      component and its direct dependencies.