symbian-qemu-0.9.1-12/qemu-symbian-svp/gen_devices.sh
author William Roberts <williamr@symbian.org>
Tue, 04 Aug 2009 17:31:24 +0100
changeset 5 1df3a4173277
parent 1 2fb8b9db1c86
permissions -rw-r--r--
Fix the #defined include paths, convert \ separators to /

#! /bin/sh
# Call device init functions.

file="$1"
shift
devices="$@"
echo '/* Generated by gen_devices.sh */' > $file
for x in $devices ; do
    echo "void ${x}_register(void);" >> $file
done
echo "void register_devices(void)" >> $file
echo "{" >> $file
for x in $devices ; do
    echo "    ${x}_register();" >> $file
done
echo "}" >> $file