mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
mpfs: Remove the ddrstorage section from the OpenSBI package
It is not really needed; g_hart_stacks is only used during SBI init as a temporary stack area. We can use the scratch area buffers for this, as the scratch areas define almost 4K of extra space, which is used for exception stacks anyway.
This commit is contained in:
committed by
Petro Karashchenko
parent
838690fc9f
commit
b8b541fbf5
@@ -27,11 +27,11 @@
|
||||
ifeq ($(CONFIG_MPFS_OPENSBI),y)
|
||||
define POSTBUILD
|
||||
$(Q) echo "SBI: Creating nuttx.sbi file"
|
||||
$(Q) $(OBJCOPY) -O binary -j .text.sbi -j .ddrstorage $(BIN) nuttx.sbi
|
||||
$(Q) $(OBJCOPY) -O binary -j .text.sbi $(BIN) nuttx.sbi
|
||||
$(Q) ([ $$? -eq 0 ] && echo "Done.")
|
||||
$(Q) echo nuttx.sbi >> nuttx.manifest
|
||||
$(Q) echo "SBI: Removing unnecessary sections from nuttx binary"
|
||||
$(Q) $(OBJCOPY) -O binary -R .text.sbi -R .l2_scratchpad -R .ddrstorage $(BIN) nuttx.bin
|
||||
$(Q) $(OBJCOPY) -O binary -R .text.sbi -R .l2_scratchpad $(BIN) nuttx.bin
|
||||
$(Q) ([ $$? -eq 0 ] && echo "Done.")
|
||||
endef
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user