source: mainline/arch/sparc64/boot/Makefile@ 81e1396

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 81e1396 was 81e1396, checked in by Jakub Jermar <jakub@…>, 20 years ago

Small sparc64 changes.
Start native boot loader.

  • Property mode set to 100644
File size: 676 bytes
Line 
1BINUTILS_DIR=/usr/local/sparc64/bin
2TARGET=sparc64-linux-gnu
3
4.PHONY: nothing build
5
6nothing:
7
8build: boot.bin
9 cp boot.bin ../../../load.bin
10
11CC=$(BINUTILS_DIR)/$(TARGET)-gcc
12AS=$(BINUTILS_DIR)/$(TARGET)-as
13LD=$(BINUTILS_DIR)/$(TARGET)-ld
14
15CPPFLAGS=$(DEFS) -nostdinc -I../include
16CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O2
17LFLAGS=-no-check-sections -N -T _link.ld -s
18
19boot.bin: boot.aout
20 dd if=/dev/zero of=$@ bs=512 count=16
21 dd if=boot.aout of=$@ bs=512 seek=1 conv=notrunc
22
23boot.aout: boot.o
24 $(LD) $(LFLAGS) boot.o -o $@
25
26boot.o: boot.S
27 $(CC) $(CFLAGS) -c boot.S -o $@
28
29clean:
30 -rm *.o *.bin *.aout
Note: See TracBrowser for help on using the repository browser.