Created
November 7, 2018 04:56
-
-
Save klange/97aa37f046d057780de741ead206e443 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local@livecd ~$ sudo msk update [11/07 13:53:08] | |
[sudo] password for local: | |
local@livecd ~$ sudo msk install src src-tools [11/07 13:54:01] | |
The following packages will be installed: | |
zlib ungz src python gcc binutils build-essential src-tools | |
Continue? [Y/n] y | |
Install 'zlib'... | |
Install 'ungz'... | |
Install 'src'... | |
Install 'python'... | |
Install 'gcc'... | |
Install 'binutils'... | |
Install 'build-essential'... | |
Install 'src-tools'... | |
local@livecd ~$ cd /src [11/07 13:54:26] | |
local@livecd /src$ source ~/.eshrc [11/07 13:55:43] | |
local@livecd /src$ rehash [11/07 13:55:52] | |
local@livecd /src$ build-kernel.py [11/07 13:55:53] | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/spin.o kernel/spin.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/main.o kernel/main.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/libc.o kernel/libc.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/ds/ringbuffer.o kernel/ds/ringbuffer.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/ds/list.o kernel/ds/list.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/ds/tree.o kernel/ds/tree.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/ds/bitset.o kernel/ds/bitset.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/ds/hashmap.o kernel/ds/hashmap.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/cpu/gdt.o kernel/cpu/gdt.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/cpu/irq.o kernel/cpu/irq.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/cpu/idt.o kernel/cpu/idt.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/cpu/isr.o kernel/cpu/isr.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/fs/unixpipe.o kernel/fs/unixpipe.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/fs/tty.o kernel/fs/tty.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/fs/ramdisk.o kernel/fs/ramdisk.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/fs/pipe.o kernel/fs/pipe.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/fs/vfs.o kernel/fs/vfs.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/mem/shm.o kernel/mem/shm.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/mem/mem.o kernel/mem/mem.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/mem/alloc.o kernel/mem/alloc.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/devices/pci.o kernel/devices/pci.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/devices/cmos.o kernel/devices/cmos.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/devices/timer.o kernel/devices/timer.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/devices/fpu.o kernel/devices/fpu.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/version.o kernel/sys/version.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/panic.o kernel/sys/panic.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/module.o kernel/sys/module.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/syscall.o kernel/sys/syscall.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/process.o kernel/sys/process.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/signal.o kernel/sys/signal.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/task.o kernel/sys/task.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/sys/system.o kernel/sys/system.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/ubsan.o kernel/misc/ubsan.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/logging.o kernel/misc/logging.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/tokenize.o kernel/misc/tokenize.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/args.o kernel/misc/args.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/multiboot.o kernel/misc/multiboot.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/kprintf.o kernel/misc/kprintf.c | |
gcc -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -g -c -o kernel/misc/elf.o kernel/misc/elf.c | |
as -o kernel/isr.o kernel/isr.S | |
as -o kernel/task.o kernel/task.S | |
as -o kernel/user.o kernel/user.S | |
as -o kernel/boot.o kernel/boot.S | |
as -o kernel/tss.o kernel/tss.S | |
as -o kernel/irq.o kernel/irq.S | |
as -o kernel/gdt.o kernel/gdt.S | |
as -o kernel/idt.o kernel/idt.S | |
gcc -T kernel/link.ld -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -o .toaruos-kernel kernel/spin.o kernel/main.o kernel/libc.o kernel/ds/ringbuffer.o kernel/ds/list.o kernel/ds/tree.o kernel/ds/bitset.o kernel/ds/hashmap.o kernel/cpu/gdt.o kernel/cpu/irq.o kernel/cpu/idt.o kernel/cpu/isr.o kernel/fs/unixpipe.o kernel/fs/tty.o kernel/fs/ramdisk.o kernel/fs/pipe.o kernel/fs/vfs.o kernel/mem/shm.o kernel/mem/mem.o kernel/mem/alloc.o kernel/devices/pci.o kernel/devices/cmos.o kernel/devices/timer.o kernel/devices/fpu.o kernel/sys/version.o kernel/sys/panic.o kernel/sys/module.o kernel/sys/syscall.o kernel/sys/process.o kernel/sys/signal.o kernel/sys/task.o kernel/sys/system.o kernel/misc/ubsan.o kernel/misc/logging.o kernel/misc/tokenize.o kernel/misc/args.o kernel/misc/multiboot.o kernel/misc/kprintf.o kernel/misc/elf.o kernel/isr.o kernel/task.o kernel/user.o kernel/boot.o kernel/tss.o kernel/irq.o kernel/gdt.o kernel/idt.o -lgcc | |
nm -g .toaruos-kernel | generate_symbols.py > kernel/symbols.S | |
as -o kernel/symbols.o kernel/symbols.S | |
gcc -T kernel/link.ld -O2 -std=c99 -finline-functions -ffreestanding -Wall -Wextra -Wno-unused-function -Wno-unused-parameter -Wno-format -pedantic -fno-omit-frame-pointer -D_KERNEL_ -DKERNEL_GIT_TAG=master -nostdlib -o kernel.elf kernel/spin.o kernel/main.o kernel/libc.o kernel/ds/ringbuffer.o kernel/ds/list.o kernel/ds/tree.o kernel/ds/bitset.o kernel/ds/hashmap.o kernel/cpu/gdt.o kernel/cpu/irq.o kernel/cpu/idt.o kernel/cpu/isr.o kernel/fs/unixpipe.o kernel/fs/tty.o kernel/fs/ramdisk.o kernel/fs/pipe.o kernel/fs/vfs.o kernel/mem/shm.o kernel/mem/mem.o kernel/mem/alloc.o kernel/devices/pci.o kernel/devices/cmos.o kernel/devices/timer.o kernel/devices/fpu.o kernel/sys/version.o kernel/sys/panic.o kernel/sys/module.o kernel/sys/syscall.o kernel/sys/process.o kernel/sys/signal.o kernel/sys/task.o kernel/sys/system.o kernel/misc/ubsan.o kernel/misc/logging.o kernel/misc/tokenize.o kernel/misc/args.o kernel/misc/multiboot.o kernel/misc/kprintf.o kernel/misc/elf.o kernel/isr.o kernel/task.o kernel/user.o kernel/boot.o kernel/tss.o kernel/irq.o kernel/gdt.o kernel/idt.o kernel/symbols.o -lgcc | |
local@livecd /src$ ls -lha kernel.elf [11/07 13:56:03] | |
-rwxrwxrwx 1 local local 550.6K Nov 07 13:56 kernel.elf | |
local@livecd /src$ [11/07 13:56:11] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment