diff options
| author | OYTIS <tossel@gmail.com> | 2017-05-23 18:10:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-23 18:10:03 +0200 |
| commit | f2ee287a1bc6b73773d2ca2a62f8d53f6083da50 (patch) | |
| tree | 4394e82f2d4bed4262c4239dcfbafca24f0b41b7 | |
| parent | 02e389856740ed145756f056a9f45bd6a797ce29 (diff) | |
| parent | a446bf18f0ef68a1a39fbf51d79cec2fa8bb4bf2 (diff) | |
| download | meta-updater-f2ee287a1bc6b73773d2ca2a62f8d53f6083da50.tar.gz | |
Merge pull request #65 from advancedtelematic/feat/split-out-distro-inc
Extract common distro configuration into sota.conf.inc
| -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" | ||
