Tristan Matthews | 0a329cc | 2013-07-17 13:20:14 -0400 | [diff] [blame] | 1 | |
| 2 | include $(KERNEL_DIR)/.config |
| 3 | |
| 4 | # |
| 5 | # Basic kernel compilation flags. |
| 6 | # |
| 7 | export OS_CFLAGS := $(CC_DEF)PJ_LINUX_KERNEL=1 -D__KERNEL__ \ |
| 8 | -I$(KERNEL_DIR)/include -iwithprefix include \ |
| 9 | -nostdinc -msoft-float |
| 10 | |
| 11 | # |
| 12 | # Additional kernel compilation flags are taken from the kernel Makefile |
| 13 | # itself. |
| 14 | # |
| 15 | |
| 16 | KERNEL_CFLAGS := \ |
| 17 | $(shell cd $(KERNEL_DIR) ; \ |
| 18 | make script SCRIPT='@echo $$(CFLAGS) $$(CFLAGS_MODULE)' $(KERNEL_ARCH)) |
| 19 | |
| 20 | export OS_CFLAGS += $(KERNEL_CFLAGS) |
| 21 | |
| 22 | # -DMODULE -I$(KERNEL_DIR)/include -nostdinc \ |
| 23 | # -Wstrict-prototypes \ |
| 24 | # -Wno-trigraphs -fno-strict-aliasing -fno-common \ |
| 25 | # -msoft-float -m32 -fno-builtin-sprintf -fno-builtin-log2\ |
| 26 | # -fno-builtin-puts -mpreferred-stack-boundary=2 \ |
| 27 | # -fno-unit-at-a-time -march=i686 -mregparm=3 \ |
| 28 | # -iwithprefix include |
| 29 | |
| 30 | #export OS_CFLAGS += -U__i386__ -Ui386 -D__arch_um__ -DSUBARCH=\"i386\" \ |
| 31 | # -D_LARGEFILE64_SOURCE -I$(KERNEL_DIR)/arch/um/include \ |
| 32 | # -Derrno=kernel_errno \ |
| 33 | # -I$(KERNEL_DIR)/arch/um/kernel/tt/include \ |
| 34 | # -I$(KERNEL_DIR)/arch/um/kernel/skas/include \ |
| 35 | |
| 36 | |
| 37 | export OS_CXXFLAGS := |
| 38 | |
| 39 | export OS_LDFLAGS := |
| 40 | |
| 41 | export OS_SOURCES := |
| 42 | |
| 43 | |