From d6ee6836011b74c32fec87afabfe0263f4e13427 Mon Sep 17 00:00:00 2001 From: coolbreeze413 Date: Thu, 14 Oct 2021 04:46:53 +0530 Subject: [PATCH] add prefix for yosys for plugin Makefile to find, add yosys-config path to plugin Makefile invocation --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b6cb34f1b..5b03bb63a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -232,7 +232,7 @@ add_custom_target( yosys ALL COMMAND $(MAKE) config-gcc COMMAND make clean - COMMAND $(MAKE) + COMMAND $(MAKE) PREFIX=${CMAKE_CURRENT_SOURCE_DIR}/yosys WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/yosys COMMENT "Compile Yosys with given Makefile" ) @@ -241,8 +241,8 @@ add_custom_target( # yosys-plugins compilation starts add_custom_target( yosys-plugins ALL - COMMAND $(MAKE) clean YOSYS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/yosys YOSYS_CONFIG=${CMAKE_CURRENT_SOURCE_DIR}/yosys - COMMAND $(MAKE) install YOSYS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/yosys YOSYS_CONFIG=${CMAKE_CURRENT_SOURCE_DIR}/yosys + COMMAND $(MAKE) clean YOSYS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/yosys YOSYS_CONFIG=${CMAKE_CURRENT_SOURCE_DIR}/yosys/yosys-config + COMMAND $(MAKE) install YOSYS_PATH=${CMAKE_CURRENT_SOURCE_DIR}/yosys YOSYS_CONFIG=${CMAKE_CURRENT_SOURCE_DIR}/yosys/yosys-config WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/yosys-plugins DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/yosys/yosys #DEPENDS yosys