rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | # Define source file lists to SRC_LIST |
| 2 | # flash_mtd.c is necessary for L1 to call NOR_GetReturnReadyLatency |
| 3 | SRC_LIST = driver/storage/flash/mtd/src/flash_mtd.c |
| 4 | |
| 5 | ifeq ($(strip $(SERIAL_FLASH_SUPPORT)),TRUE) |
| 6 | SRC_LIST += driver/storage/flash/mtd/src/mtd_dal_spi.c \ |
| 7 | driver/storage/flash/mtd/src/drv_spi.c |
| 8 | ifeq ($(strip $(FLASH_TEST_SELECT)),NOR_FLASH) |
| 9 | SRC_LIST += driver/storage/flash/mtd/src/flash_mtd_sf_ut.c |
| 10 | endif |
| 11 | endif |
| 12 | |
| 13 | # NOR/SF driver |
| 14 | ifeq ($(filter _NAND_FLASH_BOOTING_, $(strip $(MODULE_DEFS))),) |
| 15 | ifeq ($(filter __EMMC_BOOTING__, $(strip $(MODULE_DEFS))),) |
| 16 | SRC_LIST += \ |
| 17 | driver/storage/flash/mtd/src/flash_mtd.ramdisk.c \ |
| 18 | driver/storage/flash/mtd/src/flash_cfi.c \ |
| 19 | driver/storage/flash/mtd/src/flash_disk.c \ |
| 20 | driver/storage/flash/mtd/src/flash_mtd_pf_dal.c \ |
| 21 | driver/storage/flash/mtd/src/flash_mtd.amd.c \ |
| 22 | driver/storage/flash/mtd/src/flash_mtd.intel.c |
| 23 | ifneq ($(filter __SERIAL_FLASH_EN__, $(strip $(MODULE_DEFS))),) |
| 24 | #SRC_LIST += \ |
| 25 | #driver/storage/flash/mtd/src/flash_mtd_sf_common.c \ |
| 26 | #driver/storage/flash/mtd/src/flash_mtd_sf_dal.c \ |
| 27 | #driver/storage/flash/mtd/src/flash_mtd_sf_ut.c |
| 28 | endif |
| 29 | endif |
| 30 | endif |
| 31 | |
| 32 | ifeq ($(strip $(NAND_SUPPORT)),TRUE) |
| 33 | # NAND driver build condition |
| 34 | SRC_LIST += driver/storage/flash/mtd/src/NAND_MTD.c \ |
| 35 | driver/storage/flash/mtd/src/flash_user.c |
| 36 | endif |
| 37 | # #if ( defined(__NAND_FDM_50__) && (defined(__NFI_VERSION2__)||defined(__NFI_VERSION3_1__)) ) |
| 38 | ifneq ($(filter __NAND_FDM_50__, $(strip $(MODULE_DEFS))),) |
| 39 | ifneq ($(filter __NFI_VERSION2__, $(strip $(MODULE_DEFS))),) |
| 40 | SRC_LIST += driver/storage/flash/mtd/src/NAND_DAL.c |
| 41 | SRC_LIST += driver/storage/flash/mtd/src/NAND_MTD_FDM50.c |
| 42 | SRC_LIST += driver/storage/flash/mtd/src/NAND_DevConfig.c |
| 43 | else |
| 44 | ifneq ($(filter __NFI_VERSION3_1__, $(strip $(MODULE_DEFS))),) |
| 45 | SRC_LIST += driver/storage/flash/mtd/src/NAND_DAL.c |
| 46 | SRC_LIST += driver/storage/flash/mtd/src/NAND_MTD_FDM50.c |
| 47 | SRC_LIST += driver/storage/flash/mtd/src/NAND_DevConfig.c |
| 48 | SRC_LIST += driver/storage/flash/mtd/src/NAND_MTD_DRV.c |
| 49 | endif |
| 50 | endif |
| 51 | endif |
| 52 | |
| 53 | # RAM Disk for smartphone modem-only projects |
| 54 | ifneq ($(filter __FS_RAMDISK__, $(strip $(MODULE_DEFS))),) |
| 55 | SRC_LIST += driver/storage/flash/mtd/src/flash_mtd.ramdisk.c |
| 56 | endif |
| 57 | |
| 58 | # Define include path lists to INC_DIR |
| 59 | INC_DIR = ./service/sss/interface/inc \ |
| 60 | ./service/sst/include \ |
| 61 | driver/storage/flash/fdm/inc \ |
| 62 | driver/storage/flash/mtd/inc \ |
| 63 | driver/peripheral/inc \ |
| 64 | ./service/fs/common/include \ |
| 65 | ./service/sys_svc/gfh/public \ |
| 66 | driver/devdrv/common/inc |
| 67 | |
| 68 | # Define the specified compile options to COMP_DEFS |
| 69 | COMP_DEFS = |
| 70 | |
| 71 | # Define the source file search paths to SRC_PATH |
| 72 | SRC_PATH = driver/storage/flash/mtd/src |
| 73 | |