diff options
author | William D. Jones <thor0505@comcast.net> | 2020-06-27 17:08:11 -0400 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-12 10:36:59 +0000 |
commit | 539651609cf82ab8e05cac636aee997e831b4d29 (patch) | |
tree | ae500ca9a6c1ac5076fb3363641288645e020447 /machxo2/family.cmake | |
parent | c38762f91f649815ab1162dc981da84cab98dd61 (diff) | |
download | nextpnr-539651609cf82ab8e05cac636aee997e831b4d29.tar.gz nextpnr-539651609cf82ab8e05cac636aee997e831b4d29.tar.bz2 nextpnr-539651609cf82ab8e05cac636aee997e831b4d29.zip |
Update machxo2 backend with minimal build system changes so nextpnr compiles again.
Diffstat (limited to 'machxo2/family.cmake')
-rw-r--r-- | machxo2/family.cmake | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/machxo2/family.cmake b/machxo2/family.cmake index 0c829d55..f19ebc70 100644 --- a/machxo2/family.cmake +++ b/machxo2/family.cmake @@ -33,9 +33,14 @@ foreach(device ${MACHXO2_DEVICES}) endif() endforeach() if(WIN32) - list(APPEND chipdb_sources - ${CMAKE_CURRENT_SOURCE_DIR}/${family}/resource/embed.cc - ${CMAKE_CURRENT_SOURCE_DIR}/${family}/resource/chipdb.rc) + set(chipdb_rc ${CMAKE_CURRENT_BINARY_DIR}/${family}/resource/chipdb.rc) + list(APPEND chipdb_sources ${chipdb_rc}) + + file(WRITE ${chipdb_rc}) + foreach(device ${MACHXO2_DEVICES}) + file(APPEND ${chipdb_rc} + "${family}/chipdb-${device}.bin RCDATA \"${CMAKE_CURRENT_BINARY_DIR}/${family}/chipdb/chipdb-${device}.bin\"") + endforeach() endif() add_custom_target(chipdb-${family}-bins DEPENDS ${chipdb_sources} ${chipdb_binaries}) |