Rev 3448 | Rev 3557 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3448 | Rev 3535 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
58 | endif |
58 | endif |
59 | 59 | ||
60 | CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc -msoft-float -m32 |
60 | CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../../genarch -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -mcpu=powerpc -msoft-float -m32 -pipe |
61 | 61 | ||
62 | ifdef REVISION |
62 | ifdef REVISION |
63 | CFLAGS += "-DREVISION=\"$(REVISION)\"" |
63 | CFLAGS += "-DREVISION=\"$(REVISION)\"" |
64 | endif |
64 | endif |
65 | 65 | ||
Line 121... | Line 121... | ||
121 | 121 | ||
122 | image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) |
122 | image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) |
123 | $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@ |
123 | $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@ |
124 | 124 | ||
125 | depend: |
125 | depend: |
126 | -makedepend $(DEFS) $(CFLAGS) -f - $(SOURCES) > Makefile.depend 2> /dev/null |
126 | -makedepend -f - -- $(DEFS) $(CFLAGS) -- $(SOURCES) > Makefile.depend 2> /dev/null |
127 | 127 | ||
128 | clean: |
128 | clean: |
129 | -for file in $(RD_SRVS) ; do \ |
129 | -for file in $(RD_SRVS) ; do \ |
130 | rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ |
130 | rm -f $(USPACEDIR)/dist/srv/`basename $$file` ; \ |
131 | done |
131 | done |
Line 149... | Line 149... | ||
149 | done |
149 | done |
150 | ifeq ($(RDFMT),tmpfs) |
150 | ifeq ($(RDFMT),tmpfs) |
151 | ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs |
151 | ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs |
152 | endif |
152 | endif |
153 | ifeq ($(RDFMT),fat) |
153 | ifeq ($(RDFMT),fat) |
154 | ../../../../tools/mkfat.sh $(USPACEDIR)/dist/ initrd.fs |
154 | ../../../../tools/mkfat.py $(USPACEDIR)/dist/ initrd.fs |
155 | endif |
155 | endif |
156 | ../../../../tools/mkhord.py 4096 initrd.fs initrd.img |
156 | ../../../../tools/mkhord.py 4096 initrd.fs initrd.img |
157 | rm initrd.fs |
157 | rm initrd.fs |
158 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img |
158 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img |
159 | 159 |