Commit 39e9dfec authored by Kazutomo Yoshii's avatar Kazutomo Yoshii
Browse files

finished pack script

parent 0d0a0b2b
......@@ -8,6 +8,7 @@
DEV=skl
OUTPUT=kernel.p9asm
OD=dump
if [ -z "$1" ] ; then
echo $0 clsrc [device]
......@@ -33,7 +34,6 @@ fi
$DRYMODE ocloc -file $SRC -device $DEV
OD=dump
echo "Creating the directory $OD"
$DRYMODE rm -rf $OD
$DRYMODE mkdir $OD
......
......@@ -6,8 +6,29 @@
# Written by Kazutomo Yoshii <kazutomo@mcs.anl.gov>
#
ASMFILE=kernel.p9asm
OD=dump
iga64 kernel.p9asm -p 9 -a > dump/dummy_KernelHeap.bin
if [ -z "$1" ] ; then
echo $0 clsrc
exit 0
fi
SRC=$1
BN=`basename $SRC`
DN=`dirname $SRC`
NAME=${BN%.cl}
OUTPUT=$DN/$NAME.bin
iga64 $ASMFILE -p 9 -a > $OD/${NAME}_KernelHeap.bin
ocloc asm -dump $OD -out ${OUTPUT}
echo
echo $OUTPUT is generated
echo
exit 0
ocloc asm -dump dump/ -out new.bin
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment