Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
chickadee
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Matija Benko
chickadee
Commits
8bef8dfb
Commit
8bef8dfb
authored
Mar 25, 2021
by
James Foster
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update `GNUmakefile` for spacing and to add `run-debugger` command.
parent
9d8cfaa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
GNUmakefile
GNUmakefile
+6
-5
No files found.
GNUmakefile
View file @
8bef8dfb
...
...
@@ -132,8 +132,8 @@ $(OBJDIR)/u-asm.h: u-lib.hh lib.hh types.h x86-64.h build/mkkernelasm.awk $(BUIL
$(OBJDIR)/k-firstprocess.h
:
$(
call
run,echo
'#ifndef CHICKADEE_FIRST_PROCESS'
>
$@
;
echo
'#define CHICKADEE_FIRST_PROCESS "
$(CHICKADEE_FIRST_PROCESS)
"'
>>
$@
;
echo
'#endif'
>>
$@
,CREATE
$@
)
$(OBJDIR)/chickadee.gdb
:
$(call
run,echo
'add-symbol-file obj/p-$(CHICKADEE_FIRST_PROCESS).full 0x100000'
>$@,CREATE
$@)
$(OBJDIR)/chickadee.gdb
:
$(
call
run,echo
'add-symbol-file obj/p-
$(CHICKADEE_FIRST_PROCESS)
.full 0x100000'
>
$@
,CREATE
$@
)
$(OBJDIR)/k-initfs.cc
:
build/mkinitfs.awk
\
$(INITFS_CONTENTS) $(INITFS_BUILDSTAMP) $(KERNELBUILDSTAMPS)
...
...
@@ -228,7 +228,7 @@ QEMUIMG = -M q35 \
run
:
run-$(QEMUDISPLAY)
@
:
run-gdb-report
:
@
if
test
"
$(QEMUGDB)
"
=
"-gdb tcp::12949"
;
then
echo
'* Run `gdb -x build/
weensyos
.gdb` to connect gdb to qemu.'
1>&2
;
fi
@
if
test
"
$(QEMUGDB)
"
=
"-gdb tcp::12949"
;
then
echo
'* Run `gdb -x build/
chickadee
.gdb` to connect gdb to qemu.'
1>&2
;
fi
run-graphic
:
$(QEMUIMAGEFILES) check-qemu run-gdb-report
$(
call
run,
$(QEMU_PRELOAD)
$(QEMU)
$(QEMUOPT)
$(QEMUGDB)
$(QEMUIMG)
,QEMU
$<
)
run-console
:
$(QEMUIMAGEFILES) check-qemu-console run-gdb-report
...
...
@@ -242,8 +242,9 @@ run-gdb-console: $(QEMUIMAGEFILES) check-qemu-console
run-gdb-graphic
:
$(QEMUIMAGEFILES) check-qemu
$(
call
run,
$(QEMU_PRELOAD)
$(QEMU)
$(QEMUOPT)
-S
-gdb
tcp::12949
$(QEMUIMG)
&,QEMU
$<
)
$(
call
run,sleep 0.5
;
gdb
-x
build/chickadee.gdb,GDB
)
run-debug
:
$(call
run,gdb
-x
build/chickadee.gdb,GDB)
run-debugger
:
$(
call
run,gdb
-x
build/chickadee.gdb,GDB
)
run-$(RUNSUFFIX)
:
run
run-graphic-$(RUNSUFFIX)
:
run-graphic
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment