2 # Makefile for the linux kernel.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 USE_STANDARD_AS_RULE
:= true
14 obj-y
:= arch.o hw.o
#dma.o mm.o
19 export-objs
:= hw.o leds.o
21 obj-
$(CONFIG_LEDS
) += leds.o
23 # Files that are both resident and modular; remove from modular.
25 obj-m
:= $(filter-out $(obj-y
), $(obj-m
))
27 # Translate to Rules.make lists.
29 O_OBJS
:= $(filter-out $(export-objs
), $(obj-y
))
30 OX_OBJS
:= $(filter $(export-objs
), $(obj-y
))
31 M_OBJS
:= $(sort $(filter-out $(export-objs
), $(obj-m
)))
32 MX_OBJS
:= $(sort $(filter $(export-objs
), $(obj-m
)))
34 include $(TOPDIR
)/Rules.make