cxl/vendor: update niagara to only build on linux, add KConfig options
PATCH v2 1/1 cxl/vendor: update niagara to only build on linux, add KConfig options
Niagara uses <sys/shm.h> which presently limits its compatibility to linux hosts. Change build to only build it on linux.
Add Kconfig file for skhynix directory, and make niagara depend on CXL_MEM_DEVICE and LINUX. Add an explicit flag for niagara.
Signed-off-by Gregory Price <[email protected]>
--- hw/cxl/Kconfig | 2 ++ hw/cxl/vendor/Kconfig | 1 + hw/cxl/vendor/skhynix/Kconfig | 4 ++++ hw/cxl/vendor/skhynix/meson.build | 2 +- 4 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 hw/cxl/vendor/Kconfig create mode 100644 hw/cxl/vendor/skhynix/Kconfig
hw/cxl/Kconfig +2 -0
@@ -1,3 +1,5 @@ +source vendor/Kconfig + config CXL bool default y if PCI_EXPRESS
hw/cxl/vendor/Kconfig new file +1 -0
@@ -0,0 +1 @@ +source skhynix/Kconfig
hw/cxl/vendor/skhynix/Kconfig new file +4 -0
@@ -0,0 +1,4 @@ +config CXL_SKHYNIX_NIAGARA + bool + depends on CXL_MEM_DEVICE && LINUX + default y if CXL_VENDOR
hw/cxl/vendor/skhynix/meson.build +1 -1
@@ -1 +1 @@ -system_ss.add(when: 'CONFIG_CXL_VENDOR', if_true: files('skhynix_niagara.c',)) +system_ss.add(when: 'CONFIG_CXL_SKHYNIX_NIAGARA', if_true: files('skhynix_niagara.c',))
Signature · 1 line
2.39.1