[dev][block][ahci] only build on platforms with the VM enabled

This commit is contained in:
Travis Geiselbrecht
2022-02-06 16:28:27 -08:00
committed by Travis Geiselbrecht
parent e9079cb7ee
commit 1341158c5c

View File

@@ -1,5 +1,8 @@
LOCAL_DIR := $(GET_LOCAL_DIR)
# At the moment, this can only be built with hardware MMU available.
ifeq (true,$(call TOBOOL,$(WITH_KERNEL_VM)))
MODULE := $(LOCAL_DIR)
MODULE_SRCS += $(LOCAL_DIR)/ahci.cpp
@@ -13,3 +16,5 @@ MODULE_DEPS += lib/bio
MODULE_CPPFLAGS += -Wno-invalid-offsetof
include make/module.mk
endif # WITH_KERNEL_VM