^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # This example was used to boot the snowball ARM board.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) # See http://people.redhat.com/srostedt/ktest-embedded-2012/
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) # PWD is a ktest.pl variable that will result in the process working
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) # directory that ktest.pl is executed in.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) # THIS_DIR is automatically assigned the PWD of the path that generated
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) # the config file. It is best to use this variable when assigning other
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) # directory paths within this directory. This allows you to easily
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) # move the test cases to other locations or to other machines.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) THIS_DIR := /home/rostedt/work/demo/ktest-embed
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) LOG_FILE = ${OUTPUT_DIR}/snowball.log
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) CLEAR_LOG = 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) MAKE_CMD = PATH=/usr/local/gcc-4.5.2-nolibc/arm-unknown-linux-gnueabi/bin:$PATH CROSS_COMPILE=arm-unknown-linux-gnueabi- make ARCH=arm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) ADD_CONFIG = ${THIS_DIR}/addconfig
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) SCP_TO_TARGET = echo "don't do scp"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) TFTPBOOT := /var/lib/tftpboot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) TFTPDEF := ${TFTPBOOT}/snowball-default
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) TFTPTEST := ${OUTPUT_DIR}/${BUILD_TARGET}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) SWITCH_TO_GOOD = cp ${TFTPDEF} ${TARGET_IMAGE}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) SWITCH_TO_TEST = cp ${TFTPTEST} ${TARGET_IMAGE}
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) # Define each test with TEST_START
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) # The config options below it will override the defaults
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) TEST_START SKIP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) TEST_TYPE = boot
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) BUILD_TYPE = u8500_defconfig
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) BUILD_NOCLEAN = 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) TEST_START
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) TEST_TYPE = make_min_config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) OUTPUT_MIN_CONFIG = ${THIS_DIR}/config.newmin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) START_MIN_CONFIG = ${THIS_DIR}/config.orig
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) IGNORE_CONFIG = ${THIS_DIR}/config.ignore
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) BUILD_NOCLEAN = 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) DEFAULTS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) LOCALVERSION = -test
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) POWER_CYCLE = echo use the thumb luke; read a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) CONSOLE = cat ${THIS_DIR}/snowball-cat
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) REBOOT_TYPE = script
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) SSH_USER = root
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) BUILD_OPTIONS = -j8 uImage
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) BUILD_DIR = ${THIS_DIR}/linux.git
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) OUTPUT_DIR = ${THIS_DIR}/snowball-build
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) MACHINE = snowball
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) TARGET_IMAGE = /var/lib/tftpboot/snowball-image
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) BUILD_TARGET = arch/arm/boot/uImage