-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 84936 b: refs/heads/master c: 28bf739 h: refs/heads/master v: v3
- Loading branch information
Jesper Nilsson
committed
Feb 8, 2008
1 parent
91f533b
commit 46b9a6c
Showing
2 changed files
with
18 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 3d6f7871ada50e607fe1dae64d2d726a6764451a | ||
refs/heads/master: 28bf739b127c0f0e893baf4efd97d218247d5d71 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,30 @@ | ||
# | ||
# lx25/arch/cris/arch-v32/boot/compressed/Makefile | ||
# arch/cris/arch-v32/boot/compressed/Makefile | ||
# | ||
# create a compressed vmlinux image from the original vmlinux files and romfs | ||
# | ||
|
||
target = $(target_compressed_dir) | ||
src = $(src_compressed_dir) | ||
|
||
CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE) | ||
CFLAGS = -O2 | ||
AFLAGS += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch | ||
KBUILD_CFLAGS += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch | ||
LD = gcc-cris -mlinux -march=v32 -nostdlib | ||
LDFLAGS = -T $(obj)/decompress.ld | ||
obj-y = head.o misc.o | ||
OBJECTS = $(obj)/head.o $(obj)/misc.o | ||
OBJCOPY = objcopy-cris | ||
OBJCOPYFLAGS = -O binary --remove-section=.bss | ||
OBJECTS = $(target)/head.o $(target)/misc.o | ||
|
||
# files to compress | ||
SYSTEM = $(objtree)/vmlinux.bin | ||
|
||
all: vmlinuz | ||
|
||
$(target)/decompress.bin: $(OBJECTS) | ||
$(LD) -T $(src)/decompress.ld -o $(target)/decompress.o $(OBJECTS) | ||
$(OBJCOPY) $(OBJCOPYFLAGS) $(target)/decompress.o $(target)/decompress.bin | ||
|
||
$(objtree)/vmlinuz: $(target) piggy.img $(target)/decompress.bin | ||
cat $(target)/decompress.bin piggy.img > $(objtree)/vmlinuz | ||
rm -f piggy.img | ||
cp $(objtree)/vmlinuz $(src) | ||
quiet_cmd_image = BUILD $@ | ||
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@ | ||
|
||
$(target)/head.o: $(src)/head.S | ||
$(CC) -D__ASSEMBLY__ -c $< -o $@ | ||
targets := vmlinux piggy.gz decompress.o decompress.bin | ||
|
||
# gzip the kernel image | ||
$(obj)/decompress.o: $(OBJECTS) FORCE | ||
$(call if_changed,ld) | ||
|
||
piggy.img: $(SYSTEM) | ||
cat $(SYSTEM) | gzip -f -9 > piggy.img | ||
$(obj)/decompress.bin: $(obj)/decompress.o FORCE | ||
$(call if_changed,objcopy) | ||
|
||
clean: | ||
rm -f piggy.img $(objtree)/vmlinuz vmlinuz.o decompress.o decompress.bin $(OBJECTS) | ||
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE | ||
$(call if_changed,image) | ||
|
||
$(obj)/piggy.gz: $(obj)/../Image FORCE | ||
$(call if_changed,gzip) |