Statistics
| Branch: | Revision:

root / prex-0.9.0 / bsp / drv / Makefile @ 03e9c04a

History | View | Annotate | Download (1.08 KB)

1
include $(SRCDIR)/mk/own.mk
2

    
3
TARGET:=	drv.ko
4

    
5
#MAP:= 		drv.map
6
#DISASM:= 	drv.lst
7
#SYMBOL:= 	drv.sym
8

    
9
_RELOC_OBJ_:=	1
10
_KERNEL_:=	1
11
DEFS+=		KERNEL
12

    
13
include $(CURDIR)/dev/base/Makefile.inc
14
include $(CURDIR)/dev/block/Makefile.inc
15
include $(CURDIR)/dev/cpufreq/Makefile.inc
16
include $(CURDIR)/dev/dma/Makefile.inc
17
include $(CURDIR)/dev/input/Makefile.inc
18
include $(CURDIR)/dev/misc/Makefile.inc
19
include $(CURDIR)/dev/rtc/Makefile.inc
20
include $(CURDIR)/dev/serial/Makefile.inc
21
include $(CURDIR)/dev/video/Makefile.inc
22

    
23
include $(CURDIR)/lib/Makefile.inc
24
-include $(CURDIR)/$(ARCH)/arch/Makefile.inc
25
-include $(CURDIR)/$(ARCH)/$(PLATFORM)/Makefile.inc
26

    
27
LIBSDIR+=	$(SRCDIR)/conf
28
INCSDIR+=	$(CURDIR)/include $(CURDIR)/$(ARCH)/include
29
ifndef LDSCRIPT
30
LDSCRIPT:=	$(CURDIR)/$(ARCH)/arch/driver.ld
31
endif
32

    
33
include $(SRCDIR)/mk/common.mk
34

    
35
$(TARGET):  $(OBJS) $(LIBS) $(LDSCRIPT)
36
	$(call echo-file,LD     ,$@)
37
	$(LD) $(LDFLAGS_S) $(OUTPUT_OPTION) $(OBJS) $(LIBS) $(PLATFORM_LIBS)
38
	$(RM) $@
39
	$(LD) $(LDFLAGS) $(OUTPUT_OPTION) $(OBJS) $(LIBS) $(PLATFORM_LIBS)
40
	$(ASMGEN)
41
	$(SYMGEN)
42
	$(STRIP) --strip-debug --strip-unneeded $@