Subversion Repositories HelenOS

Rev

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

Rev 3435 Rev 3536
Line 61... Line 61...
61
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
61
	LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld
62
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
62
	OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy
63
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
63
	OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump
64
endif
64
endif
65
 
65
 
66
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3
66
CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mhard-float -mips3 -pipe
67
 
67
 
68
ifdef REVISION
68
ifdef REVISION
69
	CFLAGS += "-DREVISION=\"$(REVISION)\""
69
	CFLAGS += "-DREVISION=\"$(REVISION)\""
70
endif
70
endif
71
 
71
 
Line 122... Line 122...
122
 
122
 
123
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
123
image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
124
	$(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
124
	$(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
125
 
125
 
126
depend:
126
depend:
127
	-makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null
127
	-makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null
128
 
128
 
129
clean:
129
clean:
130
	-for file in $(RD_SRVS) ; do \
130
	-for file in $(RD_SRVS) ; do \
131
		rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \
131
		rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \
132
	done
132
	done
Line 144... Line 144...
144
	done
144
	done
145
ifeq ($(RDFMT),tmpfs)
145
ifeq ($(RDFMT),tmpfs)
146
	../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs
146
	../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs
147
endif
147
endif
148
ifeq ($(RDFMT),fat)
148
ifeq ($(RDFMT),fat)
149
	../../../../tools/mkfat.sh $(USPACEDIR)/dist/ initrd.fs
149
	../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs
150
endif
150
endif
151
	../../../../tools/mkhord.py 16384 initrd.fs initrd.img
151
	../../../../tools/mkhord.py 16384 initrd.fs initrd.img
152
	rm initrd.fs
152
	rm initrd.fs
153
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned int" $(COMPONENTS) ./initrd.img
153
	../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned int" $(COMPONENTS) ./initrd.img
154
 
154