This makes applying custom compiler/linker/assembler flags actually work.
export QEMU = qemu-system-i386 -monitor stdio
export GIT_REV = $(shell git describe --long HEAD)
export REAL_CC = $(CROSS_COMPILE)$(CC)
export QEMU = qemu-system-i386 -monitor stdio
export GIT_REV = $(shell git describe --long HEAD)
export REAL_CC = $(CROSS_COMPILE)$(CC)
+export CFLAGS
+export LDFLAGS
+export ASFLAGS
MAKEFLAGS += -rR
default: kernel/kernel.elf bootloader
MAKEFLAGS += -rR
default: kernel/kernel.elf bootloader
- $(AS) $(ASFLAGS_BASE) -f bin $< -o $@
+ $(AS) $(ASFLAGS_BASE) $(ASFLAGS) -f bin $< -o $@
.PHONY : default clean stage3
.PHONY : default clean stage3