kernel makefile分析 之include路径分析

arch/arm/Makefile

 

# Machine directory name.  This list is sorted alphanumerically
# by CONFIG_* macro name.

machine-$(CONFIG_ARCH_AAEC2000)     := aaec2000
machine-$(CONFIG_ARCH_AT91)     := at91
……

machine-$(CONFIG_ARCH_S3C2410)      := s3c2410 s3c2400 s3c2412 s3c2440 s3c2442 s3c2443

# Platform directory name.  This list is sorted alphanumerically
# by CONFIG_* macro name.
plat-$(CONFIG_ARCH_MXC)     := mxc
plat-$(CONFIG_ARCH_OMAP)    := omap
plat-$(CONFIG_PLAT_IOP)     := iop
plat-$(CONFIG_PLAT_ORION)   := orion
plat-$(CONFIG_PLAT_PXA)     := pxa
plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx s3c
plat-$(CONFIG_PLAT_S3C64XX) := s3c64xx s3c
plat-$(CONFIG_PLAT_S5PC1XX) := s5pc1xx s3c
plat-$(CONFIG_ARCH_STMP3XXX)    := stmp3xxx

 

machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y))

ifeq ($(KBUILD_SRC),)
KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs))

posted on 2011-03-25 14:21  katago  阅读(965)  评论(0编辑  收藏  举报