update makefile
This commit is contained in:
parent
5781a19f84
commit
9b5c36b161
@ -10,18 +10,18 @@
|
|||||||
# - SD_VERSION : e.g 5.1.0
|
# - SD_VERSION : e.g 5.1.0
|
||||||
# - SD_HEX : path to bootloader hex binary
|
# - SD_HEX : path to bootloader hex binary
|
||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
VERSION_MAJOR = 5
|
VERSION_MAJOR = 6
|
||||||
VERSION_MINOR = 1
|
VERSION_MINOR = 0
|
||||||
VERSION_REVISION = 0
|
VERSION_REVISION = 0
|
||||||
|
|
||||||
SDK_PATH = ../../nRF5_SDK_11.0.0_89a8197/components
|
SDK_PATH = ../../nRF5_SDK_11.0.0_89a8197/components
|
||||||
SRC_PATH = ..
|
SRC_PATH = ..
|
||||||
|
|
||||||
SD_NAME = s132
|
SD_NAME = s140
|
||||||
SD_VERSION = 5.1.0
|
SD_VERSION = 6.0.0
|
||||||
|
|
||||||
SD_PATH = ../../softdevice/$(SD_NAME)/$(SD_VERSION)
|
SD_PATH = ../../softdevice/$(SD_NAME)/$(SD_VERSION)
|
||||||
SD_HEX = $(SD_PATH)/hex/$(SD_NAME)_nrf52_$(SD_VERSION)_softdevice.hex
|
SD_HEX = $(SD_PATH)/hex/$(SD_NAME)_nrf52840_$(SD_VERSION)-6.alpha_softdevice.hex
|
||||||
LINKER_SCRIPT = $(SRC_PATH)/$(SD_NAME)_$(SD_VERSION).ld
|
LINKER_SCRIPT = $(SRC_PATH)/$(SD_NAME)_$(SD_VERSION).ld
|
||||||
|
|
||||||
ifeq ($(VERSION_SINGLEBANK),1)
|
ifeq ($(VERSION_SINGLEBANK),1)
|
||||||
@ -182,28 +182,16 @@ BUILD_DIRECTORIES := $(sort $(OBJECT_DIRECTORY) $(OUTPUT_BINARY_DIRECTORY) $(LIS
|
|||||||
# Defined Symbol (MACROS)
|
# Defined Symbol (MACROS)
|
||||||
#*************************
|
#*************************
|
||||||
CFLAGS += -DBOOTLOADER_VERSION=0x0$(VERSION_MAJOR)0$(VERSION_MINOR)0$(VERSION_REVISION)0$(VERSION_SINGLEBANK)UL
|
CFLAGS += -DBOOTLOADER_VERSION=0x0$(VERSION_MAJOR)0$(VERSION_MINOR)0$(VERSION_REVISION)0$(VERSION_SINGLEBANK)UL
|
||||||
CFLAGS += -DNRF52
|
CFLAGS += -DNRF52840_XXAA
|
||||||
CFLAGS += -DNRF52_PAN_12
|
|
||||||
CFLAGS += -DNRF52_PAN_15
|
|
||||||
CFLAGS += -DNRF52_PAN_58
|
|
||||||
CFLAGS += -DNRF52_PAN_55
|
|
||||||
CFLAGS += -DNRF52_PAN_54
|
|
||||||
CFLAGS += -DNRF52_PAN_31
|
|
||||||
CFLAGS += -DNRF52_PAN_30
|
|
||||||
CFLAGS += -DNRF52_PAN_51
|
|
||||||
CFLAGS += -DNRF52_PAN_36
|
|
||||||
CFLAGS += -DNRF52_PAN_53
|
|
||||||
CFLAGS += -D__HEAP_SIZE=0
|
CFLAGS += -D__HEAP_SIZE=0
|
||||||
CFLAGS += -DS132
|
CFLAGS += -DS140
|
||||||
CFLAGS += -DCONFIG_GPIO_AS_PINRESET
|
CFLAGS += -DCONFIG_GPIO_AS_PINRESET
|
||||||
CFLAGS += -DBLE_STACK_SUPPORT_REQD
|
CFLAGS += -DBLE_STACK_SUPPORT_REQD
|
||||||
CFLAGS += -DBSP_DEFINES_ONLY
|
CFLAGS += -DBSP_DEFINES_ONLY
|
||||||
CFLAGS += -DSWI_DISABLE0
|
CFLAGS += -DSWI_DISABLE0
|
||||||
CFLAGS += -DNRF52_PAN_20
|
|
||||||
CFLAGS += -DNRF52_PAN_64
|
|
||||||
CFLAGS += -DSOFTDEVICE_PRESENT
|
CFLAGS += -DSOFTDEVICE_PRESENT
|
||||||
CFLAGS += -DNRF52_PAN_62
|
|
||||||
CFLAGS += -DNRF52_PAN_63
|
CFLAGS += -DFLOAT_ABI_HARD
|
||||||
|
|
||||||
CFLAGS += -DDFU_APP_DATA_RESERVED=7*4096
|
CFLAGS += -DDFU_APP_DATA_RESERVED=7*4096
|
||||||
|
|
||||||
@ -238,28 +226,16 @@ LDFLAGS += --specs=nano.specs -lc -lnosys
|
|||||||
#
|
#
|
||||||
#******************************************************************************
|
#******************************************************************************
|
||||||
ASMFLAGS += -x assembler-with-cpp
|
ASMFLAGS += -x assembler-with-cpp
|
||||||
ASMFLAGS += -DNRF52
|
ASMFLAGS += -DNRF52840_XXAA
|
||||||
ASMFLAGS += -DNRF52_PAN_12
|
|
||||||
ASMFLAGS += -DNRF52_PAN_15
|
|
||||||
ASMFLAGS += -DNRF52_PAN_58
|
|
||||||
ASMFLAGS += -DNRF52_PAN_55
|
|
||||||
ASMFLAGS += -DNRF52_PAN_54
|
|
||||||
ASMFLAGS += -DNRF52_PAN_31
|
|
||||||
ASMFLAGS += -DNRF52_PAN_30
|
|
||||||
ASMFLAGS += -DNRF52_PAN_51
|
|
||||||
ASMFLAGS += -DNRF52_PAN_36
|
|
||||||
ASMFLAGS += -DNRF52_PAN_53
|
|
||||||
ASMFLAGS += -D__HEAP_SIZE=0
|
ASMFLAGS += -D__HEAP_SIZE=0
|
||||||
ASMFLAGS += -DS132
|
ASMFLAGS += -DS140
|
||||||
ASMFLAGS += -DCONFIG_GPIO_AS_PINRESET
|
ASMFLAGS += -DCONFIG_GPIO_AS_PINRESET
|
||||||
ASMFLAGS += -DBLE_STACK_SUPPORT_REQD
|
ASMFLAGS += -DBLE_STACK_SUPPORT_REQD
|
||||||
ASMFLAGS += -DBSP_DEFINES_ONLY
|
ASMFLAGS += -DBSP_DEFINES_ONLY
|
||||||
ASMFLAGS += -DSWI_DISABLE0
|
ASMFLAGS += -DSWI_DISABLE0
|
||||||
ASMFLAGS += -DNRF52_PAN_20
|
|
||||||
ASMFLAGS += -DNRF52_PAN_64
|
|
||||||
ASMFLAGS += -DSOFTDEVICE_PRESENT
|
ASMFLAGS += -DSOFTDEVICE_PRESENT
|
||||||
ASMFLAGS += -DNRF52_PAN_62
|
|
||||||
ASMFLAGS += -DNRF52_PAN_63
|
ASMFLAGS += -DFLOAT_ABI_HARD
|
||||||
|
|
||||||
MAKEFILE_NAME := $(MAKEFILE_LIST)
|
MAKEFILE_NAME := $(MAKEFILE_LIST)
|
||||||
MAKEFILE_DIR := $(dir $(MAKEFILE_NAME) )
|
MAKEFILE_DIR := $(dir $(MAKEFILE_NAME) )
|
||||||
|
Loading…
Reference in New Issue
Block a user