|
|
1.1 ! root 1: # ***************************************************************************** ! 2: # * Copyright (c) 2004, 2011 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 io_generic.o board_io.o ! 24: STG1OBJ += stage2_head.o stage2.o comlib.o romfs_wrap.o nvramlog.o ! 25: ! 26: all: stage1.bin Cboot.o ! 27: ! 28: stage1.bin: $(STG1OBJ) $(LIBCMNDIR)/libelf.a $(LIBCMNDIR)/libc.a ! 29: $(LD) $(LDFLAGS1) -o stage1.elf $^ ! 30: $(OBJCOPY) -O binary stage1.elf $@ ! 31: ! 32: romfs.o: ../../llfw/romfs.S ! 33: $(CC) $(CFLAGS) -c ../../llfw/romfs.S ! 34: ! 35: boot_abort.o: ../../llfw/boot_abort.S ! 36: $(CC) $(CFLAGS) -c ../../llfw/boot_abort.S ! 37: ! 38: nvramlog.o: ../../llfw/nvramlog.S ! 39: $(CC) $(CFLAGS) -c ../../llfw/nvramlog.S ! 40: ! 41: include $(LLFWCMNDIR)/clib/Makefile.inc ! 42: ! 43: include $(LLFWCMNDIR)/io_generic/Makefile.inc ! 44: ! 45: romfs_wrap.o: ../../llfw/romfs_wrap.c ! 46: $(CC) $(CFLAGS) -c ../../llfw/romfs_wrap.c ! 47: ! 48: Cboot.o: Cboot.S ! 49: $(CC) $(CFLAGS) -c $^ ! 50: $(OBJCOPY) -O binary Cboot.o Cboot.bin ! 51: ! 52: %.o: %.S ! 53: $(CC) $(CFLAGS) -c $^ ! 54: ! 55: clean: ! 56: rm -f *.o *.bin *.elf
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.