diff mbox series

[2/2] systemd support: travis integration

Message ID 20170921070234.7865-2-christian.storm@siemens.com
State Accepted
Headers show
Series None | expand

Commit Message

Storm, Christian Sept. 21, 2017, 7:02 a.m. UTC
Add a dependency on libsystemd-daemon{0,-dev} to travis's
setup and do a systemd-enabled configuration file compile.

Bend trusty's rusty systemd version to mimic more current
ones having a libsystemd.so.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 .travis.yml                    |  4 ++++
 configs/with_systemd_defconfig | 20 ++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 configs/with_systemd_defconfig
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index e73ace5..203b785 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,6 +19,8 @@  before_install:
     - sudo apt-get install -y uuid
     - sudo apt-get install -y uuid-dev
     - sudo apt-get install -y liblzo2-dev
+    - sudo apt-get install -y libsystemd-daemon-dev
+    - sudo apt-get install -y libsystemd-daemon0
 
 script:
     - sudo mkdir -p /usr/local/lib
@@ -42,4 +44,6 @@  script:
     - make env
     - sudo install -m 644 tools/env/lib.a /usr/local/lib/libubootenv.a
     - cd ..
+    # Accommodate to trusty's rusty systemd version
+    - sudo ln -sf /lib/x86_64-linux-gnu/libsystemd-daemon.so.0 /lib/x86_64-linux-gnu/libsystemd.so
     - for i in configs/*;do echo $i;make `basename $i` && make || exit 1;done
diff --git a/configs/with_systemd_defconfig b/configs/with_systemd_defconfig
new file mode 100644
index 0000000..36b86d7
--- /dev/null
+++ b/configs/with_systemd_defconfig
@@ -0,0 +1,20 @@ 
+CONFIG_HW_COMPATIBILITY=y
+# CONFIG_MTD is not set
+CONFIG_LUAPKG="lua5.2"
+CONFIG_EXTRA_CFLAGS="-g"
+CONFIG_BOOTLOADER_NONE=y
+CONFIG_DOWNLOAD=y
+CONFIG_SIGNED_IMAGES=y
+CONFIG_ENCRYPTED_IMAGES=y
+CONFIG_SURICATTA_STATE_CHOICE_BOOTLOADER=y
+CONFIG_SYSTEMD=y
+CONFIG_WEBSERVER=y
+CONFIG_MONGOOSE=y
+CONFIG_MONGOOSESSL=y
+CONFIG_LUAEXTERNAL=y
+CONFIG_RAW=y
+CONFIG_LUASCRIPTHANDLER=y
+CONFIG_SHELLSCRIPTHANDLER=y
+CONFIG_HANDLER_IN_LUA=y
+CONFIG_ARCHIVE=y
+CONFIG_REMOTE_HANDLER=y