Subversion Repositories HelenOS

Rev

Rev 3107 | Rev 3151 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3107 Rev 3149
Line 73... Line 73...
73
	boot.S
73
	boot.S
74
 
74
 
75
COMPONENTS = \
75
COMPONENTS = \
76
	$(KERNELDIR)/kernel.bin \
76
	$(KERNELDIR)/kernel.bin \
77
	$(USPACEDIR)/srv/ns/ns \
77
	$(USPACEDIR)/srv/ns/ns \
-
 
78
	$(USPACEDIR)/app/init/init \
-
 
79
	$(USPACEDIR)/srv/devmap/devmap \
-
 
80
	$(USPACEDIR)/srv/rd/rd \
-
 
81
	$(USPACEDIR)/srv/vfs/vfs \
-
 
82
	$(USPACEDIR)/srv/fs/tmpfs/tmpfs
-
 
83
 
-
 
84
RD_TASKS = \
78
	$(USPACEDIR)/srv/fb/fb \
85
	$(USPACEDIR)/srv/fb/fb \
79
	$(USPACEDIR)/srv/kbd/kbd \
86
	$(USPACEDIR)/srv/kbd/kbd \
80
	$(USPACEDIR)/srv/console/console \
87
	$(USPACEDIR)/srv/console/console \
81
	$(USPACEDIR)/srv/vfs/vfs \
-
 
82
	$(USPACEDIR)/srv/fs/tmpfs/tmpfs \
-
 
83
	$(USPACEDIR)/srv/devmap/devmap \
-
 
84
	$(USPACEDIR)/app/init/init \
-
 
85
	$(USPACEDIR)/app/klog/klog \
88
	$(USPACEDIR)/app/klog/klog \
86
	$(USPACEDIR)/app/iramfs/iramfs \
89
	$(USPACEDIR)/app/iramfs/iramfs \
87
	$(USPACEDIR)/app/iloader/iloader \
90
	$(USPACEDIR)/app/iloader/iloader \
88
	$(USPACEDIR)/app/cli/cli
91
	$(USPACEDIR)/app/cli/cli
89
 
92
 
Line 94... Line 97...
94
 
97
 
95
all: image.boot
98
all: image.boot
96
 
99
 
97
-include Makefile.depend
100
-include Makefile.depend
98
 
101
 
99
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) $(OBJECTS)
102
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
100
	$(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) -o $@
103
	$(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
101
 
104
 
102
depend:
105
depend:
103
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
106
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
104
 
107
 
105
clean:
108
clean:
-
 
109
	-for task in $(RD_TASKS) ; do \
-
 
110
		rm -f $(USPACEDIR)/dist/sbin/`basename $$task` ; \
-
 
111
	done
106
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) $(OBJECTS) image.boot Makefile.depend
112
	-rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot Makefile.depend
107
 
113
 
108
_components.h _components.c _link.ld $(COMPONENT_OBJECTS): $(COMPONENTS) _link.ld.in
114
_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_TASKS) _link.ld.in
-
 
115
	for task in $(RD_TASKS) ; do \
-
 
116
		cp $$task $(USPACEDIR)/dist/sbin/ ; \
-
 
117
	done
-
 
118
	../../../../tools/mktmpfs.py 4096 $(USPACEDIR)/dist/ initrd.img
109
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS)
119
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img
110
 
120
 
111
%.o: %.S
121
%.o: %.S
112
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
122
	$(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
113
 
123
 
114
%.o: %.c
124
%.o: %.c