Rev 3401 | Rev 3448 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3401 | Rev 3403 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | include ../../../Makefile.config |
30 | include ../../../Makefile.config |
31 | 31 | ||
32 | ## Toolchain configuration |
32 | ## Toolchain configuration |
33 | # |
33 | # |
34 | 34 | ||
- | 35 | ifndef CROSS_PREFIX |
|
- | 36 | CROSS_PREFIX = /usr/local |
|
- | 37 | endif |
|
- | 38 | ||
35 | BFD_NAME = elf32-powerpc |
39 | BFD_NAME = elf32-powerpc |
36 | BFD_ARCH = powerpc:common |
40 | BFD_ARCH = powerpc:common |
37 | TARGET = ppc-linux-gnu |
41 | TARGET = ppc-linux-gnu |
38 | TOOLCHAIN_DIR = /usr/local/ppc/bin |
42 | TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc/bin |
39 | 43 | ||
40 | ifeq ($(COMPILER),gcc_native) |
44 | ifeq ($(COMPILER),gcc_native) |
41 | CC = gcc |
45 | CC = gcc |
42 | AS = as |
46 | AS = as |
43 | LD = ld |
47 | LD = ld |
Line 77... | Line 81... | ||
77 | $(USPACEDIR)/srv/ns/ns \ |
81 | $(USPACEDIR)/srv/ns/ns \ |
78 | $(USPACEDIR)/srv/loader/loader \ |
82 | $(USPACEDIR)/srv/loader/loader \ |
79 | $(USPACEDIR)/app/init/init \ |
83 | $(USPACEDIR)/app/init/init \ |
80 | $(USPACEDIR)/srv/devmap/devmap \ |
84 | $(USPACEDIR)/srv/devmap/devmap \ |
81 | $(USPACEDIR)/srv/rd/rd \ |
85 | $(USPACEDIR)/srv/rd/rd \ |
82 | $(USPACEDIR)/srv/vfs/vfs \ |
86 | $(USPACEDIR)/srv/vfs/vfs |
- | 87 | ifeq ($(RDFMT),tmpfs) |
|
83 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs |
88 | COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs |
- | 89 | endif |
|
- | 90 | ifeq ($(RDFMT),fat) |
|
- | 91 | COMPONENTS += $(USPACEDIR)/srv/fs/fat/fat |
|
- | 92 | endif |
|
84 | 93 | ||
85 | RD_TASKS = \ |
94 | RD_TASKS = \ |
86 | $(USPACEDIR)/srv/fb/fb \ |
95 | $(USPACEDIR)/srv/fb/fb \ |
87 | $(USPACEDIR)/srv/kbd/kbd \ |
96 | $(USPACEDIR)/srv/kbd/kbd \ |
88 | $(USPACEDIR)/srv/console/console \ |
97 | $(USPACEDIR)/srv/console/console \ |
- | 98 | $(USPACEDIR)/srv/fs/tmpfs/tmpfs \ |
|
89 | $(USPACEDIR)/srv/fs/fat/fat \ |
99 | $(USPACEDIR)/srv/fs/fat/fat \ |
90 | $(USPACEDIR)/app/tetris/tetris \ |
100 | $(USPACEDIR)/app/tetris/tetris \ |
91 | $(USPACEDIR)/app/tester/tester \ |
101 | $(USPACEDIR)/app/tester/tester \ |
92 | $(USPACEDIR)/app/cli/cli \ |
- | |
93 | $(USPACEDIR)/app/dltest/dltest \ |
102 | $(USPACEDIR)/app/dltest/dltest \ |
94 | $(USPACEDIR)/app/klog/klog |
103 | $(USPACEDIR)/app/klog/klog \ |
- | 104 | $(USPACEDIR)/app/bdsh/bdsh |
|
95 | 105 | ||
96 | RD_LIBS = \ |
106 | RD_LIBS = \ |
97 | $(USPACEDIR)/lib/rtld/rtld.so \ |
107 | $(USPACEDIR)/lib/rtld/rtld.so \ |
98 | $(USPACEDIR)/lib/libc-shared/libc.so.0 |
108 | $(USPACEDIR)/lib/libc-shared/libc.so.0 |
99 | 109 | ||
Line 126... | Line 136... | ||
126 | cp $$task $(USPACEDIR)/dist/sbin/ ; \ |
136 | cp $$task $(USPACEDIR)/dist/sbin/ ; \ |
127 | done |
137 | done |
128 | for lib in $(RD_LIBS) ; do \ |
138 | for lib in $(RD_LIBS) ; do \ |
129 | cp $$lib $(USPACEDIR)/dist/lib/ ; \ |
139 | cp $$lib $(USPACEDIR)/dist/lib/ ; \ |
130 | done |
140 | done |
- | 141 | ifeq ($(RDFMT),tmpfs) |
|
131 | ../../../../tools/mktmpfs.py 4096 $(USPACEDIR)/dist/ initrd.img |
142 | ../../../../tools/mktmpfs.py $(USPACEDIR)/dist/ initrd.fs |
- | 143 | endif |
|
- | 144 | ifeq ($(RDFMT),fat) |
|
- | 145 | ../../../../tools/mkfat.sh $(USPACEDIR)/dist/ initrd.fs |
|
- | 146 | endif |
|
- | 147 | ../../../../tools/mkhord.py 4096 initrd.fs initrd.img |
|
- | 148 | rm initrd.fs |
|
132 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img |
149 | ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 4096 "unsigned int" $(COMPONENTS) ./initrd.img |
133 | 150 | ||
134 | %.o: %.S |
151 | %.o: %.S |
135 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
152 | $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ |
136 | 153 |