2
include $(KERNEL_DIR)/.config
5
# Basic kernel compilation flags.
7
export OS_CFLAGS := $(CC_DEF)PJ_LINUX_KERNEL=1 -D__KERNEL__ \
8
-I$(KERNEL_DIR)/include -iwithprefix include \
12
# Additional kernel compilation flags are taken from the kernel Makefile
17
$(shell cd $(KERNEL_DIR) ; \
18
make script SCRIPT='@echo $$(CFLAGS) $$(CFLAGS_MODULE)' $(KERNEL_ARCH))
20
export OS_CFLAGS += $(KERNEL_CFLAGS)
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
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 \