diff options
Diffstat (limited to 'gcip-kernel-driver/drivers/gcip/Makefile')
-rw-r--r-- | gcip-kernel-driver/drivers/gcip/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcip-kernel-driver/drivers/gcip/Makefile b/gcip-kernel-driver/drivers/gcip/Makefile new file mode 100644 index 0000000..c3424ee --- /dev/null +++ b/gcip-kernel-driver/drivers/gcip/Makefile @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for GCIP framework. +# + +CONFIG_GCIP ?= m +obj-$(CONFIG_GCIP) += gcip.o + +gcip-objs := gcip-alloc-helper.o gcip-domain-pool.o gcip-firmware.o \ + gcip-image-config.o gcip-kci.o gcip-mailbox.o gcip-mem-pool.o \ + gcip-telemetry.o + +CURRENT_DIR=$(dir $(abspath $(lastword $(MAKEFILE_LIST)))) + +ccflags-y += -I$(CURRENT_DIR)/../../include + +ifdef CONFIG_GCIP_TEST +obj-y += unittests/ +endif + +modules modules_install clean: + $(MAKE) -C $(KERNEL_SRC) M=$(M) W=1 $(KBUILD_OPTIONS) $(@) |