GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / h8300 / boot / compressed / Makefile
blobd6189e057ed354804f04822ee78e73f2e069b827
2 # linux/arch/sh/boot/compressed/Makefile
4 # create a compressed vmlinux image from the original vmlinux
7 targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
8 EXTRA_AFLAGS := -traditional
10 OBJECTS = $(obj)/head.o $(obj)/misc.o
13 # IMAGE_OFFSET is the load offset of the compression loader
14 # Assign dummy values if these 2 variables are not defined,
15 # in order to suppress error message.
17 CONFIG_MEMORY_START ?= 0x00400000
18 CONFIG_BOOT_LINK_OFFSET ?= 0x00140000
19 IMAGE_OFFSET := $(shell printf "0x%08x" $$[$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)])
21 LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -estartup $(obj)/vmlinux.lds
23 $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o FORCE
24 $(call if_changed,ld)
27 $(obj)/vmlinux.bin: vmlinux FORCE
28 $(call if_changed,objcopy)
30 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
31 $(call if_changed,gzip)
33 LDFLAGS_piggy.o := -r --format binary --oformat elf32-h8300 -T
34 OBJCOPYFLAGS := -O binary
36 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
37 $(call if_changed,ld)