flash_size.patch
| Makefile Wed Dec 28 02:27:14 2011 +0100 | ||
|---|---|---|
| 51 | 51 | |
| 52 | 52 |
KERNCONF_MAKEOPTIONS+= "KERNLOADADDR=${KERNCONF_KERNLOADADDR}"
|
| 53 | 53 | |
| 54 |
# resolve board flash size with trailing M or K |
|
| 55 |
.if defined(BOARD_FLASH_SIZE) |
|
| 56 |
BOARD_FLASH_SIZE!=echo "${BOARD_FLASH_SIZE}" | sed -e 's/0x/ibase=16; /' -e 's/K/ * 1024/' -e 's/M/ * 1024 * 1024/' | bc
|
|
| 57 |
.endif |
|
| 58 | ||
| 54 | 59 |
.if !defined(TARGET_PROFILES) || empty(TARGET_PROFILES) |
| 55 | 60 |
# if we have flash and it size less than 8M assign profile xSMALL_ |
| 56 | 61 |
.if defined(BOARD_FLASH_SIZE) && !empty(BOARD_FLASH_SIZE) && ${BOARD_FLASH_SIZE} < 8388608
|