Changeset 839470f in mainline
- Timestamp:
- 2005-12-07T14:29:42Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45ab770
- Parents:
- 05e2a7ad
- Files:
-
- 1 added
- 11 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r05e2a7ad r839470f 40 40 # 41 41 42 include Makefile.config42 -include Makefile.config 43 43 44 44 ## Common compiler flags … … 57 57 # 58 58 59 include arch/$(ARCH)/Makefile.inc60 include genarch/Makefile.inc59 -include arch/$(ARCH)/Makefile.inc 60 -include genarch/Makefile.inc 61 61 62 62 ifeq ($(CONFIG_DEBUG),y) … … 139 139 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 140 140 141 .PHONY: all clean config depend boot 142 143 all: kernel.bin boot disasm 141 .PHONY: all clean config links depend boot 142 143 all: 144 tools/config.py default 145 $(MAKE) -C . real_all 146 147 real_all: kernel.bin boot disasm 148 149 config: 150 tools/config.py 144 151 145 152 -include Makefile.depend 153 154 distclean: clean 155 -rm Makefile.config 146 156 147 157 clean: 148 158 -rm -f kernel.bin kernel.raw kernel.map kernel.map.pre kernel.objdump kernel.disasm generic/src/debug/real_map.bin Makefile.depend generic/include/arch generic/include/genarch arch/$(ARCH)/_link.ld 149 find generic/src/ arch/$(ARCH)/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 150 $(MAKE) -C arch/$(ARCH)/boot clean 151 152 config: 159 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 160 for arch in arch/*; do \ 161 [ -e $$arch/_link.ld ] && rm $$arch/_link.ld 2>/dev/null;\ 162 $(MAKE) -C $$arch/boot clean; \ 163 done;exit 0 164 165 archlinks: 153 166 ln -sfn ../../arch/$(ARCH)/include/ generic/include/arch 154 167 ln -sfn ../../genarch/include/ generic/include/genarch 155 168 156 depend: config169 depend: archlinks 157 170 $(CC) $(DEFS) $(CFLAGS) -M $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 158 171 -
tools/config.py
r05e2a7ad r839470f 138 138 139 139 os.close(outdesc) 140 errout = os.fdopen(indesc,'r') 141 data = errout.read() 142 errout.close() 143 144 pid,status = os.wait() 140 141 try: 142 errout = os.fdopen(indesc,'r') 143 data = errout.read() 144 errout.close() 145 pid,status = os.wait() 146 except: 147 os.system('reset') # Reset terminal 148 raise 149 145 150 if not os.WIFEXITED(status): 151 os.system('reset') # Reset terminal 146 152 raise EOFError 153 147 154 status = os.WEXITSTATUS(status) 148 155 if status == 255: … … 151 158 152 159 def yesno(self, text, default=None): 153 text = text + ':' 160 if text[-1] not in ('?',':'): 161 text = text + ':' 154 162 width = '50' 155 163 height = '5' … … 405 413 os.unlink(OUTPUT) 406 414 os.rename(TMPOUTPUT, OUTPUT) 407 415 416 if not defmode and dlg.yesno('Rebuild kernel?') == 'y': 417 os.execlp('make','make','clean','all') 408 418 409 419 if __name__ == '__main__':
Note:
See TracChangeset
for help on using the changeset viewer.