Microblaze: AXIPCIE: Fixed interrupt clearing mechanism.
[linux-2.6-xlnx.git] / convert_vmlinux.sh
blob1459f08d48a69dbf9e572fccfb2bbbff577f3ccc
1 #!/bin/sh
4 if [ "$1" == "cpu1" ] ; then
5 echo "Creating vmlinux1.bin for CPU1 at 66MB (0x4200000) start address"
7 ${CROSS_COMPILE:-arm-none-linux-gnueabi-}objcopy -R .note.gnu.build-id -R .comment -R .ARM.attributes --change-addresses -0xBBE00000 vmlinux vmlinux1.elf
8 ${CROSS_COMPILE:-arm-none-linux-gnueabi-}objcopy --gap-fill=0xFF -O binary vmlinux1.elf vmlinux1.bin
10 elif [ "$1" == "cpu0amp" ] ; then
11 echo "Creating vmlinux.bin for CPU0 at 0x400000 start address"
12 ${CROSS_COMPILE:-arm-none-linux-gnueabi-}objcopy -R .note.gnu.build-id -R .comment -R .ARM.attributes --change-addresses -0xBC000000 vmlinux vmlinux.elf
13 ${CROSS_COMPILE:-arm-none-linux-gnueabi-}objcopy --gap-fill=0xFF -O binary vmlinux.elf vmlinux.bin
14 else
15 echo "Creating vmlinux.bin for CPU0 at 0 start address"
16 ${CROSS_COMPILE:-arm-none-linux-gnueabi-}objcopy -R .note.gnu.build-id -R .comment -R .ARM.attributes --change-addresses -0xC0000000 vmlinux vmlinux.elf
17 ${CROSS_COMPILE:-arm-none-linux-gnueabi-}objcopy --gap-fill=0xFF -O binary vmlinux.elf vmlinux.bin