code: def run(self, command, variables=[], board=None, packages=[]):
          
  
          # -- Check for the SConstruct file
          if not isfile(util.safe_join(util.get_project_dir(), 'SConstruct')):
              variables += ['-f']
              variables += [util.safe_join(
                  util.get_folder('resources'), 'SConstruct')]
          else:
              click.secho('Info: use custom SConstruct file')
  
          # -- Resolve packages
          if self.profile.check_exe_default():
              # Run on `default` config mode
              if not util.resolve_packages(
                packages,
                self.profile.packages,
                self.resources.distribution.get('packages')
               ):
                  # Exit if a package is not installed
                  raise Exception
          else:
              click.secho('Info: native config mode')
  
          # -- Execute scons
          return self._execute_scons(command, variables, board)
docs: Executes scons for building