Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-17065-1686958
OSKernel2023-WowOS-1410
Commits
e6c58e7a
Commit
e6c58e7a
authored
1 year ago
by
WowOS
Browse files
Options
Download
Patches
Plain Diff
修改makefile
parent
45d60373
master
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dependency/riscv/Cargo.toml
+1
-1
dependency/riscv/Cargo.toml
os/Makefile
+2
-2
os/Makefile
os/src/linker.ld
+0
-53
os/src/linker.ld
with
3 additions
and
56 deletions
+3
-56
dependency/riscv/Cargo.toml
+
1
−
1
View file @
e6c58e7a
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
os/Makefile
+
2
−
2
View file @
e6c58e7a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
os/src/linker.ld
deleted
100644 → 0
+
0
−
53
View file @
45d60373
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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets