comparison 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
comparison
equal deleted inserted replaced
407:9eb1fc6aad6c 408:ad6be5454067
2 <project name="lcfos-kernel" default="vexpress"> 2 <project name="lcfos-kernel" default="vexpress">
3 3
4 <property name="src" value="src" /> 4 <property name="src" value="src" />
5 <property name="arch" value="arm" /> 5 <property name="arch" value="arm" />
6 6
7
8 <target name="vexpress"> 7 <target name="vexpress">
9 8
10 <assemble source="arch/qemu_vexpress/start.asm" 9 <assemble source="arch/qemu_vexpress/start.asm"
11 target="arm" output="obj/start.o" /> 10 target="arm" output="obj/start.o" />
12 11
13 <assemble source="ramdisk.asm"
14 target="arm" output="obj/ramdisk.o" />
15
16 <compile target="arm" sources='*.c3;arch/qemu_vexpress/vexpressA9.c3' 12 <compile target="arm" sources='*.c3;arch/qemu_vexpress/vexpressA9.c3'
17 output="obj/kernel.o" /> 13 output="obj/kernel.o" />
18
19 <!-- <script file="gen_table.py" /> -->
20 14
21 <link output="obj/kernel.elf" 15 <link output="obj/kernel.elf"
22 target="arm" 16 target="arm"
23 layout="arch/qemu_vexpress/layout.mmap" 17 layout="arch/qemu_vexpress/layout.mmap"
24 objects="obj/kernel.o;obj/start.o" /> 18 objects="obj/kernel.o;obj/start.o" />
25 19
26 <objcopy 20 <objcopy
27 objectfile="obj/kernel.elf" 21 objectfile="obj/kernel.elf"
28 imagename="image" 22 imagename="image"
29 format="bin" 23 format="bin"
30 output="kernel_arm.bin" /> 24 output="obj/kernel.bin" />
31 25
32 </target> 26 </target>
33 27
34 </project> 28 </project>
35 29