CONFIG_SYS_TEXT_BASE := 0x700ff000
__HAVE_ARCH_GENERIC_BOARD := y
+
PLATFORM_CPPFLAGS += -Werror
+ifneq ($(CONFIG_SECURE_BOOT),)
+# promote config variable to linker script
+ PLATFORM_CPPFLAGS += -DCONFIG_SECURE_BOOT
+endif
+
LOGO_BMP = logos/karo.bmp
OBJCOPYFLAGS += -j .pad
nand_erase_options_t erase_opts = { 0, };
size_t actual;
size_t prg_length = max_len - skip * mtd->erasesize;
- int prg_start = (start_block + skip) * mtd->erasesize;
+ int prg_start = start_block * mtd->erasesize;
- erase_opts.offset = start_block * mtd->erasesize;
+ erase_opts.offset = (start_block - skip) * mtd->erasesize;
erase_opts.length = max_len;
erase_opts.quiet = 1;
self_ptr:
.word ivt_header
app_code_csf:
+#ifdef CONFIG_SECURE_BOOT
.word __csf_data
+#else
+ .word 0x0
+#endif
.word 0x0
boot_data:
.long CONFIG_SYS_TEXT_BASE
. = ALIGN(4096);
} = 0x01f0adde
- _image_binary_end = . + (__ivt_end - __uboot_img_start);
-
.uboot_img_end :
{
KEEP(*(.__uboot_img_end))
}
- . = CONFIG_SYS_TEXT_BASE + 0x70000;
+#ifdef CONFIG_SECURE_BOOT
.csf_data :
{
*(.__csf_data)
. = . + 0x2000;
}
+#endif
__uboot_img_len = . - __uboot_img_start;
/*
KEEP(*(.__bss_end));
}
- .dynsym _image_binary_end : { *(.dynsym) }
/DISCARD/ : { *(.debug*) }
/DISCARD/ : { *(.note*) }
/DISCARD/ : { *(.comment*) }
#define CONFIG_BOARD_LATE_INIT
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_SYS_GENERIC_BOARD
+#define CONFIG_CMD_GPIO
/* LCD Logo and Splash screen support */
#ifdef CONFIG_LCD