mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/pkg_fatfs*: don't overwrite native MTD defaults
This commit is contained in:
parent
5f1dda0eda
commit
315342ea10
@ -15,8 +15,6 @@ FATFS_IMAGE_FILE_SIZE_MIB ?= 128
|
||||
ifeq ($(BOARD),native)
|
||||
#overwrite default mtd_native-config to use fat image as flash device
|
||||
CFLAGS += -DMTD_NATIVE_FILENAME=\"./bin/riot_fatfs_disk.img\"
|
||||
CFLAGS += -DMTD_PAGE_SIZE=512
|
||||
CFLAGS += -DMTD_SECTOR_SIZE=512
|
||||
CFLAGS += -DFATFS_IMAGE_FILE_SIZE_MIB=$(FATFS_IMAGE_FILE_SIZE_MIB)
|
||||
CFLAGS += -DMTD_SECTOR_NUM=\(\(\(FATFS_IMAGE_FILE_SIZE_MIB\)*1024*1024\)/MTD_SECTOR_SIZE\)
|
||||
else
|
||||
|
@ -11,12 +11,8 @@ ifeq ($(BOARD),native)
|
||||
|
||||
#overwrite default mtd_native-config to use fat image as flash device
|
||||
MTD_NATIVE_FILENAME ?= \"./bin/riot_fatfs_disk.img\"
|
||||
MTD_PAGE_SIZE ?= 512
|
||||
MTD_SECTOR_SIZE ?= 512
|
||||
MTD_SECTOR_NUM ?= \(\(\(FATFS_IMAGE_FILE_SIZE_MIB\)*1024*1024\)/MTD_SECTOR_SIZE\)
|
||||
CFLAGS += -DMTD_NATIVE_FILENAME=$(MTD_NATIVE_FILENAME)
|
||||
CFLAGS += -DMTD_PAGE_SIZE=$(MTD_PAGE_SIZE)
|
||||
CFLAGS += -DMTD_SECTOR_SIZE=$(MTD_SECTOR_SIZE)
|
||||
CFLAGS += -DFATFS_IMAGE_FILE_SIZE_MIB=$(FATFS_IMAGE_FILE_SIZE_MIB)
|
||||
CFLAGS += -DMTD_SECTOR_NUM=$(MTD_SECTOR_NUM)
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user