Skip to content

Commit

Permalink
Updating the FLASH_DATA_ADDR value to the correct value for 6 slots (…
Browse files Browse the repository at this point in the history
…versus standard 8)
  • Loading branch information
maxieds committed Jun 29, 2022
1 parent 688b494 commit c3e1dab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Firmware/Chameleon-Mini/BuildScripts/custom_build_targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ mifare-classic: TARGET_CUSTOM_BUILD_NAME:=MifareClassicSupport
mifare-classic: CONFIG_SETTINGS:=$(SUPPORTED_TAGS_BUILD) -DDEFAULT_CONFIGURATION=CONFIG_NONE $(EXTRA_CONFIG_SETTINGS)
mifare-classic: custom-build

desfire: FLASH_DATA_SIZE:=0x0E000
desfire: FLASH_DATA_SIZE_CONST:=0C000 # Six settings (save some space): 6 * 0x2000
desfire: FLASH_DATA_SIZE:=0x$(FLASH_DATA_SIZE_CONST)
desfire: FLASH_DATA_SIZE_UPPER_CONST:=20000
desfire: FLASH_DATA_ADDR:=0x$(shell echo "obase=16;ibase=16;$(FLASH_DATA_SIZE_UPPER_CONST)-$(FLASH_DATA_SIZE_CONST)" | bc)
desfire: SUPPORTED_TAGS_BUILD:=-DCONFIG_MF_DESFIRE_SUPPORT
desfire: EXTRA_CONFIG_SETTINGS:=-DMEMORY_LIMITED_TESTING \
-DDESFIRE_CRYPTO1_SAVE_SPACE \
Expand All @@ -60,7 +63,10 @@ desfire: TARGET_CUSTOM_BUILD_NAME:=DESFire
desfire: CONFIG_SETTINGS:=$(SUPPORTED_TAGS_BUILD) -DDEFAULT_CONFIGURATION=CONFIG_NONE $(EXTRA_CONFIG_SETTINGS)
desfire: custom-build

desfire-dev: FLASH_DATA_SIZE:=0x0E000
desfire-dev: FLASH_DATA_SIZE_CONST:=0C000 # Six settings (save some space): 6 * 0x2000
desfire-dev: FLASH_DATA_SIZE:=0x$(FLASH_DATA_SIZE_CONST)
desfire-dev: FLASH_DATA_SIZE_UPPER_CONST:=20000
desfire-dev: FLASH_DATA_ADDR:=0x$(shell echo "obase=16;ibase=16;$(FLASH_DATA_SIZE_UPPER_CONST)-$(FLASH_DATA_SIZE_CONST)" | bc)
desfire-dev: SUPPORTED_TAGS_BUILD:=-DCONFIG_MF_DESFIRE_SUPPORT
desfire-dev: EXTRA_CONFIG_SETTINGS:=-DMEMORY_LIMITED_TESTING \
-DDESFIRE_CRYPTO1_SAVE_SPACE \
Expand Down

0 comments on commit c3e1dab

Please sign in to comment.