view kernel/build.xml @ 400:0374c65cb437

Move compiler to seperate repo
author Windel Bouwman
date Mon, 14 Jul 2014 22:23:55 +0200
parents c0d9837acde8
children 0fb6633c42f6
line wrap: on
line source


<project name="lcfos-kernel" default="vexpress">

    <property name="src" value="src" />
    <property name="arch" value="arm" />


    <target name="vexpress">
        <build file="../user/build.xml" />

        <assemble source="arch/qemu_vexpress/start.asm"
            target="arm" output="start.o" />

        <assemble source="ramdisk.asm"
            target="arm" output="ramdisk.o" />

        <compile target="arm"
            sources='arch/qemu_vexpress/vexpressA9.c3'
            includes="${src}/*.c3" output="vexp.o" />

        <compile target="arm" sources='${src}/*.c3'
            output="henkie.o" />

        <!-- <script file="gen_table.py" /> -->

        <link output="kernel.o"
            target="arm"
            layout="arch/qemu_vexpress/layout.mmap"
            objects="henkie.o;vexp.o;start.o;ramdisk.o" />

        <objcopy
            objectfile="kernel.o"
            imagename="image"
            output="kernel_arm.bin" />

    </target>

</project>