mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
hello updated to use new baremetal environment
This commit is contained in:
parent
c5fff88e6c
commit
70c2b7512d
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -I ../include -O2
|
CFLAGS = -I ../include -O2
|
||||||
|
|
||||||
DEPS = hello.o ../lib/baremetal.a
|
DEPS = ../lib/_main.o hello.o ../lib/baremetal.a
|
||||||
|
|
||||||
hello.elf: $(DEPS)
|
hello.elf: $(DEPS)
|
||||||
ld -defsym HEAPSIZE=0x100 -T elfImage.lds $(DEPS) -o hello.elf
|
ld -defsym HEAPSIZE=0x100 -T elfImage.lds $(DEPS) -o hello.elf
|
||||||
|
|
|
@ -21,7 +21,7 @@ OUTPUT_ARCH(i386)
|
||||||
|
|
||||||
HEAPSIZE = DEFINED(HEAPSIZE) ? HEAPSIZE : 0x8000;
|
HEAPSIZE = DEFINED(HEAPSIZE) ? HEAPSIZE : 0x8000;
|
||||||
|
|
||||||
ENTRY(main)
|
ENTRY(_main)
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
/* . = 0x10000 - (elf_note - elf_header); */
|
/* . = 0x10000 - (elf_note - elf_header); */
|
||||||
|
|
Loading…
Add table
Reference in a new issue