From 77db53b93293d0f62faa8ff4f965a03689fdd60a Mon Sep 17 00:00:00 2001 From: Trong Nghia Nguyen Date: Sat, 5 May 2018 19:29:19 +0200 Subject: [PATCH] Re-organize contracts directory structure --- contracts/arch.sw/armel/contract.json | 12 +++++------ contracts/arch.sw/armhf/contract.json | 19 +++++------------- contracts/arch.sw/armv7hf/contract.json | 12 +++++------ contracts/arch.sw/rpi/contract.json | 12 +++++------ .../boot-external.tpl | 0 .../boot-internal.tpl | 0 .../prepare-network.tpl | 0 .../via-vab820-quad/contract.json | 20 ------------------- 8 files changed, 23 insertions(+), 52 deletions(-) rename contracts/hw.device-type/{via-vab820-quad => vab820-quad}/boot-external.tpl (100%) rename contracts/hw.device-type/{via-vab820-quad => vab820-quad}/boot-internal.tpl (100%) rename contracts/hw.device-type/{via-vab820-quad => vab820-quad}/prepare-network.tpl (100%) delete mode 100644 contracts/hw.device-type/via-vab820-quad/contract.json diff --git a/contracts/arch.sw/armel/contract.json b/contracts/arch.sw/armel/contract.json index b5cc061c..08767067 100644 --- a/contracts/arch.sw/armel/contract.json +++ b/contracts/arch.sw/armel/contract.json @@ -3,13 +3,13 @@ "version": "1", "type": "arch.sw", "name": "ARM v5", - "data": { "arch": "armel" }, + "arch": "armel", "requires": [ { - "type": "hw.device-type", - "data": { - "arch": "armel" - } + "or": [ + { "type": "hw.device-type", "arch": "armel" } + ] } - ] + ], + "variants": "" } diff --git a/contracts/arch.sw/armhf/contract.json b/contracts/arch.sw/armhf/contract.json index 39a48fd2..3b1ec147 100644 --- a/contracts/arch.sw/armhf/contract.json +++ b/contracts/arch.sw/armhf/contract.json @@ -3,23 +3,14 @@ "version": "1", "type": "arch.sw", "name": "ARM Hard Float", - "data": { "arch": "armhf" }, + "arch": "armhf", "requires": [ { "or": [ - { - "type": "hw.device-type", - "data": { - "arch": "armv7hf" - } - }, - { - "type": "hw.device-type", - "data": { - "arch": "rpi" - } - } + { "type": "hw.device-type", "arch": "armv7hf" }, + { "type": "hw.device-type", "arch": "rpi" } ] } - ] + ], + "variants": "" } diff --git a/contracts/arch.sw/armv7hf/contract.json b/contracts/arch.sw/armv7hf/contract.json index 9f907917..416f20da 100644 --- a/contracts/arch.sw/armv7hf/contract.json +++ b/contracts/arch.sw/armv7hf/contract.json @@ -3,13 +3,13 @@ "version": "1", "type": "arch.sw", "name": "ARM v7", - "data": { "arch": "armv7hf" }, + "arch": "armv7hf", "requires": [ { - "type": "hw.device-type", - "data": { - "arch": "armv7hf" - } + "or": [ + { "type": "hw.device-type", "arch": "armv7hf" } + ] } - ] + ], + "variants": "" } diff --git a/contracts/arch.sw/rpi/contract.json b/contracts/arch.sw/rpi/contract.json index 023c5c1c..67695ef5 100644 --- a/contracts/arch.sw/rpi/contract.json +++ b/contracts/arch.sw/rpi/contract.json @@ -3,13 +3,13 @@ "version": "1", "type": "arch.sw", "name": "ARM v6", - "data": { "arch": "armv6hf" }, + "arch": "armv6hf", "requires": [ { - "type": "hw.device-type", - "data": { - "arch": "rpi" - } + "or": [ + { "type": "hw.device-type", "arch": "rpi" } + ] } - ] + ], + "variants": "" } diff --git a/contracts/hw.device-type/via-vab820-quad/boot-external.tpl b/contracts/hw.device-type/vab820-quad/boot-external.tpl similarity index 100% rename from contracts/hw.device-type/via-vab820-quad/boot-external.tpl rename to contracts/hw.device-type/vab820-quad/boot-external.tpl diff --git a/contracts/hw.device-type/via-vab820-quad/boot-internal.tpl b/contracts/hw.device-type/vab820-quad/boot-internal.tpl similarity index 100% rename from contracts/hw.device-type/via-vab820-quad/boot-internal.tpl rename to contracts/hw.device-type/vab820-quad/boot-internal.tpl diff --git a/contracts/hw.device-type/via-vab820-quad/prepare-network.tpl b/contracts/hw.device-type/vab820-quad/prepare-network.tpl similarity index 100% rename from contracts/hw.device-type/via-vab820-quad/prepare-network.tpl rename to contracts/hw.device-type/vab820-quad/prepare-network.tpl diff --git a/contracts/hw.device-type/via-vab820-quad/contract.json b/contracts/hw.device-type/via-vab820-quad/contract.json deleted file mode 100644 index c7d0c4da..00000000 --- a/contracts/hw.device-type/via-vab820-quad/contract.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "slug": "via-vab820-quad", - "version": "1", - "type": "hw.device-type", - "name": "VIA vab820", - "data": { - "arch": "armv7hf", - "hdmi": true, - "led": false, - "connectivity": { - "bluetooth": true - }, - "storage": { - "internal": true - }, - "media": { - "installation": "sdcard" - } - } -}