Files
OrangePi_CM5/arch/sh/boot/compressed/Makefile_64
T

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2005-04-16 15:20:36 -07:00
#
2007-11-28 20:19:38 +09:00
# arch/sh/boot/compressed/Makefile_64
2005-04-16 15:20:36 -07:00
#
2007-11-28 20:19:38 +09:00
# create a compressed vmlinux image from the original vmlinux
2005-04-16 15:20:36 -07:00
#
# Copyright (C) 2002 Stuart Menefy
# Copyright (C) 2004 Paul Mundt
#
2007-11-28 20:19:38 +09:00
# This file is subject to the terms and conditions of the GNU General Public
# License. See the file "COPYING" in the main directory of this archive
# for more details.
2005-04-16 15:20:36 -07:00
#
targets := vmlinux vmlinux.bin vmlinux.bin.gz \
2007-11-21 16:53:37 +09:00
head_64.o misc_64.o cache.o piggy.o
2005-04-16 15:20:36 -07:00
2007-11-21 16:53:37 +09:00
OBJECTS := $(obj)/vmlinux_64.lds $(obj)/head_64.o $(obj)/misc_64.o \
$(obj)/cache.o
2005-04-16 15:20:36 -07:00
#
# ZIMAGE_OFFSET is the load offset of the compression loader
# (4M for the kernel plus 64K for this loader)
#
2007-11-21 16:53:37 +09:00
ZIMAGE_OFFSET := $(shell /bin/bash -c 'printf "0x%08x" \
$$[$(CONFIG_PAGE_OFFSET)+0x400000+0x10000]')
2005-04-16 15:20:36 -07:00
LDFLAGS_vmlinux := -Ttext $(ZIMAGE_OFFSET) -e startup \
2007-11-21 16:53:37 +09:00
-T $(obj)/../../kernel/vmlinux.lds
2005-04-16 15:20:36 -07:00
$(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
$(call if_changed,ld)
@:
$(obj)/vmlinux.bin: vmlinux FORCE
$(call if_changed,objcopy)
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
$(call if_changed,gzip)
LDFLAGS_piggy.o := -r --format binary --oformat elf32-sh64-linux -T
OBJCOPYFLAGS += -R .empty_zero_page
2007-11-21 16:53:37 +09:00
$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
2005-04-16 15:20:36 -07:00
$(call if_changed,ld)