Makefile (6288cf1e768ae73db5ddaaae54d85245cc1c2b56) | Makefile (363e9f05cbd105a900b7baf2cc55ec0cba546d08) |
---|---|
1# 2# linux/arch/sh/boot/compressed/Makefile 3# 4# create a compressed vmlinux image from the original vmlinux 5# 6 7targets := vmlinux vmlinux.bin vmlinux.bin.gz \ 8 vmlinux.bin.bz2 vmlinux.bin.lzma \ --- 13 unchanged lines hidden (view full) --- 22 $(CONFIG_BOOT_LINK_OFFSET)]') 23else 24IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ 25 $$[$(CONFIG_PAGE_OFFSET) + \ 26 $(KERNEL_MEMORY) + \ 27 $(CONFIG_BOOT_LINK_OFFSET)]') 28endif 29 | 1# 2# linux/arch/sh/boot/compressed/Makefile 3# 4# create a compressed vmlinux image from the original vmlinux 5# 6 7targets := vmlinux vmlinux.bin vmlinux.bin.gz \ 8 vmlinux.bin.bz2 vmlinux.bin.lzma \ --- 13 unchanged lines hidden (view full) --- 22 $(CONFIG_BOOT_LINK_OFFSET)]') 23else 24IMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \ 25 $$[$(CONFIG_PAGE_OFFSET) + \ 26 $(KERNEL_MEMORY) + \ 27 $(CONFIG_BOOT_LINK_OFFSET)]') 28endif 29 |
30LIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 31 | |
32ifeq ($(CONFIG_MCOUNT),y) 33ORIG_CFLAGS := $(KBUILD_CFLAGS) 34KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) 35endif 36 37LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \ 38 -T $(obj)/../../kernel/vmlinux.lds 39 | 30ifeq ($(CONFIG_MCOUNT),y) 31ORIG_CFLAGS := $(KBUILD_CFLAGS) 32KBUILD_CFLAGS = $(subst -pg, , $(ORIG_CFLAGS)) 33endif 34 35LDFLAGS_vmlinux := --oformat $(ld-bfd) -Ttext $(IMAGE_OFFSET) -e startup \ 36 -T $(obj)/../../kernel/vmlinux.lds 37 |
40$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE | 38# 39# Pull in the necessary libgcc bits from the in-kernel implementation. 40# 41lib1funcs-$(CONFIG_SUPERH32) := ashiftrt.S ashldi3.c ashrsi3.S ashlsi3.S \ 42 lshrsi3.S 43lib1funcs-obj := \ 44 $(addsuffix .o, $(basename $(addprefix $(obj)/, $(lib1funcs-y)))) 45 46lib1funcs-dir := $(srctree)/arch/$(SRCARCH)/lib 47ifeq ($(BITS),64) 48 lib1funcs-dir := $(addsuffix $(BITS), $(lib1funcs-dir)) 49endif 50 51KBUILD_CFLAGS += -I$(lib1funcs-dir) 52 53$(addprefix $(obj)/,$(lib1funcs-y)): $(obj)/%: $(lib1funcs-dir)/% FORCE 54 $(call cmd,shipped) 55 56$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(lib1funcs-obj) FORCE |
41 $(call if_changed,ld) 42 @: 43 44$(obj)/vmlinux.bin: vmlinux FORCE 45 $(call if_changed,objcopy) 46 47vmlinux.bin.all-y := $(obj)/vmlinux.bin 48 --- 17 unchanged lines hidden --- | 57 $(call if_changed,ld) 58 @: 59 60$(obj)/vmlinux.bin: vmlinux FORCE 61 $(call if_changed,objcopy) 62 63vmlinux.bin.all-y := $(obj)/vmlinux.bin 64 --- 17 unchanged lines hidden --- |