|
|
1.1 ! root 1: # ***************************************************************************** ! 2: # * Copyright (c) 2004, 2008 IBM Corporation ! 3: # * All rights reserved. ! 4: # * This program and the accompanying materials ! 5: # * are made available under the terms of the BSD License ! 6: # * which accompanies this distribution, and is available at ! 7: # * http://www.opensource.org/licenses/bsd-license.php ! 8: # * ! 9: # * Contributors: ! 10: # * IBM Corporation - initial implementation ! 11: # ****************************************************************************/ ! 12: ! 13: include ../../make.rules ! 14: ! 15: CPPFLAGS = -I$(INCLBRDDIR) -I$(INCLCMNDIR) -I$(INCLCMNDIR)/$(CPUARCH) \ ! 16: -I$(LIBCMNDIR)/libc/include ! 17: CFLAGS += -fno-builtin $(CPPFLAGS) -O2 -msoft-float $(MAMBO) ! 18: CFLAGS += $(BOOT) $(IOCONF) -Wa,-mregnames $(RELEASE) $(CPUARCHDEF) -Wall ! 19: ASFLAGS = $(BOOT) $(IOCONF) $(RELEASE)$(CPUARCHDEF) -Wa,-mregnames ! 20: LDFLAGS1 = -nostdlib -e__start -Tstage2.lds -N -Ttext=0x100 ! 21: ! 22: ! 23: STG1OBJ = startup.o boot_abort.o romfs.o hw.o io_generic.o board_io.o ! 24: STG1OBJ += stage2_head.o stage2.o comlib.o romfs_wrap.o nvramlog.o ! 25: STG1OBJ += u4mem.o ! 26: ! 27: all: stage1.bin stageS.bin Cboot.o ! 28: ! 29: stage1.bin: $(STG1OBJ) $(LIBCMNDIR)/libelf.a $(LIBCMNDIR)/libc.a ! 30: $(LD) $(LDFLAGS1) -o stage1.elf $^ ! 31: $(OBJCOPY) -O binary stage1.elf $@ ! 32: ! 33: stageS.bin: stage_s.o ! 34: $(LD) -nostdlib -N -Tstage_s.lds -o stage_s.elf stage_s.o ! 35: $(OBJCOPY) -O binary stage_s.elf stageS.bin ! 36: ! 37: romfs.o: ../../llfw/romfs.S ! 38: $(CC) $(CFLAGS) -c ../../llfw/romfs.S ! 39: ! 40: boot_abort.o: ../../llfw/boot_abort.S ! 41: $(CC) $(CFLAGS) -c ../../llfw/boot_abort.S ! 42: ! 43: nvramlog.o: ../../llfw/nvramlog.S ! 44: $(CC) $(CFLAGS) -c ../../llfw/nvramlog.S ! 45: ! 46: include $(LLFWCMNDIR)/clib/Makefile.inc ! 47: ! 48: include $(LLFWCMNDIR)/io_generic/Makefile.inc ! 49: ! 50: romfs_wrap.o: ../../llfw/romfs_wrap.c ! 51: $(CC) $(CFLAGS) -c ../../llfw/romfs_wrap.c ! 52: ! 53: Cboot.o: Cboot.S ! 54: $(CC) $(CFLAGS) -c $^ ! 55: $(OBJCOPY) -O binary Cboot.o Cboot.bin ! 56: ! 57: %.o: %.S ! 58: $(CC) $(CFLAGS) -c $^ ! 59: ! 60: clean: ! 61: rm -f *.o *.bin *.elf
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.