configs: add a test config for ucfw handler
diff mbox series

Message ID 1560082552-23455-1-git-send-email-pjtexier@koncepto.io
State Accepted
Headers show
Series
  • configs: add a test config for ucfw handler
Related show

Commit Message

'Pierre-Jean Texier' via swupdate June 9, 2019, 12:15 p.m. UTC
This commit allows to test ucfw handler with Travis CI.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---

Travis build : https://travis-ci.com/bdx-iot/swupdate/builds/114861216

 .travis.yml                 | 11 +++++++++++
 configs/with_ucfw_defconfig | 22 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
 create mode 100644 configs/with_ucfw_defconfig

Comments

Stefano Babic June 10, 2019, 10:26 a.m. UTC | #1
On 09/06/19 14:15, 'Pierre-Jean Texier' via swupdate wrote:
> This commit allows to test ucfw handler with Travis CI.
> 
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> ---
> 
> Travis build : https://travis-ci.com/bdx-iot/swupdate/builds/114861216
> 
>  .travis.yml                 | 11 +++++++++++
>  configs/with_ucfw_defconfig | 22 ++++++++++++++++++++++
>  2 files changed, 33 insertions(+)
>  create mode 100644 configs/with_ucfw_defconfig
> 
> diff --git a/.travis.yml b/.travis.yml
> index 04c5528..59d3776 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -25,6 +25,9 @@ before_install:
>      - sudo apt-get install -y librsync1
>      - sudo apt-get install -y librsync-dev
>      - sudo apt-get install -y doxygen
> +    - sudo apt-get install -y graphviz
> +    - sudo apt-get install -y autoconf-archive
> +    - sudo apt-get install -y linux-headers-$(uname -r)
>  
>  script:
>      - sudo ln -sf /usr/lib/x86_64-linux-gnu/pkgconfig/lua5.2.pc /usr/lib/x86_64-linux-gnu/pkgconfig/lua.pc
> @@ -57,6 +60,14 @@ script:
>      - sudo install -m 755 -d /usr/include/efibootguard
>      - sudo install -m 644 include/ebgenv.h /usr/include/efibootguard/ebgenv.h
>      - cd ..
> +    - git clone https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
> +    - cd libgpiod
> +    - mkdir -p include/linux
> +    - cp /usr/src/linux-headers-$(uname -r)/include/linux/compiler_types.h include/linux/.
> +    - ./autogen.sh --prefix=/usr/local CFLAGS="-I/usr/src/linux-headers-$(uname -r)/include/uapi -Iinclude"
> +    - make
> +    - sudo make install
> +    - 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_ucfw_defconfig b/configs/with_ucfw_defconfig
> new file mode 100644
> index 0000000..6ab9ef5
> --- /dev/null
> +++ b/configs/with_ucfw_defconfig
> @@ -0,0 +1,22 @@
> +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_HASH_VERIFY=y
> +CONFIG_ENCRYPTED_IMAGES=y
> +CONFIG_SURICATTA=y
> +CONFIG_SURICATTA_SSL=y
> +CONFIG_WEBSERVER=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
> +CONFIG_SWUFORWARDER_HANDLER=y
> +CONFIG_BOOTLOADERHANDLER=y
> +CONFIG_UCFWHANDLER=y
> 

Applied to -master, thanks !

Best regards,
Stefano Babic

Patch
diff mbox series

diff --git a/.travis.yml b/.travis.yml
index 04c5528..59d3776 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,6 +25,9 @@  before_install:
     - sudo apt-get install -y librsync1
     - sudo apt-get install -y librsync-dev
     - sudo apt-get install -y doxygen
+    - sudo apt-get install -y graphviz
+    - sudo apt-get install -y autoconf-archive
+    - sudo apt-get install -y linux-headers-$(uname -r)
 
 script:
     - sudo ln -sf /usr/lib/x86_64-linux-gnu/pkgconfig/lua5.2.pc /usr/lib/x86_64-linux-gnu/pkgconfig/lua.pc
@@ -57,6 +60,14 @@  script:
     - sudo install -m 755 -d /usr/include/efibootguard
     - sudo install -m 644 include/ebgenv.h /usr/include/efibootguard/ebgenv.h
     - cd ..
+    - git clone https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
+    - cd libgpiod
+    - mkdir -p include/linux
+    - cp /usr/src/linux-headers-$(uname -r)/include/linux/compiler_types.h include/linux/.
+    - ./autogen.sh --prefix=/usr/local CFLAGS="-I/usr/src/linux-headers-$(uname -r)/include/uapi -Iinclude"
+    - make
+    - sudo make install
+    - 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_ucfw_defconfig b/configs/with_ucfw_defconfig
new file mode 100644
index 0000000..6ab9ef5
--- /dev/null
+++ b/configs/with_ucfw_defconfig
@@ -0,0 +1,22 @@ 
+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_HASH_VERIFY=y
+CONFIG_ENCRYPTED_IMAGES=y
+CONFIG_SURICATTA=y
+CONFIG_SURICATTA_SSL=y
+CONFIG_WEBSERVER=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
+CONFIG_SWUFORWARDER_HANDLER=y
+CONFIG_BOOTLOADERHANDLER=y
+CONFIG_UCFWHANDLER=y