mirror of
https://github.com/micropython/micropython.git
synced 2026-04-22 08:50:25 +02:00
qemu/Makefile: Refactor shared ROMFS definitions.
This commit refactors shared ROMFS definitions appearing in some Arm boards configuration, moving them into the QEMU port's Makefile. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
This commit is contained in:
committed by
Damien George
parent
cf0ef5a9d7
commit
083b0cc60f
@@ -64,6 +64,18 @@ else ifeq ($(SUPPORTS_HARDWARE_FP_DOUBLE),1)
|
||||
CFLAGS += -DMICROPY_HW_FPU=1
|
||||
endif
|
||||
|
||||
ifneq ($(MICROPY_HW_ROMFS_PART0_START),)
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_ENABLE_PART0=1
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART0_START=$(MICROPY_HW_ROMFS_PART0_START)
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART0_SIZE=$(MICROPY_HW_ROMFS_PART0_SIZE)
|
||||
endif
|
||||
|
||||
ifneq ($(MICROPY_HW_ROMFS_PART1_START),)
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_ENABLE_PART1=1
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART1_START=$(MICROPY_HW_ROMFS_PART1_START)
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART1_SIZE=$(MICROPY_HW_ROMFS_PART1_SIZE)
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
# ARM specific settings
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ CFLAGS += -DMICROPY_HW_MCU_NAME='"Cortex-M7"'
|
||||
|
||||
MICROPY_HW_ROMFS_PART0_START = 0x60C00000
|
||||
MICROPY_HW_ROMFS_PART0_SIZE = 0x00400000
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_ENABLE_PART0=1
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART0_START=$(MICROPY_HW_ROMFS_PART0_START)
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART0_SIZE=$(MICROPY_HW_ROMFS_PART0_SIZE)
|
||||
|
||||
LDSCRIPT = mcu/arm/mps2.ld
|
||||
|
||||
|
||||
@@ -8,9 +8,6 @@ CFLAGS += -DCPU_FREQ_HZ=32000000
|
||||
|
||||
MICROPY_HW_ROMFS_PART0_START ?= 0x62000000
|
||||
MICROPY_HW_ROMFS_PART0_SIZE ?= 0x02000000
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_ENABLE_PART0=1
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART0_START=$(MICROPY_HW_ROMFS_PART0_START)
|
||||
CFLAGS += -DMICROPY_HW_ROMFS_PART0_SIZE=$(MICROPY_HW_ROMFS_PART0_SIZE)
|
||||
|
||||
LDSCRIPT = mcu/arm/mps3.ld
|
||||
|
||||
|
||||
Reference in New Issue
Block a user