1*4882a593Smuzhiyun# This example was used to boot the snowball ARM board. 2*4882a593Smuzhiyun# See http://people.redhat.com/srostedt/ktest-embedded-2012/ 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun# PWD is a ktest.pl variable that will result in the process working 5*4882a593Smuzhiyun# directory that ktest.pl is executed in. 6*4882a593Smuzhiyun 7*4882a593Smuzhiyun# THIS_DIR is automatically assigned the PWD of the path that generated 8*4882a593Smuzhiyun# the config file. It is best to use this variable when assigning other 9*4882a593Smuzhiyun# directory paths within this directory. This allows you to easily 10*4882a593Smuzhiyun# move the test cases to other locations or to other machines. 11*4882a593Smuzhiyun# 12*4882a593SmuzhiyunTHIS_DIR := /home/rostedt/work/demo/ktest-embed 13*4882a593SmuzhiyunLOG_FILE = ${OUTPUT_DIR}/snowball.log 14*4882a593SmuzhiyunCLEAR_LOG = 1 15*4882a593SmuzhiyunMAKE_CMD = PATH=/usr/local/gcc-4.5.2-nolibc/arm-unknown-linux-gnueabi/bin:$PATH CROSS_COMPILE=arm-unknown-linux-gnueabi- make ARCH=arm 16*4882a593SmuzhiyunADD_CONFIG = ${THIS_DIR}/addconfig 17*4882a593Smuzhiyun 18*4882a593SmuzhiyunSCP_TO_TARGET = echo "don't do scp" 19*4882a593Smuzhiyun 20*4882a593SmuzhiyunTFTPBOOT := /var/lib/tftpboot 21*4882a593SmuzhiyunTFTPDEF := ${TFTPBOOT}/snowball-default 22*4882a593SmuzhiyunTFTPTEST := ${OUTPUT_DIR}/${BUILD_TARGET} 23*4882a593Smuzhiyun 24*4882a593SmuzhiyunSWITCH_TO_GOOD = cp ${TFTPDEF} ${TARGET_IMAGE} 25*4882a593SmuzhiyunSWITCH_TO_TEST = cp ${TFTPTEST} ${TARGET_IMAGE} 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun# Define each test with TEST_START 28*4882a593Smuzhiyun# The config options below it will override the defaults 29*4882a593SmuzhiyunTEST_START SKIP 30*4882a593SmuzhiyunTEST_TYPE = boot 31*4882a593SmuzhiyunBUILD_TYPE = u8500_defconfig 32*4882a593SmuzhiyunBUILD_NOCLEAN = 1 33*4882a593Smuzhiyun 34*4882a593SmuzhiyunTEST_START 35*4882a593SmuzhiyunTEST_TYPE = make_min_config 36*4882a593SmuzhiyunOUTPUT_MIN_CONFIG = ${THIS_DIR}/config.newmin 37*4882a593SmuzhiyunSTART_MIN_CONFIG = ${THIS_DIR}/config.orig 38*4882a593SmuzhiyunIGNORE_CONFIG = ${THIS_DIR}/config.ignore 39*4882a593SmuzhiyunBUILD_NOCLEAN = 1 40*4882a593Smuzhiyun 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunDEFAULTS 43*4882a593SmuzhiyunLOCALVERSION = -test 44*4882a593SmuzhiyunPOWER_CYCLE = echo use the thumb luke; read a 45*4882a593SmuzhiyunCONSOLE = cat ${THIS_DIR}/snowball-cat 46*4882a593SmuzhiyunREBOOT_TYPE = script 47*4882a593SmuzhiyunSSH_USER = root 48*4882a593SmuzhiyunBUILD_OPTIONS = -j8 uImage 49*4882a593SmuzhiyunBUILD_DIR = ${THIS_DIR}/linux.git 50*4882a593SmuzhiyunOUTPUT_DIR = ${THIS_DIR}/snowball-build 51*4882a593SmuzhiyunMACHINE = snowball 52*4882a593SmuzhiyunTARGET_IMAGE = /var/lib/tftpboot/snowball-image 53*4882a593SmuzhiyunBUILD_TARGET = arch/arm/boot/uImage 54