···88# Copyright (C) 1999 Stuart Menefy99#10101111-targets := zImage1111+MKIMAGE := $(srctree)/scripts/mkuboot.sh1212+1313+#1414+# Assign safe dummy values if these variables are not defined,1515+# in order to suppress error message.1616+#1717+CONFIG_PAGE_OFFSET ?= 0x800000001818+CONFIG_MEMORY_START ?= 0x0c0000001919+CONFIG_BOOT_LINK_OFFSET ?= 0x008000002020+CONFIG_ZERO_PAGE_OFFSET ?= 0x000010002121+2222+export CONFIG_PAGE_OFFSET CONFIG_MEMORY_START CONFIG_BOOT_LINK_OFFSET \2323+ CONFIG_ZERO_PAGE_OFFSET2424+2525+targets := zImage vmlinux.srec uImage uImage.srec1226subdir- := compressed13271428$(obj)/zImage: $(obj)/compressed/vmlinux FORCE1529 $(call if_changed,objcopy)1616- @echo 'Kernel: $@ is ready'3030+ @echo ' Kernel: $@ is ready'17311832$(obj)/compressed/vmlinux: FORCE1933 $(Q)$(MAKE) $(build)=$(obj)/compressed $@20343535+KERNEL_LOAD := $(shell printf "0x%8x" $$[$(CONFIG_PAGE_OFFSET) + \3636+ $(CONFIG_MEMORY_START) + \3737+ $(CONFIG_ZERO_PAGE_OFFSET)+0x1000])3838+3939+quiet_cmd_uimage = UIMAGE $@4040+ cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A sh -O linux -T kernel \4141+ -C gzip -a $(KERNEL_LOAD) -e $(KERNEL_LOAD) \4242+ -n 'Linux-$(KERNELRELEASE)' -d $< $@4343+4444+$(obj)/uImage: $(obj)/zImage FORCE4545+ $(call if_changed,uimage)4646+ @echo ' Image $@ is ready'4747+4848+OBJCOPYFLAGS_vmlinux.srec := -I binary -O srec4949+$(obj)/vmlinux.srec: $(obj)/compressed/vmlinux5050+ $(call if_changed,objcopy)5151+5252+OBJCOPYFLAGS_uImage.srec := -I binary -O srec5353+$(obj)/uImage.srec: $(obj)/uImage5454+ $(call if_changed,objcopy)5555+5656+clean-files += uImage uImage.srec vmlinux.srec
-6
arch/sh/boot/compressed/Makefile
···15151616#1717# IMAGE_OFFSET is the load offset of the compression loader1818-# Assign dummy values if these 2 variables are not defined,1919-# in order to suppress error message.2018#2121-CONFIG_PAGE_OFFSET ?= 0x800000002222-CONFIG_MEMORY_START ?= 0x0c0000002323-CONFIG_BOOT_LINK_OFFSET ?= 0x008000002424-2519IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_PAGE_OFFSET) + \2620 $(CONFIG_MEMORY_START) + \2721 $(CONFIG_BOOT_LINK_OFFSET)])