diff options
author | Anton Gerasimov <anton@advancedtelematic.com> | 2017-04-25 15:21:07 +0200 |
---|---|---|
committer | Anton Gerasimov <anton@advancedtelematic.com> | 2017-04-26 11:04:39 +0200 |
commit | 4d610e9f230dd23589b18588446c2368f3a99446 (patch) | |
tree | 4c2f39cc49525698ef8197646bd652db270df8b8 /conf/distro | |
parent | 4ebfc44b3eff288b8cc2f6b2b4251159cbeab14b (diff) | |
download | meta-updater-4d610e9f230dd23589b18588446c2368f3a99446.tar.gz |
Replace includes with bblcasses
They are more flexible and allow tricks like conditionally inheriting
machine-related classes from the main one which makes things easier
for external users like AGL
Diffstat (limited to 'conf/distro')
-rw-r--r-- | conf/distro/poky-sota-systemd.conf | 2 | ||||
-rw-r--r-- | conf/distro/poky-sota.conf | 2 | ||||
-rw-r--r-- | conf/distro/sota.conf.inc | 25 |
3 files changed, 2 insertions, 27 deletions
diff --git a/conf/distro/poky-sota-systemd.conf b/conf/distro/poky-sota-systemd.conf index 85744ea..e6f43f7 100644 --- a/conf/distro/poky-sota-systemd.conf +++ b/conf/distro/poky-sota-systemd.conf | |||
@@ -1,5 +1,4 @@ | |||
1 | require conf/distro/poky.conf | 1 | require conf/distro/poky.conf |
2 | require conf/distro/sota.conf.inc | ||
3 | 2 | ||
4 | DISTRO = "poky-sota" | 3 | DISTRO = "poky-sota" |
5 | DISTRO_NAME = "OTA-enabled Linux" | 4 | DISTRO_NAME = "OTA-enabled Linux" |
@@ -9,4 +8,5 @@ DISTRO_CODENAME = "sota" | |||
9 | DISTRO_FEATURES_append = " systemd" | 8 | DISTRO_FEATURES_append = " systemd" |
10 | VIRTUAL-RUNTIME_init_manager = "systemd" | 9 | VIRTUAL-RUNTIME_init_manager = "systemd" |
11 | 10 | ||
11 | INHERIT += " sota" | ||
12 | IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" | 12 | IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" |
diff --git a/conf/distro/poky-sota.conf b/conf/distro/poky-sota.conf index 2bbc62b..6972a94 100644 --- a/conf/distro/poky-sota.conf +++ b/conf/distro/poky-sota.conf | |||
@@ -1,9 +1,9 @@ | |||
1 | require conf/distro/poky.conf | 1 | require conf/distro/poky.conf |
2 | require conf/distro/sota.conf.inc | ||
3 | 2 | ||
4 | DISTRO = "poky-sota" | 3 | DISTRO = "poky-sota" |
5 | DISTRO_NAME = "OTA-enabled Linux" | 4 | DISTRO_NAME = "OTA-enabled Linux" |
6 | DISTRO_VERSION = "1.0" | 5 | DISTRO_VERSION = "1.0" |
7 | DISTRO_CODENAME = "sota" | 6 | DISTRO_CODENAME = "sota" |
8 | 7 | ||
8 | INHERIT += " sota" | ||
9 | IMAGE_INSTALL_append = " connman connman-client" | 9 | IMAGE_INSTALL_append = " connman connman-client" |
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc deleted file mode 100644 index 20946a6..0000000 --- a/conf/distro/sota.conf.inc +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | DISTRO_FEATURES_append = " sota" | ||
2 | OVERRIDES .= ":sota" | ||
3 | |||
4 | IMAGE_INSTALL_append = " ostree os-release" | ||
5 | |||
6 | # live image for OSTree-enabled systems | ||
7 | IMAGE_CLASSES += "image_types_ostree image_types_ota" | ||
8 | IMAGE_FSTYPES += "ostreepush otaimg" | ||
9 | |||
10 | # if don't build wic image unless IMAGE_BOOT_FILES is set. Prevents build from failing | ||
11 | # on machines that don't support updater yet | ||
12 | IMAGE_FSTYPES += "${@' wic' if (d.getVar("IMAGE_BOOT_FILES", True)) else ''}" | ||
13 | WKS_FILE ?= "sdimage-sota.wks" | ||
14 | do_image_wic[depends] += "${IMAGE_BASENAME}:do_image_otaimg" | ||
15 | |||
16 | EXTRA_IMAGEDEPENDS += " parted-native mtools-native dosfstools-native" | ||
17 | |||
18 | # Please redefine OSTREE_REPO in order to have a persistent OSTree repo | ||
19 | OSTREE_REPO ?= "${DEPLOY_DIR_IMAGE}/ostree_repo" | ||
20 | OSTREE_BRANCHNAME ?= "ota-${MACHINE}" | ||
21 | OSTREE_OSNAME ?= "poky" | ||
22 | OSTREE_INITRAMFS_IMAGE ?= "initramfs-ostree-image" | ||
23 | |||
24 | # Prelinking increases the size of downloads and causes build errors | ||
25 | USER_CLASSES_remove = "image-prelink" | ||