@@ -56,8 +56,21 @@ OCI_KCONFIG_SHAPE_DEFAULT := $(OCI_KCONFIG_DIR)/Kconfig.shape.default
5656
5757OCI_KCONFIGS := $(OCI_KCONFIG_IMAGE ) $(OCI_KCONFIG_LOCATION ) $(OCI_KCONFIG_SHAPE )
5858
59+ # DataCrunch dynamic configuration
60+ DATACRUNCH_KCONFIG_DIR := terraform/datacrunch/kconfigs
61+ DATACRUNCH_KCONFIG_COMPUTE := $(DATACRUNCH_KCONFIG_DIR ) /Kconfig.compute.generated
62+ DATACRUNCH_KCONFIG_IMAGES := $(DATACRUNCH_KCONFIG_DIR ) /Kconfig.images.generated
63+ DATACRUNCH_KCONFIG_LOCATION := $(DATACRUNCH_KCONFIG_DIR ) /Kconfig.location.generated
64+
65+ # DataCrunch default files (tracked in git, provide sensible defaults)
66+ DATACRUNCH_KCONFIG_COMPUTE_DEFAULT := $(DATACRUNCH_KCONFIG_DIR ) /Kconfig.compute.default
67+ DATACRUNCH_KCONFIG_IMAGES_DEFAULT := $(DATACRUNCH_KCONFIG_DIR ) /Kconfig.images.default
68+ DATACRUNCH_KCONFIG_LOCATION_DEFAULT := $(DATACRUNCH_KCONFIG_DIR ) /Kconfig.location.default
69+
70+ DATACRUNCH_KCONFIGS := $(DATACRUNCH_KCONFIG_COMPUTE ) $(DATACRUNCH_KCONFIG_IMAGES ) $(DATACRUNCH_KCONFIG_LOCATION )
71+
5972# Add generated files to mrproper clean list
60- KDEVOPS_MRPROPER += $(LAMBDALABS_KCONFIGS ) $(AWS_KCONFIGS ) $(AZURE_KCONFIGS ) $(OCI_KCONFIGS )
73+ KDEVOPS_MRPROPER += $(LAMBDALABS_KCONFIGS ) $(AWS_KCONFIGS ) $(AZURE_KCONFIGS ) $(OCI_KCONFIGS ) $( DATACRUNCH_KCONFIGS )
6174
6275# Ensure Lambda Labs generated files exist with sensible defaults
6376# Copies from .default files if .generated files don't exist
@@ -87,11 +100,18 @@ dynamic_oci_kconfig_touch:
87100 $(Q ) test -f $(OCI_KCONFIG_LOCATION ) || cp $(OCI_KCONFIG_LOCATION_DEFAULT ) $(OCI_KCONFIG_LOCATION )
88101 $(Q ) test -f $(OCI_KCONFIG_SHAPE ) || cp $(OCI_KCONFIG_SHAPE_DEFAULT ) $(OCI_KCONFIG_SHAPE )
89102
90- DYNAMIC_KCONFIG += dynamic_lambdalabs_kconfig_touch dynamic_aws_kconfig_touch dynamic_azure_kconfig_touch dynamic_oci_kconfig_touch
103+ # Ensure DataCrunch generated files exist with sensible defaults
104+ # Copies from .default files if .generated files don't exist
105+ dynamic_datacrunch_kconfig_touch :
106+ $(Q ) test -f $(DATACRUNCH_KCONFIG_COMPUTE ) || cp $(DATACRUNCH_KCONFIG_COMPUTE_DEFAULT ) $(DATACRUNCH_KCONFIG_COMPUTE )
107+ $(Q ) test -f $(DATACRUNCH_KCONFIG_IMAGES ) || cp $(DATACRUNCH_KCONFIG_IMAGES_DEFAULT ) $(DATACRUNCH_KCONFIG_IMAGES )
108+ $(Q ) test -f $(DATACRUNCH_KCONFIG_LOCATION ) || cp $(DATACRUNCH_KCONFIG_LOCATION_DEFAULT ) $(DATACRUNCH_KCONFIG_LOCATION )
109+
110+ DYNAMIC_KCONFIG += dynamic_lambdalabs_kconfig_touch dynamic_aws_kconfig_touch dynamic_azure_kconfig_touch dynamic_oci_kconfig_touch dynamic_datacrunch_kconfig_touch
91111
92112# User-facing target to populate cloud kconfigs with defaults
93113# This is called automatically before menuconfig, but can be run manually
94- default-cloud-kconfigs : dynamic_lambdalabs_kconfig_touch dynamic_aws_kconfig_touch dynamic_azure_kconfig_touch dynamic_oci_kconfig_touch
114+ default-cloud-kconfigs : dynamic_lambdalabs_kconfig_touch dynamic_aws_kconfig_touch dynamic_azure_kconfig_touch dynamic_oci_kconfig_touch dynamic_datacrunch_kconfig_touch
95115
96116# Lambda Labs targets use --provider argument for efficiency
97117cloud-config-lambdalabs :
@@ -109,6 +129,10 @@ cloud-config-azure:
109129cloud-config-oci :
110130 $(Q ) python3 scripts/generate_cloud_configs.py --provider oci
111131
132+ # DataCrunch targets use --provider argument for efficiency
133+ cloud-config-datacrunch :
134+ $(Q ) python3 scripts/generate_cloud_configs.py --provider datacrunch
135+
112136# Clean Lambda Labs generated files
113137clean-cloud-config-lambdalabs :
114138 $(Q ) rm -f $(LAMBDALABS_KCONFIGS )
@@ -125,25 +149,30 @@ clean-cloud-config-azure:
125149clean-cloud-config-oci :
126150 $(Q ) rm -f $(OCI_KCONFIGS )
127151
128- DYNAMIC_CLOUD_KCONFIG += cloud-config-lambdalabs cloud-config-aws cloud-config-azure cloud-config-oci
152+ # Clean DataCrunch generated files
153+ clean-cloud-config-datacrunch :
154+ $(Q ) rm -f $(DATACRUNCH_KCONFIGS )
155+
156+ DYNAMIC_CLOUD_KCONFIG += cloud-config-lambdalabs cloud-config-aws cloud-config-azure cloud-config-oci cloud-config-datacrunch
129157
130158cloud-config-help :
131159 @echo " Cloud-specific dynamic kconfig targets:"
132- @echo " default-cloud-kconfigs - populate cloud kconfigs with defaults (auto-runs before menuconfig)"
133- @echo " cloud-config - regenerate cloud kconfigs from live API data"
134- @echo " cloud-config-lambdalabs - generates Lambda Labs dynamic kconfig content"
135- @echo " cloud-config-aws - generates AWS dynamic kconfig content"
136- @echo " cloud-config-azure - generates Azure dynamic kconfig content"
137- @echo " cloud-config-oci - generates OCI dynamic kconfig content"
138- @echo " clean-cloud-config - removes all generated cloud kconfig files"
139- @echo " cloud-list-all - list all cloud instances for configured provider"
160+ @echo " default-cloud-kconfigs - populate cloud kconfigs with defaults (auto-runs before menuconfig)"
161+ @echo " cloud-config - regenerate cloud kconfigs from live API data"
162+ @echo " cloud-config-lambdalabs - generates Lambda Labs dynamic kconfig content"
163+ @echo " cloud-config-aws - generates AWS dynamic kconfig content"
164+ @echo " cloud-config-azure - generates Azure dynamic kconfig content"
165+ @echo " cloud-config-oci - generates OCI dynamic kconfig content"
166+ @echo " cloud-config-datacrunch - generates DataCrunch dynamic kconfig content"
167+ @echo " clean-cloud-config - removes all generated cloud kconfig files"
168+ @echo " cloud-list-all - list all cloud instances for configured provider"
140169
141170HELP_TARGETS += cloud-config-help
142171
143172cloud-config :
144173 $(Q ) python3 scripts/generate_cloud_configs.py
145174
146- clean-cloud-config : clean-cloud-config-lambdalabs clean-cloud-config-aws clean-cloud-config-azure clean-cloud-config-oci
175+ clean-cloud-config : clean-cloud-config-lambdalabs clean-cloud-config-aws clean-cloud-config-azure clean-cloud-config-oci clean-cloud-config-datacrunch
147176 $(Q ) echo " Cleaned all cloud provider dynamic Kconfig files."
148177
149178cloud-list-all :
@@ -153,5 +182,6 @@ cloud-list-all:
153182PHONY += cloud-config clean-cloud-config cloud-config-help cloud-list-all default-cloud-kconfigs
154183PHONY += cloud-config-aws clean-cloud-config-aws
155184PHONY += cloud-config-azure clean-cloud-config-azure
185+ PHONY += cloud-config-datacrunch clean-cloud-config-datacrunch
156186PHONY += cloud-config-lambdalabs clean-cloud-config-lambdalabs
157187PHONY += cloud-config-oci clean-cloud-config-oci
0 commit comments