Skip to content

Commit

Permalink
Support Gallagher when using make desfire
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaspre committed Oct 27, 2022
1 parent 1333762 commit 108d45c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ This notice must be retained at the top of all source files where indicated.
#endif

#ifdef MEMORY_LIMITED_TESTING
#define DESFIRE_MAX_KEYS (2)
#define DESFIRE_MAX_KEYS (3)
#else
#ifdef DESFIRE_CUSTOM_MAX_KEYS
#define DESFIRE_MAX_KEYS (DESFIRE_CUSTOM_MAX_KEYS)
Expand Down
14 changes: 0 additions & 14 deletions Firmware/Chameleon-Mini/BuildScripts/custom_build_targets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,6 @@ desfire: TARGET_CUSTOM_BUILD_NAME:=DESFire
desfire: CONFIG_SETTINGS:=$(SUPPORTED_TAGS_BUILD) -DDEFAULT_CONFIGURATION=CONFIG_NONE $(EXTRA_CONFIG_SETTINGS)
desfire: custom-build

desfire-gallagher: FLASH_DATA_SIZE_CONST:=0F000 # Eight settings (save some space): 4 * 0x2000
desfire-gallagher: FLASH_DATA_SIZE:=0x$(FLASH_DATA_SIZE_CONST)
desfire-gallagher: FLASH_DATA_SIZE_UPPER_CONST:=20000
desfire-gallagher: FLASH_DATA_ADDR:=0x$(shell echo $$(( 0x$(FLASH_DATA_SIZE_UPPER_CONST) - 0x$(FLASH_DATA_SIZE_CONST) )) | xargs -0 printf %X)
desfire-gallagher: SUPPORTED_TAGS_BUILD:=-DCONFIG_MF_DESFIRE_SUPPORT
desfire-gallagher: EXTRA_CONFIG_SETTINGS:=-DDESFIRE_CUSTOM_MAX_APPS=3
-DDESFIRE_CUSTOM_MAX_FILES=4 \
-DDESFIRE_CUSTOM_MAX_KEYS=3 \
-DDESFIRE_CRYPTO1_SAVE_SPACE \
-finline-small-functions
desfire-gallagher: TARGET_CUSTOM_BUILD_NAME:=DESFire_Gallagher
desfire-gallagher: CONFIG_SETTINGS:=$(SUPPORTED_TAGS_BUILD) -DDEFAULT_CONFIGURATION=CONFIG_NONE $(EXTRA_CONFIG_SETTINGS)
desfire-gallagher: custom-build

desfire-dev: FLASH_DATA_SIZE_CONST:=08000 # Four settings (save some space): 4 * 0x2000
desfire-dev: FLASH_DATA_SIZE:=0x$(FLASH_DATA_SIZE_CONST)
desfire-dev: FLASH_DATA_SIZE_UPPER_CONST:=20000
Expand Down

0 comments on commit 108d45c

Please sign in to comment.