diff options
author | Phil Wise <phil@advancedtelematic.com> | 2017-05-23 14:17:10 +0200 |
---|---|---|
committer | Phil Wise <phil@advancedtelematic.com> | 2017-05-23 15:51:06 +0200 |
commit | a446bf18f0ef68a1a39fbf51d79cec2fa8bb4bf2 (patch) | |
tree | 1a57eb6c504582692338f6868eadc4203ead5080 /conf | |
parent | 35483eef70306015b4807d066f9cb2c19af7b200 (diff) | |
download | meta-updater-a446bf18f0ef68a1a39fbf51d79cec2fa8bb4bf2.tar.gz |
Extract common distro configuration into sota.conf.inc
Pull the common lines from the poky-sota.conf and poky-sota-systemd.conf
example distributions into a separate include file that can be pulled into
other environments.
This might be by including it in a user's own custom distro, or by directly
including it in local.conf (e.g. AGL).
require conf/distro/sota.conf.inc
Diffstat (limited to 'conf')
-rw-r--r-- | conf/distro/poky-sota-systemd.conf | 6 | ||||
-rw-r--r-- | conf/distro/poky-sota.conf | 7 | ||||
-rw-r--r-- | conf/distro/sota.conf.inc | 11 |
3 files changed, 13 insertions, 11 deletions
diff --git a/conf/distro/poky-sota-systemd.conf b/conf/distro/poky-sota-systemd.conf index 62b682a..726e9f9 100644 --- a/conf/distro/poky-sota-systemd.conf +++ b/conf/distro/poky-sota-systemd.conf | |||
@@ -1,6 +1,6 @@ | |||
1 | require conf/distro/poky.conf | 1 | require conf/distro/poky.conf |
2 | 2 | ||
3 | DISTRO_FEATURES_append = " sota" | 3 | require conf/distro/sota.conf.inc |
4 | 4 | ||
5 | DISTRO = "poky-sota" | 5 | DISTRO = "poky-sota" |
6 | DISTRO_NAME = "OTA-enabled Linux" | 6 | DISTRO_NAME = "OTA-enabled Linux" |
@@ -10,8 +10,4 @@ DISTRO_CODENAME = "sota" | |||
10 | DISTRO_FEATURES_append = " systemd" | 10 | DISTRO_FEATURES_append = " systemd" |
11 | VIRTUAL-RUNTIME_init_manager = "systemd" | 11 | VIRTUAL-RUNTIME_init_manager = "systemd" |
12 | 12 | ||
13 | INHERIT_prepend = " sota" | ||
14 | IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" | 13 | IMAGE_INSTALL_append = " connman connman-client rvi-sota-client" |
15 | |||
16 | # Prelinking increases the size of downloads and causes build errors | ||
17 | USER_CLASSES_remove = "image-prelink" | ||
diff --git a/conf/distro/poky-sota.conf b/conf/distro/poky-sota.conf index c52395d..2bbc62b 100644 --- a/conf/distro/poky-sota.conf +++ b/conf/distro/poky-sota.conf | |||
@@ -1,14 +1,9 @@ | |||
1 | require conf/distro/poky.conf | 1 | require conf/distro/poky.conf |
2 | 2 | require conf/distro/sota.conf.inc | |
3 | DISTRO_FEATURES_append = " sota" | ||
4 | 3 | ||
5 | DISTRO = "poky-sota" | 4 | DISTRO = "poky-sota" |
6 | DISTRO_NAME = "OTA-enabled Linux" | 5 | DISTRO_NAME = "OTA-enabled Linux" |
7 | DISTRO_VERSION = "1.0" | 6 | DISTRO_VERSION = "1.0" |
8 | DISTRO_CODENAME = "sota" | 7 | DISTRO_CODENAME = "sota" |
9 | 8 | ||
10 | INHERIT += " sota" | ||
11 | IMAGE_INSTALL_append = " connman connman-client" | 9 | IMAGE_INSTALL_append = " connman connman-client" |
12 | |||
13 | # Prelinking increases the size of downloads and causes build errors | ||
14 | USER_CLASSES_remove = "image-prelink" | ||
diff --git a/conf/distro/sota.conf.inc b/conf/distro/sota.conf.inc new file mode 100644 index 0000000..fddd1d2 --- /dev/null +++ b/conf/distro/sota.conf.inc | |||
@@ -0,0 +1,11 @@ | |||
1 | # Common settings to enable SOTA | ||
2 | # This can be pulled into a custom distribution, or included in | ||
3 | # local.conf directly with: | ||
4 | # | ||
5 | # require conf/distro/sota.conf.inc | ||
6 | |||
7 | DISTRO_FEATURES_append = " sota" | ||
8 | INHERIT += " sota" | ||
9 | IMAGE_INSTALL_append = " aktualizr" | ||
10 | # Prelinking increases the size of downloads and causes build errors | ||
11 | USER_CLASSES_remove = "image-prelink" | ||