Commit e6c58e7a authored by WowOS's avatar WowOS
Browse files

修改makefile

parent 45d60373
No related merge requests found
Showing with 3 additions and 56 deletions
+3 -56
......@@ -9,7 +9,7 @@ keywords = ["riscv", "register", "peripheral"]
license = "ISC"
[dependencies]
bare-metal = "0.2.5"
bare-metal = {path = "../bare-metal"}
bitflags = "1.0"
bit_field = "0.10.0"
log = "0.4"
......
......@@ -103,8 +103,8 @@ kernel:
kernel-pull: # user-apps
@echo Platform: $(BOARD)
@cp src/linker-$(BOARD).ld src/linker.ld
# @cargo build --offline --release --features "board_$(BOARD)"
@cargo build --release --features "board_$(BOARD)"
@cargo build --offline --release --features "board_$(BOARD)"
# @cargo build --release --features "board_$(BOARD)"
@rm src/linker.ld
@rm -f ./user_shell
......
OUTPUT_ARCH(riscv)
ENTRY(_start)
BASE_ADDRESS = 0x80200000;
SECTIONS
{
. = BASE_ADDRESS;
skernel = .;
stext = .;
.text : {
*(.text.entry)
. = ALIGN(4K);
strampoline = .;
*(.text.trampoline);
. = ALIGN(4K);
*(.text .text.*)
}
. = ALIGN(4K);
etext = .;
srodata = .;
.rodata : {
*(.rodata .rodata.*)
*(.srodata .srodata.*)
}
. = ALIGN(4K);
erodata = .;
sdata = .;
.data : {
*(.data .data.*)
*(.sdata .sdata.*)
}
. = ALIGN(4K);
edata = .;
sbss_with_stack = .;
.bss : {
*(.bss.stack)
sbss = .;
*(.bss .bss.*)
*(.sbss .sbss.*)
}
. = ALIGN(4K);
ebss = .;
ekernel = .;
/DISCARD/ : {
*(.eh_frame)
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment