Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
62 lines
1.5 KiB
Makefile
62 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2017 MediaTek Inc.
|
|
# Licensed under either
|
|
# BSD Licence, (see NOTICE for more details)
|
|
# GNU General Public License, version 2.0, (see NOTICE for more details)
|
|
#
|
|
|
|
# Nandx DA Makefile
|
|
ifeq ($(CONFIG_NANDX_MK_DA), y)
|
|
NANDX_PATH := nandx
|
|
NANDX_OBJ := obj-y
|
|
NANDX_OS := da
|
|
NANDX_PREFIX :=
|
|
NANDX_POSTFIX := %.o
|
|
endif
|
|
|
|
# Nandx Preloader Makefile
|
|
ifeq ($(CONFIG_NANDX_MK_PRELOADER), y)
|
|
NANDX_PATH := nandx
|
|
NANDX_OBJ := MOD_SRC
|
|
NANDX_OS := preloader
|
|
NANDX_PREFIX :=
|
|
NANDX_POSTFIX := %.c
|
|
endif
|
|
|
|
# Nandx LK Makefile
|
|
ifeq ($(CONFIG_NANDX_MK_LK), y)
|
|
NANDX_OBJ := OBJS
|
|
NANDX_OS := lk
|
|
NANDX_PREFIX := $(LOCAL_DIR)/
|
|
NANDX_POSTFIX := %.o
|
|
NANDX_PATH := $(NANDX_PREFIX)nandx
|
|
endif
|
|
|
|
# Nandx Kernel Makefile
|
|
ifeq ($(CONFIG_NANDX_MK_KERNEL), y)
|
|
NANDX_PATH := $(srctree)/drivers/misc/mediatek/nand/nandx
|
|
ccflags-y += -I$(NANDX_PATH)/include/kernel
|
|
ccflags-y += -I$(NANDX_PATH)/include/internal
|
|
ccflags-y += -I$(NANDX_PATH)/driver/kernel
|
|
NANDX_OBJ := obj-y
|
|
NANDX_OS := kernel
|
|
NANDX_PREFIX :=
|
|
NANDX_POSTFIX := %.o
|
|
endif
|
|
|
|
NANDX_CORE := $(NANDX_PREFIX)nandx/core
|
|
NANDX_DRIVER := $(NANDX_PREFIX)nandx/driver
|
|
NANDX_CUSTOM := $(NANDX_PREFIX)nandx/driver/$(NANDX_OS)
|
|
|
|
NANDX_SRC :=
|
|
include $(NANDX_PATH)/core/Nandx.mk
|
|
$(NANDX_OBJ) += $(patsubst %.c, $(NANDX_CORE)/$(NANDX_POSTFIX), $(NANDX_SRC))
|
|
|
|
NANDX_SRC :=
|
|
include $(NANDX_PATH)/driver/Nandx.mk
|
|
$(NANDX_OBJ) += $(patsubst %.c, $(NANDX_DRIVER)/$(NANDX_POSTFIX), $(NANDX_SRC))
|
|
|
|
NANDX_SRC :=
|
|
include $(NANDX_PATH)/driver/$(NANDX_OS)/Nandx.mk
|
|
$(NANDX_OBJ) += $(patsubst %.c, $(NANDX_CUSTOM)/$(NANDX_POSTFIX), $(NANDX_SRC))
|