Пример #1
0
    def test_locate_xilinx_default(self, debug = False):
        """
        Locats the Xilinx Base directory
        """
        base = xilinx_utils.find_xilinx_path()

        self.dbg = True
        if self.dbg: print "Base: %s" % base
        self.dbg = False
        self.assertIsNotNone(base)
    def test_build_tools(self):
        """
        Runs a test to determine if the Vendor specific build tools are present

        Args:
            Nothing

        Returns:
            Boolean:
                True: Build tools found
                False: Build tools not found

        Raises:
            NysaError: An error occured when scanning for the build tools
        """
        if find_xilinx_path() is None:
            return False
        return True
    def test_build_tools(self):
        """
        Runs a test to determine if the Vendor specific build tools are present

        Args:
            Nothing

        Returns:
            Boolean:
                True: Build tools found
                False: Build tools not found

        Raises:
            NysaError: An error occured when scanning for the build tools
        """
        #raise AssertionError("%s not implemented" % sys._getframe().f_code.co_name)
        if self.status:  self.status.Warning("By default build tools is Xilinx this can be changed in tx1_pcie/nysa_platform.py")
        if find_xilinx_path() is None:
            return False
        return True
    def test_build_tools(self):
        """
        Runs a test to determine if the Vendor specific build tools are present

        Args:
            Nothing

        Returns:
            Boolean:
                True: Build tools found
                False: Build tools not found

        Raises:
            NysaError: An error occured when scanning for the build tools
        """
        if self.status: self.status.Warning("Build tool is set to Xilinx, this can be modified in the board specific 'nysa_platform.py' script")

        if find_xilinx_path() is None:
            return False
        return True
Пример #5
0
    def test_build_tools(self):
        """
        Runs a test to determine if the Vendor specific build tools are present

        Args:
            Nothing

        Returns:
            Boolean:
                True: Build tools found
                False: Build tools not found

        Raises:
            NysaError: An error occured when scanning for the build tools
        """
        if self.status:
            self.status.Warning(
                "Build tool is set to Xilinx, this can be modified in the board specific 'nysa_platform.py' script"
            )

        if find_xilinx_path() is None:
            return False
        return True
Пример #6
0
def print_xilinx_paths(silent, status):
    if not silent:
        print "{0:<16}:{1}".format("Xilinx", xutils.find_xilinx_path())
    else:
        print xutils.find_xilinx_path()
 def test_build_tools(self):
     if find_xilinx_path() is None:
         return False
     return True