Skip to content

Commit 3adf6ca

Browse files
feat(slave-side-prot): update Makefile to define prot macro
Signed-off-by: Miguel Silva <[email protected]>
1 parent 5ef646b commit 3adf6ca

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Makefile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,17 @@ endif
204204
ifeq ($(plat_mem),non_unified)
205205
build_macros+=-DMEM_NON_UNIFIED
206206
endif
207-
ifeq ($(phys_irqs_only),y)
208-
build_macros+=-DPHYS_IRQS_ONLY
207+
208+
# Could be mmio_prot -> slave_side, mpu, etc
209+
ifeq ($(mmio_slave_side_prot),y)
210+
build_macros+=-DMMIO_SLAVE_SIDE_PROT
211+
endif
212+
213+
# Consistency check
214+
ifeq ($(mmio_slave_side_prot),y)
215+
ifneq ($(arch_mem_prot),mpu)
216+
$(error mmio_slave_side_prot=y requires arch_mem_prot=mpu)
217+
endif
209218
endif
210219

211220
ifeq ($(CC_IS_GCC),y)
@@ -395,3 +404,4 @@ $(call ci, format, $(all_c_files))
395404
ci: license-check format-check
396405

397406
endif
407+
# Could be mmio_prot -> slave_side, mpu, etc

0 commit comments

Comments
 (0)