fix(system): fixup h13_pv build errors.

This commit is contained in:
kangjun 2024-06-07 18:47:22 +08:00
parent af06caa161
commit 8a1a6120a9
5 changed files with 78 additions and 1 deletions

View File

@ -24,7 +24,7 @@ declare -A board_name_map=(
["v851s_fastboot_sc1725v01_nor"]="v851-e907-sc1725v01-board"
["v851s_fastboot_sl100_back"]="v851-e907-sl100_back-board"
["v851s3_fastboot_sl100_front"]="v851s3-e907-sl100-front-board"
["v851s_fastboot_h13_pv"]="v851s3-e907-h13-pv-board"
["v851s_fastboot_h13_pv"]="v851-e907-h13-pv-board"
)
function get_melis_board_name() {

View File

@ -18,3 +18,5 @@ drivers/dram/sun50iw10p1/libchipid
drivers/dram/sun50iw11p1/libchipid
*.patch
*.swp
!boot0.lds
!fes1.lds

View File

@ -0,0 +1,39 @@
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
. = BOOT0ADDR;
. = ALIGN(4);
.head :
{
main/boot0_head.o (.rodata)
}
. = ALIGN(1);
.text :
{
CPUDIR/boot0_entry.o (.text)
SOLUTIONDIR/libsolution.o (.text)
*(.text)
}
. = ALIGN(16);
.rodata : { *(.rodata) }
. = ALIGN(16);
.data : { *(.data) }
. = ALIGN(4);
.bss :
{
__bss_start = .;
*(.bss)
}
. = ALIGN(4);
__bss_end = .;
_end = .;
ASSERT(. <= (BOOT0ADDR + BOOT0SIZE), "boot0 image has exceeded its limit.")
}

View File

@ -0,0 +1,36 @@
OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
OUTPUT_ARCH(arm)
ENTRY(_start)
SECTIONS
{
. = FES1ADDR;
. = ALIGN(4);
.head :
{
main/fes1_head.o (.rodata)
}
.text :
{
CPUDIR/fes1_entry.o (.text)
*(.text)
}
. = ALIGN(16);
.rodata : { *(.rodata) }
. = ALIGN(16);
.data : { *(.data) }
. = ALIGN(4);
.bss :
{
__bss_start = .;
*(.bss)
}
. = ALIGN(4);
__bss_end = .;
_end = .;
}

Binary file not shown.