Skip to content

Commit

Permalink
Workaround to make the bl work again (some memory problems, just incr…
Browse files Browse the repository at this point in the history
…eased optimization level)
  • Loading branch information
SciLor committed Feb 27, 2021
1 parent 7decc25 commit d389c77
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
5 changes: 3 additions & 2 deletions common/buildAndShip.bootloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ source ${ROOT}/common/make/armGccPath
export PATH="${ARMGCC_BIN}:$PATH"

if [ "$1" == "debug" ]; then
DEBUG_APPENDIX=Debug
DEBUG_APPENDIX_RELOC=Debug
DEBUG_APPENDIX=Log
DEBUG_APPENDIX_ZIP=_debug
DEBUG_PATH_APPENDIX=debug/
else
Expand Down Expand Up @@ -64,7 +65,7 @@ if [ -d "$RELOC_DIR" ] && [ -d "$BOOTMGR_DIR" ]; then
echo
echo Build relocator
cd ${RELOC_DIR}
make -f Makefile${DEBUG_APPENDIX} clean all
make -f Makefile${DEBUG_APPENDIX_RELOC} clean all

echo
echo Build Preloader
Expand Down
8 changes: 1 addition & 7 deletions sd-bootloader-ng/bootmanager/MakefileDebug
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
OPT_LEVEL=g
LINK_FILE=bootmgr.debug.ld

RELOC_ADDR=0x20034000
OBJSUB=debug/bootloader
BINSUB=debug/bootloader

include MakefileBase
include MakefileLog
9 changes: 1 addition & 8 deletions sd-bootloader-ng/bootmanager/MakefileDebugPreloader
Original file line number Diff line number Diff line change
@@ -1,9 +1,2 @@
OPT_LEVEL=g
ADDITIONAL_CFLAGS=-DFIXED_BOOT_IMAGE
LINK_FILE=bootmgr.debug.ld

RELOC_ADDR=0x20034000
OBJSUB=debug/preloader
BINSUB=debug/preloader

include MakefileBase
include MakefileLogPreloader
7 changes: 7 additions & 0 deletions sd-bootloader-ng/bootmanager/MakefileLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
LINK_FILE=bootmgr.debug.ld

RELOC_ADDR=0x20034000
OBJSUB=debug/bootloader
BINSUB=debug/bootloader

include MakefileBase
8 changes: 8 additions & 0 deletions sd-bootloader-ng/bootmanager/MakefileLogPreloader
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ADDITIONAL_CFLAGS=-DFIXED_BOOT_IMAGE
LINK_FILE=bootmgr.debug.ld

RELOC_ADDR=0x20034000
OBJSUB=debug/preloader
BINSUB=debug/preloader

include MakefileBase

0 comments on commit d389c77

Please sign in to comment.