@@ -20,6 +20,14 @@ AWS_KCONFIG_LOCATION := $(AWS_KCONFIG_DIR)/Kconfig.location.generated
2020
2121AWS_KCONFIGS := $(AWS_KCONFIG_AMI ) $(AWS_KCONFIG_INSTANCE ) $(AWS_KCONFIG_LOCATION )
2222
23+ # Azure dynamic configuration
24+ AZURE_KCONFIG_DIR := terraform/azure/kconfigs
25+ AZURE_KCONFIG_IMAGE := $(AZURE_KCONFIG_DIR ) /Kconfig.image.generated
26+ AZURE_KCONFIG_LOCATION := $(AZURE_KCONFIG_DIR ) /Kconfig.location.generated
27+ AZURE_KCONFIG_SIZE := $(AZURE_KCONFIG_DIR ) /Kconfig.size.generated
28+
29+ AZURE_KCONFIGS := $(AZURE_KCONFIG_LOCATION ) $(AZURE_KCONFIG_SIZE ) $(AZURE_KCONFIG_IMAGE )
30+
2331# OCI dynamic configuration
2432OCI_KCONFIG_DIR := terraform/oci/kconfigs
2533OCI_KCONFIG_IMAGE := $(OCI_KCONFIG_DIR ) /Kconfig.image.generated
@@ -29,7 +37,7 @@ OCI_KCONFIG_SHAPE := $(OCI_KCONFIG_DIR)/Kconfig.shape.generated
2937OCI_KCONFIGS := $(OCI_KCONFIG_IMAGE ) $(OCI_KCONFIG_LOCATION ) $(OCI_KCONFIG_SHAPE )
3038
3139# Add generated files to mrproper clean list
32- KDEVOPS_MRPROPER += $(LAMBDALABS_KCONFIGS ) $(AWS_KCONFIGS ) $(OCI_KCONFIGS )
40+ KDEVOPS_MRPROPER += $(LAMBDALABS_KCONFIGS ) $(AWS_KCONFIGS ) $(AZURE_KCONFIGS ) $( OCI_KCONFIGS )
3341
3442# Touch Lambda Labs generated files so Kconfig can source them
3543# This ensures the files exist (even if empty) before Kconfig runs
@@ -40,11 +48,15 @@ dynamic_lambdalabs_kconfig_touch:
4048dynamic_aws_kconfig_touch :
4149 $(Q ) touch $(AWS_KCONFIGS )
4250
51+ # Touch Azure generated files so Kconfig can source them
52+ dynamic_azure_kconfig_touch :
53+ $(Q ) touch $(AZURE_KCONFIGS )
54+
4355# Touch OCI generated files so Kconfig can source them
4456dynamic_oci_kconfig_touch :
4557 $(Q ) touch $(OCI_KCONFIGS )
4658
47- DYNAMIC_KCONFIG += dynamic_lambdalabs_kconfig_touch dynamic_aws_kconfig_touch dynamic_oci_kconfig_touch
59+ DYNAMIC_KCONFIG += dynamic_lambdalabs_kconfig_touch dynamic_aws_kconfig_touch dynamic_azure_kconfig_touch dynamic_oci_kconfig_touch
4860
4961# Lambda Labs targets use --provider argument for efficiency
5062cloud-config-lambdalabs :
@@ -54,6 +66,10 @@ cloud-config-lambdalabs:
5466cloud-config-aws :
5567 $(Q ) python3 scripts/generate_cloud_configs.py --provider aws
5668
69+ # Azure targets use --provider argument for efficiency
70+ cloud-config-azure :
71+ $(Q ) python3 scripts/generate_cloud_configs.py --provider azure
72+
5773# OCI targets use --provider argument for efficiency
5874cloud-config-oci :
5975 $(Q ) python3 scripts/generate_cloud_configs.py --provider oci
@@ -66,17 +82,22 @@ clean-cloud-config-lambdalabs:
6682clean-cloud-config-aws :
6783 $(Q ) rm -f $(AWS_KCONFIGS )
6884
85+ # Clean Azure generated files
86+ clean-cloud-config-azure :
87+ $(Q ) rm -f $(AZURE_KCONFIGS )
88+
6989# Clean OCI generated files
7090clean-cloud-config-oci :
7191 $(Q ) rm -f $(OCI_KCONFIGS )
7292
73- DYNAMIC_CLOUD_KCONFIG += cloud-config-lambdalabs cloud-config-aws cloud-config-oci
93+ DYNAMIC_CLOUD_KCONFIG += cloud-config-lambdalabs cloud-config-aws cloud-config-azure cloud-config- oci
7494
7595cloud-config-help :
7696 @echo " Cloud-specific dynamic kconfig targets:"
7797 @echo " cloud-config - generates all cloud provider dynamic kconfig content"
7898 @echo " cloud-config-lambdalabs - generates Lambda Labs dynamic kconfig content"
7999 @echo " cloud-config-aws - generates AWS dynamic kconfig content"
100+ @echo " cloud-config-azure - generates Azure dynamic kconfig content"
80101 @echo " cloud-config-oci - generates OCI dynamic kconfig content"
81102 @echo " clean-cloud-config - removes all generated cloud kconfig files"
82103 @echo " cloud-list-all - list all cloud instances for configured provider"
@@ -86,7 +107,7 @@ HELP_TARGETS += cloud-config-help
86107cloud-config :
87108 $(Q ) python3 scripts/generate_cloud_configs.py
88109
89- clean-cloud-config : clean-cloud-config-lambdalabs clean-cloud-config-aws clean-cloud-config-oci
110+ clean-cloud-config : clean-cloud-config-lambdalabs clean-cloud-config-aws clean-cloud-config-azure clean-cloud-config- oci
90111 $(Q ) echo " Cleaned all cloud provider dynamic Kconfig files."
91112
92113cloud-list-all :
@@ -95,5 +116,6 @@ cloud-list-all:
95116
96117PHONY += cloud-config clean-cloud-config cloud-config-help cloud-list-all
97118PHONY += cloud-config-aws clean-cloud-config-aws
119+ PHONY += cloud-config-azure clean-cloud-config-azure
98120PHONY += cloud-config-lambdalabs clean-cloud-config-lambdalabs
99121PHONY += cloud-config-oci clean-cloud-config-oci
0 commit comments