This commit specializes the Resource class into specific sub-types. The `Resource`, `CustomResource` and `CustomDiskImageResource` classes have been deprecated in favor of the `AbstractResource` subclasses. Custom Resources can be created via the resource specialization constructor. Resources can be obtained via the gem5-resource infrastructure with the `obtain_resource` function. Fully implemented: - DiskImageResource - BinaryResource - KernelResource - BootloaderResource - FileResource - DirectoryResource Partially implemented: - SimpointResource - CheckpointResource While the schema of the resource.json file has changed, efforts have been made to ensure backwards compatibility is maintained during this transition. Tests are included in this commit to verify this feature works as expected. **Note:** The Simpoint tests are disabled in this commit, to be reenabled when Simpoint resource specialization is fully incorporated here: https://gem5-review.googlesource.com/c/public/gem5/+/67339 Change-Id: I77277ecaffc7abc86db08526aacc0b606ef04fe8 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67175 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Bobby Bruce <bbruce@ucdavis.edu> Maintainer: Bobby Bruce <bbruce@ucdavis.edu>
100 lines
3.7 KiB
JSON
100 lines
3.7 KiB
JSON
|
|
{
|
|
"version" : "develop",
|
|
"url_base" : "http://dist.gem5.org/dist/v22-1",
|
|
"previous-versions" : {
|
|
"develop" : "https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/develop/resources.json?format=TEXT",
|
|
"21.2" : "http://resources.gem5.org/prev-resources-json/resources-21-2.json"
|
|
},
|
|
"resources": [
|
|
{
|
|
"type" : "kernel",
|
|
"name" : "kernel-example",
|
|
"documentation" : "kernel-example documentation.",
|
|
"architecture" : "RISCV",
|
|
"is_zipped" : false,
|
|
"md5sum" : "60a53c7d47d7057436bf4b9df707a841",
|
|
"url" : "{url_base}/kernels/x86/static/vmlinux-5.4.49",
|
|
"source" : "src/linux-kernel"
|
|
},
|
|
{
|
|
"type" : "disk-image",
|
|
"name" : "disk-image-example",
|
|
"documentation" : "disk-image documentation.",
|
|
"architecture" : "X86",
|
|
"is_zipped" : true,
|
|
"md5sum" : "90e363abf0ddf22eefa2c7c5c9391c49",
|
|
"url" : "{url_base}/images/x86/ubuntu-18-04/x86-ubuntu.img.gz",
|
|
"source" : "src/x86-ubuntu",
|
|
"root_partition": "1"
|
|
},
|
|
{
|
|
"type" : "binary",
|
|
"name" : "binary-example",
|
|
"documentation" : "binary-example documentation.",
|
|
"architecture" : "ARM",
|
|
"is_zipped" : false,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url" : "{url_base}/test-progs/hello/bin/arm/linux/hello64-static",
|
|
"source" : "src/simple"
|
|
},
|
|
{
|
|
"type" : "bootloader",
|
|
"name" : "bootloader-example",
|
|
"documentation" : "bootloader documentation.",
|
|
"is_zipped" : false,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url" : "{url_base}/test-progs/hello/bin/arm/linux/hello64-static"
|
|
},
|
|
{
|
|
"type" : "checkpoint",
|
|
"name" : "checkpoint-example",
|
|
"documentation" : "checkpoint-example documentation.",
|
|
"architecture": "RISCV",
|
|
"is_zipped" : false,
|
|
"md5sum" : "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source" : null,
|
|
"is_tar_archive" : true,
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
},
|
|
{
|
|
"type" : "git",
|
|
"name" : "git-example",
|
|
"documentation" : null,
|
|
"is_zipped" : false,
|
|
"is_tar_archive" : true,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
},
|
|
{
|
|
"type" : "file",
|
|
"name" : "file-example",
|
|
"documentation" : null,
|
|
"is_zipped" : false,
|
|
"md5sum" : "71b2cb004fe2cda4556f0b1a38638af6",
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar",
|
|
"source" : null
|
|
},
|
|
{
|
|
"type" : "directory",
|
|
"name" : "directory-example",
|
|
"documentation" : "directory-example documentation.",
|
|
"is_zipped" : false,
|
|
"md5sum" : "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source" : null,
|
|
"is_tar_archive" : true,
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
},
|
|
{
|
|
"type" : "simpoint",
|
|
"name" : "simpoint-example",
|
|
"documentation" : "simpoint documentation.",
|
|
"is_zipped" : false,
|
|
"md5sum" : "3a57c1bb1077176c4587b8a3bf4f8ace",
|
|
"source" : null,
|
|
"is_tar_archive" : true,
|
|
"url": "{url_base}/checkpoints/riscv-hello-example-checkpoint.tar"
|
|
}
|
|
]
|
|
}
|