diff options
-rw-r--r-- | build/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/build/Makefile b/build/Makefile index c657748..ac6c818 100644 --- a/build/Makefile +++ b/build/Makefile @@ -1,19 +1,19 @@ -HOST_CC=gcc +HOST_CC ?= gcc -HOST_CFLAGS=-Wall -std=gnu99 -I../src/lib/rs232 -O3 +HOST_CFLAGS ?= -Wall -std=gnu99 -I../src/lib/rs232 -O3 -ARM_CC=arm-none-eabi-gcc +ARM_CC ?= arm-none-eabi-gcc -ARM_CFLAGS=-mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra $(addprefix -I, $(dirs)) -ELFFLAGS=-nostdlib -lgcc +ARM_CFLAGS ?= -mcpu=cortex-a7 -ffreestanding -std=gnu11 -Wall -Wextra $(addprefix -I, $(dirs)) +ELFFLAGS ?= -nostdlib -lgcc -KERNEL_STAGE2_OBJECTS=setup.o interrupt_vector.o interrupts.o uart.o demo_functionality.o paging.o ramfs_embeddable.o ramfs.o strings.o io.o atags.o scheduler.o +KERNEL_STAGE2_OBJECTS := setup.o interrupt_vector.o interrupts.o uart.o demo_functionality.o paging.o ramfs_embeddable.o ramfs.o strings.o io.o atags.o scheduler.o -PL_0_TEST_OBJECTS=PL0_utils.o svc.o PL0_test.o strings.o io.o +PL_0_TEST_OBJECTS := PL0_utils.o svc.o PL0_test.o strings.o io.o -LOADER_STAGE2_OBJECTS=uart.o strings.o io.o loader_stage2.o +LOADER_STAGE2_OBJECTS := uart.o strings.o io.o loader_stage2.o -RAMFS_FILES=PL0_test.img +RAMFS_FILES := PL0_test.img all : kernel.img |