view kernel/build.xml @ 408:ad6be5454067

Added image build task
author Windel Bouwman
date Sat, 21 Feb 2015 12:17:47 +0100
parents a284749c5729
children 6aa9743ed362
line wrap: on
line source


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

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

    <target name="vexpress">

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

        <compile target="arm" sources='*.c3;arch/qemu_vexpress/vexpressA9.c3'
            output="obj/kernel.o" />

        <link output="obj/kernel.elf"
            target="arm"
            layout="arch/qemu_vexpress/layout.mmap"
            objects="obj/kernel.o;obj/start.o" />

        <objcopy
            objectfile="obj/kernel.elf"
            imagename="image"
            format="bin"
            output="obj/kernel.bin" />

    </target>

</project>