diff mbox series

Fix build on travis-ci

Message ID 1504606609-5628-1-git-send-email-sbabic@denx.de
State Accepted
Delegated to: Stefano Babic
Headers show
Series Fix build on travis-ci | expand

Commit Message

Stefano Babic Sept. 5, 2017, 10:16 a.m. UTC
Building SWUpdate requires some external libraries from mtd-utils and
U-Boot. They are not part of any distro and must be built from hand.
Put build information into travis.yml to load and build both mtd-utils
and U-Boot, and uses the "sandbox" target to build the U-Boot utilities.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 .travis.yml | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

Comments

Storm, Christian Sept. 5, 2017, 10:52 a.m. UTC | #1
> Building SWUpdate requires some external libraries from mtd-utils and
> U-Boot. They are not part of any distro and must be built from hand.
> Put build information into travis.yml to load and build both mtd-utils
> and U-Boot, and uses the "sandbox" target to build the U-Boot utilities.
> 
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  .travis.yml | 30 +++++++++++++++++++++++++++++-
>  1 file changed, 29 insertions(+), 1 deletion(-)
> 
> diff --git a/.travis.yml b/.travis.yml
> index f1dfb06..4a32c72 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -6,6 +6,8 @@ language: c
>  
>  before_install:
>      - sudo apt-get -qq update
> +    - sudo apt-get install -y build-essential
> +    - sudo apt-get install -y automake
>      - sudo apt-get install -y libzmq3-dev
>      - sudo apt-get install -y libcurl4-openssl-dev
>      - sudo apt-get install -y liblua5.2-dev
> @@ -13,5 +15,31 @@ before_install:
>      - sudo apt-get install -y libarchive-dev
>      - sudo apt-get install -y libjson0-dev
>      - sudo apt-get install -y zlib1g-dev
> +    - sudo apt-get install -y git
> +    - sudo apt-get install -y uuid
> +    - sudo apt-get install -y uuid-dev
> +    - sudo apt-get install -y liblzo2-dev
>  
> -script: for i in configs/*;do echo $i;make `basename $i` && make;done
> +script:
> +    - sudo mkdir -p /usr/local/lib
> +    - sudo mkdir -p /usr/local/include
> +    - sudo mkdir -p /usr/local/include/mtd
> +    - git clone git://git.infradead.org/mtd-utils.git
> +    - cd mtd-utils
> +    - git checkout -b tmp v2.0.0
> +    - ./autogen.sh
> +    - ./configure
> +    - make
> +    - sudo install -m 644 include/libubi.h /usr/local/include/mtd
> +    - sudo install -m 644 include/libmtd.h /usr/local/include/mtd
> +    - sudo install -m 644 include/mtd/ubi-media.h /usr/local/include/mtd
> +    - sudo install -m 644 *.a /usr/local/lib
> +    - cd ..
> +    - git clone git://git.denx.de/u-boot
> +    - cd u-boot
> +    - git checkout -b tmp v2017.07
> +    - make sandbox_defconfig
> +    - make env
> +    - sudo install -m 644 tools/env/lib.a /usr/local/lib/libubootenv.a
> +    - cd ..
> +    - for i in configs/*;do echo $i;make `basename $i` && make;done
> -- 
> 2.7.4
> 

Tested-by: Christian Storm <christian.storm@siemens.com>

Perfect, thank you! Now onto the badges... :)


Kind regards,
   Christian
Stefano Babic Sept. 5, 2017, 11:32 a.m. UTC | #2
On 05/09/2017 12:52, Christian Storm wrote:
>> Building SWUpdate requires some external libraries from mtd-utils and
>> U-Boot. They are not part of any distro and must be built from hand.
>> Put build information into travis.yml to load and build both mtd-utils
>> and U-Boot, and uses the "sandbox" target to build the U-Boot utilities.
>>
>> Signed-off-by: Stefano Babic <sbabic@denx.de>
>> ---
>>  .travis.yml | 30 +++++++++++++++++++++++++++++-
>>  1 file changed, 29 insertions(+), 1 deletion(-)
>>
>> diff --git a/.travis.yml b/.travis.yml
>> index f1dfb06..4a32c72 100644
>> --- a/.travis.yml
>> +++ b/.travis.yml
>> @@ -6,6 +6,8 @@ language: c
>>  
>>  before_install:
>>      - sudo apt-get -qq update
>> +    - sudo apt-get install -y build-essential
>> +    - sudo apt-get install -y automake
>>      - sudo apt-get install -y libzmq3-dev
>>      - sudo apt-get install -y libcurl4-openssl-dev
>>      - sudo apt-get install -y liblua5.2-dev
>> @@ -13,5 +15,31 @@ before_install:
>>      - sudo apt-get install -y libarchive-dev
>>      - sudo apt-get install -y libjson0-dev
>>      - sudo apt-get install -y zlib1g-dev
>> +    - sudo apt-get install -y git
>> +    - sudo apt-get install -y uuid
>> +    - sudo apt-get install -y uuid-dev
>> +    - sudo apt-get install -y liblzo2-dev
>>  
>> -script: for i in configs/*;do echo $i;make `basename $i` && make;done
>> +script:
>> +    - sudo mkdir -p /usr/local/lib
>> +    - sudo mkdir -p /usr/local/include
>> +    - sudo mkdir -p /usr/local/include/mtd
>> +    - git clone git://git.infradead.org/mtd-utils.git
>> +    - cd mtd-utils
>> +    - git checkout -b tmp v2.0.0
>> +    - ./autogen.sh
>> +    - ./configure
>> +    - make
>> +    - sudo install -m 644 include/libubi.h /usr/local/include/mtd
>> +    - sudo install -m 644 include/libmtd.h /usr/local/include/mtd
>> +    - sudo install -m 644 include/mtd/ubi-media.h /usr/local/include/mtd
>> +    - sudo install -m 644 *.a /usr/local/lib
>> +    - cd ..
>> +    - git clone git://git.denx.de/u-boot
>> +    - cd u-boot
>> +    - git checkout -b tmp v2017.07
>> +    - make sandbox_defconfig
>> +    - make env
>> +    - sudo install -m 644 tools/env/lib.a /usr/local/lib/libubootenv.a
>> +    - cd ..
>> +    - for i in configs/*;do echo $i;make `basename $i` && make;done
>> -- 
>> 2.7.4
>>
> 
> Tested-by: Christian Storm <christian.storm@siemens.com>
> 
> Perfect, thank you! Now onto the badges... :)

ok, I applied this, it is already on -master.

Regards,
Stefano
diff mbox series

Patch

diff --git a/.travis.yml b/.travis.yml
index f1dfb06..4a32c72 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,6 +6,8 @@  language: c
 
 before_install:
     - sudo apt-get -qq update
+    - sudo apt-get install -y build-essential
+    - sudo apt-get install -y automake
     - sudo apt-get install -y libzmq3-dev
     - sudo apt-get install -y libcurl4-openssl-dev
     - sudo apt-get install -y liblua5.2-dev
@@ -13,5 +15,31 @@  before_install:
     - sudo apt-get install -y libarchive-dev
     - sudo apt-get install -y libjson0-dev
     - sudo apt-get install -y zlib1g-dev
+    - sudo apt-get install -y git
+    - sudo apt-get install -y uuid
+    - sudo apt-get install -y uuid-dev
+    - sudo apt-get install -y liblzo2-dev
 
-script: for i in configs/*;do echo $i;make `basename $i` && make;done
+script:
+    - sudo mkdir -p /usr/local/lib
+    - sudo mkdir -p /usr/local/include
+    - sudo mkdir -p /usr/local/include/mtd
+    - git clone git://git.infradead.org/mtd-utils.git
+    - cd mtd-utils
+    - git checkout -b tmp v2.0.0
+    - ./autogen.sh
+    - ./configure
+    - make
+    - sudo install -m 644 include/libubi.h /usr/local/include/mtd
+    - sudo install -m 644 include/libmtd.h /usr/local/include/mtd
+    - sudo install -m 644 include/mtd/ubi-media.h /usr/local/include/mtd
+    - sudo install -m 644 *.a /usr/local/lib
+    - cd ..
+    - git clone git://git.denx.de/u-boot
+    - cd u-boot
+    - git checkout -b tmp v2017.07
+    - make sandbox_defconfig
+    - make env
+    - sudo install -m 644 tools/env/lib.a /usr/local/lib/libubootenv.a
+    - cd ..
+    - for i in configs/*;do echo $i;make `basename $i` && make;done