aboutsummaryrefslogtreecommitdiff
path: root/linaro-edk2-prep
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-12-16 12:13:01 +0200
committerFathi Boudra <fabo@debian.org>2014-12-18 12:17:20 +0200
commit0264ae7ab0c62af22e53b68ad2b341c5ae76c828 (patch)
tree01e0280eb6cb7077ef2a8c61fabd98da589d675a /linaro-edk2-prep
parentb95f689f3b7b115dfb74f28b1c9cdd98a95a9243 (diff)
Add linaro-edk2-prep (Fu Wei changes)
v2: * move bundle stream, device type and lava server to job params * add metadata * switch to leg-edk2 bundle stream * switch to initrd from releases.linaro.org v3: * switch to lava job definitions templates v4: * beautify json templates (indent=2) v5: * move initrd URL to job params * embed startup.nsh in the job * inject image URL as an environment variable v6: * remove "IMAGE_URL=" leftover Change-Id: Ice726bf9598f7b4fd699f4139a3b48fba7d4fb41 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linaro-edk2-prep')
-rw-r--r--linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json100
-rw-r--r--linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot-with-initrd.json69
-rw-r--r--linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot.json63
-rw-r--r--linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-startup-boot.json52
4 files changed, 284 insertions, 0 deletions
diff --git a/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json
new file mode 100644
index 0000000000..a90549e2c1
--- /dev/null
+++ b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-grub-install.json
@@ -0,0 +1,100 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "customize": {
+ "boot:/fvp": [
+ "delete"
+ ],
+ "boot:/rtsm": [
+ "delete"
+ ],
+ "${INITRD_URL}": [
+ "boot:/Initrd"
+ ],
+ "${BL1_URL}": [
+ "boot:/fvp_bl1.bin"
+ ],
+ "${FIP_URL}": [
+ "boot:/fvp_fip.bin"
+ ]
+ },
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "grub-install"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 3",
+ "expect Choice:",
+ "sendline 1",
+ "expect Select the Boot Device:",
+ "sendline 2",
+ "expect File path of the EFI Application or the kernel:",
+ "sendline Image",
+ "expect Is your application an OS loader? [y/n]",
+ "sendline n",
+ "expect Arguments to pass to the EFI Application:",
+ "sendline console=ttySBSA0 earlycon=pl011,0x1c090000 debug uefi_debug ignore_loglevel rootwait root=/dev/vda2 rootfstype=ext4 rw acpi=force",
+ "expect Description for this new Entry:",
+ "sendline LAVA",
+ "expect Choice:",
+ "sendline 7",
+ "expect Start:",
+ "sendline 2"
+ ]
+ }
+ },
+ {
+ "command": "lava_command_run",
+ "parameters": {
+ "commands": [
+ "mkdir -p /boot/efi",
+ "mount /dev/vda1 /boot/efi",
+ "grub-install",
+ "umount /dev/vda1",
+ "sync"
+ ],
+ "timeout": 9600
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 1",
+ "expect grub>",
+ "sendline set root=(hd1,msdos1)",
+ "expect grub>",
+ "sendline set debug=linux",
+ "expect grub>",
+ "sendline linux /Image console=ttySBSA0 earlycon=pl011,0x1c090000 debug uefi_debug ignore_loglevel rootwait root=/dev/ram0 ro acpi=force",
+ "expect grub>",
+ "sendline initrd /Initrd",
+ "expect grub>",
+ "sendline boot"
+ ]
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file
diff --git a/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot-with-initrd.json b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot-with-initrd.json
new file mode 100644
index 0000000000..a0b3ac7e37
--- /dev/null
+++ b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot-with-initrd.json
@@ -0,0 +1,69 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "customize": {
+ "boot:/fvp": [
+ "delete"
+ ],
+ "boot:/rtsm": [
+ "delete"
+ ],
+ "${INITRD_URL}": [
+ "boot:/Initrd"
+ ],
+ "${BL1_URL}": [
+ "boot:/fvp_bl1.bin"
+ ],
+ "${FIP_URL}": [
+ "boot:/fvp_fip.bin"
+ ]
+ },
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "menu-boot-with-initrd"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 3",
+ "expect Choice:",
+ "sendline 1",
+ "expect Select the Boot Device:",
+ "sendline 2",
+ "expect File path of the EFI Application or the kernel:",
+ "sendline Image",
+ "expect Is your application an OS loader? [y/n]",
+ "sendline n",
+ "expect Arguments to pass to the EFI Application:",
+ "sendline initrd=Initrd console=ttySBSA0 earlycon=pl011,0x1c090000 debug uefi_debug ignore_loglevel rootwait root=/dev/ram0 ro acpi=force",
+ "expect Description for this new Entry:",
+ "sendline LAVA",
+ "expect Choice:",
+ "sendline 7",
+ "expect Start:",
+ "sendline 2"
+ ]
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file
diff --git a/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot.json b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot.json
new file mode 100644
index 0000000000..27d3d3800d
--- /dev/null
+++ b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-menu-boot.json
@@ -0,0 +1,63 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "customize": {
+ "boot:/fvp": [
+ "delete"
+ ],
+ "${BL1_URL}": [
+ "boot:/fvp_bl1.bin"
+ ],
+ "${FIP_URL}": [
+ "boot:/fvp_fip.bin"
+ ]
+ },
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "menu-boot"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 3",
+ "expect Choice:",
+ "sendline 1",
+ "expect Select the Boot Device:",
+ "sendline 2",
+ "expect File path of the EFI Application or the kernel:",
+ "sendline Image",
+ "expect Is your application an OS loader? [y/n]",
+ "sendline n",
+ "expect Arguments to pass to the EFI Application:",
+ "sendline console=ttySBSA0 earlycon=pl011,0x1c090000 debug uefi_debug ignore_loglevel rootwait root=/dev/vda2 rootfstype=ext4 rw acpi=force",
+ "expect Description for this new Entry:",
+ "sendline LAVA",
+ "expect Choice:",
+ "sendline 7",
+ "expect Start:",
+ "sendline 2"
+ ]
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file
diff --git a/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-startup-boot.json b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-startup-boot.json
new file mode 100644
index 0000000000..df6bd00d89
--- /dev/null
+++ b/linaro-edk2-prep/lava-job-definitions/rtsm_fvp_base-aemv8a/template-startup-boot.json
@@ -0,0 +1,52 @@
+{
+ "actions": [
+ {
+ "command": "deploy_linaro_image",
+ "parameters": {
+ "bootloadertype": "uefi",
+ "customize": {
+ "boot:/fvp": [
+ "delete"
+ ],
+ "${STARTUP_NSH}": [
+ "boot:/EFI/BOOT/startup.nsh"
+ ],
+ "${BL1_URL}": [
+ "boot:/fvp_bl1.bin"
+ ],
+ "${FIP_URL}": [
+ "boot:/fvp_fip.bin"
+ ]
+ },
+ "image": "${IMAGE_URL}"
+ },
+ "metadata": {
+ "build id": "${BUILD_NUMBER}",
+ "git URL": "${GIT_URL}",
+ "git branch": "${GIT_BRANCH}",
+ "git commit": "${GIT_COMMIT}",
+ "template": "startup-boot"
+ }
+ },
+ {
+ "command": "boot_linaro_image",
+ "parameters": {
+ "boot_cmds": [
+ "sendline 2",
+ "expect or any other key to continue.",
+ "sendline "
+ ]
+ }
+ },
+ {
+ "command": "submit_results",
+ "parameters": {
+ "server": "http://${LAVA_SERVER}",
+ "stream": "${BUNDLE_STREAM_NAME}"
+ }
+ }
+ ],
+ "device_type": "${DEVICE_TYPE}",
+ "job_name": "${BUILD_URL}",
+ "timeout": 20000
+} \ No newline at end of file