forked from torvalds/linux
-
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.
[PATCH] CRIS update: configuration and build
Changes to configuration and build system. * Added v32 sub architecture. * Use generic hard IRQ. * Added SMP options. * Added options to OOPS at NMI and reboot at OOM. * Made it possible to set objtree. * Added option to select Kernel GDB serial port. * Corrected Kconfig usage. * Added system profiler. Signed-off-by: Mikael Starvik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information
Mikael Starvik
authored and
Linus Torvalds
committed
Jul 27, 2005
1 parent
cb09f54
commit 3e41d65
Showing
9 changed files
with
515 additions
and
313 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
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
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
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,12 +1,13 @@ | ||
# | ||
# arch/cris/boot/Makefile | ||
# | ||
target = $(target_boot_dir) | ||
src = $(src_boot_dir) | ||
|
||
zImage: compressed/vmlinuz | ||
|
||
compressed/vmlinuz: $(TOPDIR)/vmlinux | ||
@$(MAKE) -C compressed vmlinuz | ||
compressed/vmlinuz: | ||
@$(MAKE) -f $(src)/compressed/Makefile $(target_compressed_dir)/vmlinuz | ||
|
||
clean: | ||
rm -f zImage tools/build compressed/vmlinux.out | ||
@$(MAKE) -C compressed clean | ||
@$(MAKE) -f $(src)/compressed/Makefile clean |
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,40 +1,45 @@ | ||
# | ||
# linux/arch/etrax100/boot/compressed/Makefile | ||
# | ||
# create a compressed vmlinux image from the original vmlinux files and romfs | ||
# create a compressed vmlinuz image from the binary vmlinux.bin file | ||
# | ||
target = $(target_compressed_dir) | ||
src = $(src_compressed_dir) | ||
|
||
CC = gcc-cris -melf -I $(TOPDIR)/include | ||
CC = gcc-cris -melf $(LINUXINCLUDE) | ||
CFLAGS = -O2 | ||
LD = ld-cris | ||
OBJCOPY = objcopy-cris | ||
OBJCOPYFLAGS = -O binary --remove-section=.bss | ||
OBJECTS = head.o misc.o | ||
OBJECTS = $(target)/head.o $(target)/misc.o | ||
|
||
# files to compress | ||
SYSTEM = $(TOPDIR)/vmlinux.bin | ||
SYSTEM = $(objtree)/vmlinux.bin | ||
|
||
all: vmlinuz | ||
all: $(target_compressed_dir)/vmlinuz | ||
|
||
decompress.bin: $(OBJECTS) | ||
$(LD) -T decompress.ld -o decompress.o $(OBJECTS) | ||
$(OBJCOPY) $(OBJCOPYFLAGS) decompress.o decompress.bin | ||
# save it for mkprod in the topdir. | ||
cp decompress.bin $(TOPDIR) | ||
$(target)/decompress.bin: $(OBJECTS) | ||
$(LD) -T $(src)/decompress.ld -o $(target)/decompress.o $(OBJECTS) | ||
$(OBJCOPY) $(OBJCOPYFLAGS) $(target)/decompress.o $(target)/decompress.bin | ||
|
||
# Create vmlinuz image in top-level build directory | ||
$(target_compressed_dir)/vmlinuz: $(target) piggy.img $(target)/decompress.bin | ||
@echo " COMPR vmlinux.bin --> vmlinuz" | ||
@cat $(target)/decompress.bin piggy.img > $(target_compressed_dir)/vmlinuz | ||
@rm -f piggy.img | ||
|
||
vmlinuz: piggy.img decompress.bin | ||
cat decompress.bin piggy.img > vmlinuz | ||
rm -f piggy.img | ||
$(target)/head.o: $(src)/head.S | ||
$(CC) -D__ASSEMBLY__ -traditional -c $< -o $@ | ||
|
||
head.o: head.S | ||
$(CC) -D__ASSEMBLY__ -traditional -c head.S -o head.o | ||
$(target)/misc.o: $(src)/misc.c | ||
$(CC) -D__KERNEL__ -c $< -o $@ | ||
|
||
# gzip the kernel image | ||
|
||
piggy.img: $(SYSTEM) | ||
cat $(SYSTEM) | gzip -f -9 > piggy.img | ||
@cat $(SYSTEM) | gzip -f -9 > piggy.img | ||
|
||
$(target): | ||
mkdir -p $(target) | ||
|
||
clean: | ||
rm -f piggy.img vmlinuz vmlinuz.o | ||
rm -f piggy.img $(objtree)/vmlinuz | ||
|
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
Oops, something went wrong.