direct-io.hg

annotate tools/firmware/vmxassist/mkhex @ 7477:5a7baecb1c70

Fix an issue for passing arguement from control panel to deivce model
for some arguemnt like 'localtime', 'isa', device model need an argument
"-localtime", instead of "-localtime 1"
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sun Oct 23 16:51:47 2005 +0100 (2005-10-23)
parents 5cc07785693b
children
rev   line source
kaf24@5370 1 #!/bin/sh
kaf24@5370 2
kaf24@5370 3 #
kaf24@5370 4 # mkhex: Generate C embeddable hexdumps
kaf24@5370 5 #
kaf24@5370 6 # Leendert van Doorn, leendert@watson.ibm.com
kaf24@5370 7 # Copyright (c) 2005, International Business Machines Corporation.
kaf24@5370 8 #
kaf24@5370 9 # This program is free software; you can redistribute it and/or modify it
kaf24@5370 10 # under the terms and conditions of the GNU General Public License,
kaf24@5370 11 # version 2, as published by the Free Software Foundation.
kaf24@5370 12 #
kaf24@5370 13 # This program is distributed in the hope it will be useful, but WITHOUT
kaf24@5370 14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
kaf24@5370 15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
kaf24@5370 16 # more details.
kaf24@5370 17 #
kaf24@5370 18 # You should have received a copy of the GNU General Public License along with
kaf24@5370 19 # this program; if not, write to the Free Software Foundation, Inc., 59 Temple
kaf24@5370 20 # Place - Suite 330, Boston, MA 02111-1307 USA.
kaf24@5370 21 #
kaf24@5370 22
kaf24@5370 23 echo "unsigned $1[] = {"
kaf24@5370 24 od -v -t x $2 | sed 's/^[0-9]* /0x/' | sed 's/ /, 0x/g' | sed 's/$/,/'
kaf24@5370 25 echo "};"
kaf24@5370 26