Makefile (3688a0f484e980771c078ab90f74a2656c339106) | Makefile (0cfcccb4687862a34eb609d16e75b39b6cb54c80) |
---|---|
1# Makefile for making ELF bootable images for booting on CHRP 2# using Open Firmware. 3# 4# Geert Uytterhoeven September 1997 5# 6# Based on coffboot by Paul Mackerras 7# Simplified for ppc64 by Todd Inglett 8# --- 26 unchanged lines hidden (view full) --- 35 36zlib := inffast.c inflate.c inftrees.c 37zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h 38zliblinuxheader := zlib.h zconf.h zutil.h 39 40$(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) \ 41 $(addprefix $(obj)/,$(zlibheader)) 42 | 1# Makefile for making ELF bootable images for booting on CHRP 2# using Open Firmware. 3# 4# Geert Uytterhoeven September 1997 5# 6# Based on coffboot by Paul Mackerras 7# Simplified for ppc64 by Todd Inglett 8# --- 26 unchanged lines hidden (view full) --- 35 36zlib := inffast.c inflate.c inftrees.c 37zlibheader := inffast.h inffixed.h inflate.h inftrees.h infutil.h 38zliblinuxheader := zlib.h zconf.h zutil.h 39 40$(addprefix $(obj)/,$(zlib) main.o): $(addprefix $(obj)/,$(zliblinuxheader)) \ 41 $(addprefix $(obj)/,$(zlibheader)) 42 |
43src-wlib := string.S stdio.c main.c div64.S $(zlib) | 43src-wlib := string.S stdio.c main.c flatdevtree.c flatdevtree_misc.c \ 44 ns16550.c serial.c simple_alloc.c div64.S util.S $(zlib) |
44src-plat := of.c 45src-boot := crt0.S $(src-wlib) $(src-plat) empty.c 46 47src-boot := $(addprefix $(obj)/, $(src-boot)) 48obj-boot := $(addsuffix .o, $(basename $(src-boot))) 49obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) 50obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) 51 --- 36 unchanged lines hidden (view full) --- 88$(patsubst %.c,%.o, $(filter %.c, $(src-boot))): %.o: %.c 89 $(call if_changed_dep,bootcc) 90$(patsubst %.S,%.o, $(filter %.S, $(src-boot))): %.o: %.S 91 $(call if_changed_dep,bootas) 92 93$(obj)/wrapper.a: $(obj-wlib) 94 $(call cmd,bootar) 95 | 45src-plat := of.c 46src-boot := crt0.S $(src-wlib) $(src-plat) empty.c 47 48src-boot := $(addprefix $(obj)/, $(src-boot)) 49obj-boot := $(addsuffix .o, $(basename $(src-boot))) 50obj-wlib := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-wlib)))) 51obj-plat := $(addsuffix .o, $(basename $(addprefix $(obj)/, $(src-plat)))) 52 --- 36 unchanged lines hidden (view full) --- 89$(patsubst %.c,%.o, $(filter %.c, $(src-boot))): %.o: %.c 90 $(call if_changed_dep,bootcc) 91$(patsubst %.S,%.o, $(filter %.S, $(src-boot))): %.o: %.S 92 $(call if_changed_dep,bootas) 93 94$(obj)/wrapper.a: $(obj-wlib) 95 $(call cmd,bootar) 96 |
96hostprogs-y := addnote addRamDisk hack-coff | 97hostprogs-y := addnote addRamDisk hack-coff mktree |
97 98extra-y := $(obj)/crt0.o $(obj)/wrapper.a $(obj-plat) $(obj)/empty.o \ 99 $(obj)/zImage.lds $(obj)/zImage.coff.lds 100 101wrapper :=$(srctree)/$(src)/wrapper | 98 99extra-y := $(obj)/crt0.o $(obj)/wrapper.a $(obj-plat) $(obj)/empty.o \ 100 $(obj)/zImage.lds $(obj)/zImage.coff.lds 101 102wrapper :=$(srctree)/$(src)/wrapper |
102wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff) | 103wrapperbits := $(extra-y) $(addprefix $(obj)/,addnote hack-coff mktree) |
103 104############# 105# Bits for building various flavours of zImage 106 107ifneq ($(CROSS32_COMPILE),) 108CROSSWRAP := -C "$(CROSS32_COMPILE)" 109else 110ifneq ($(CROSS_COMPILE),) 111CROSSWRAP := -C "$(CROSS_COMPILE)" 112endif 113endif 114 115quiet_cmd_wrap = WRAP $@ 116 cmd_wrap =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) vmlinux 117quiet_cmd_wrap_initrd = WRAP $@ | 104 105############# 106# Bits for building various flavours of zImage 107 108ifneq ($(CROSS32_COMPILE),) 109CROSSWRAP := -C "$(CROSS32_COMPILE)" 110else 111ifneq ($(CROSS_COMPILE),) 112CROSSWRAP := -C "$(CROSS_COMPILE)" 113endif 114endif 115 116quiet_cmd_wrap = WRAP $@ 117 cmd_wrap =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) vmlinux 118quiet_cmd_wrap_initrd = WRAP $@ |
118 cmd_wrap_initrd =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) \ | 119 cmd_wrap_initrd =$(wrapper) -c -o $@ -p $2 $(CROSSWRAP) \ |
119 -i $(obj)/ramdisk.image.gz vmlinux 120 121$(obj)/zImage.chrp: vmlinux $(wrapperbits) 122 $(call cmd,wrap,chrp) 123 124$(obj)/zImage.initrd.chrp: vmlinux $(wrapperbits) 125 $(call cmd,wrap_initrd,chrp) 126 --- 52 unchanged lines hidden --- | 120 -i $(obj)/ramdisk.image.gz vmlinux 121 122$(obj)/zImage.chrp: vmlinux $(wrapperbits) 123 $(call cmd,wrap,chrp) 124 125$(obj)/zImage.initrd.chrp: vmlinux $(wrapperbits) 126 $(call cmd,wrap_initrd,chrp) 127 --- 52 unchanged lines hidden --- |