Allow specifying a negative number as the Toradex config block offset
by changing its type from hex to int. This is required in the eMMC case
where this is used to force a location at the end of respective
hardware boot partition.
While at it fix SPL compilation by not compiling configblock handling
in this case for now.
default y
config TRDX_CFG_BLOCK_OFFSET
- default "0x800"
+ default "2048"
config TRDX_CFG_BLOCK_2ND_ETHADDR
default y
depends on TRDX_CFG_BLOCK_IS_IN_MMC
config TRDX_CFG_BLOCK_OFFSET
- hex "Toradex config block offset"
+ int "Toradex config block offset"
help
Specify the byte offset of the Toradex config block within the flash
device the config block is stored on.
# Common for all Toradex modules
+ifeq ($(CONFIG_SPL_BUILD),y)
+# necessary to create built-in.o
+obj- := __dummy__.o
+else
obj-$(CONFIG_TRDX_CFG_BLOCK) += ../common/configblock.o
+endif