Skip to content

Commit e239802

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,13 @@ 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+
ifeq ($(mmio_slave_side_prot),y)
209+
build_macros+=-DMMIO_SLAVE_SIDE_PROT
210+
211+
ifneq ($(arch_mem_prot),mpu)
212+
$(error mmio_slave_side_prot=y requires arch_mem_prot=mpu)
213+
endif
209214
endif
210215

211216
ifeq ($(CC_IS_GCC),y)

0 commit comments

Comments
 (0)