Changeset 389f41e in mainline for arch/amd64


Ignore:
Timestamp:
2005-11-08T11:57:23Z (20 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5f85c91
Parents:
5b65205
Message:

new build system almost finished

Location:
arch/amd64
Files:
25 added
3 edited

Legend:

Unmodified
Added
Removed
  • arch/amd64/Makefile.inc

    r5b65205 r389f41e  
    3232BFD_NAME = elf64-x86-64
    3333BFD_ARCH = i386:x86-64
     34BFD = binary
    3435TARGET = amd64-linux-gnu
    3536TOOLCHAIN_DIR = /usr/local/amd64/bin
  • arch/amd64/_link.ld.in

    r5b65205 r389f41e  
    1313#include <arch/mm/page.h>
    1414
    15 OUTPUT_FORMAT(binary)
     15OUTPUT_FORMAT(BFD)
    1616ENTRY(kernel_image_start)
    1717
  • arch/amd64/boot/Makefile

    r5b65205 r389f41e  
    1 .PHONY: nothing build clean
    2 
    3 nothing:
     1.PHONY: build clean
    42
    53build: boot.bin
    64        dd if=boot.bin of=../../../image.bin bs=512 conv=sync
    7         -cat ../../../kernel.bin >>../../../image.bin
     5        -cat ../../../kernel.bin >> ../../../image.bin
    86        dd if=/dev/zero of=../../../image.bin bs=1 seek=1474559 count=1
    97
    108boot.bin: boot.o
    11         ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
     9        $(LD) -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
    1210
    1311boot.o: boot.S
    14         gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s
    15         as boot.s -o $@
     12        $(CC) -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S > boot.s
     13        $(AS) boot.s -o $@
    1614        rm boot.s
    1715
    1816clean:
    19         -rm *.o *.bin
     17        -rm -f boot.o boot.bin ../../../image.bin
Note: See TracChangeset for help on using the changeset viewer.