Skip to content

Commit

Permalink
Updated Travis CI scripts. Now the minimum supported kernel version i…
Browse files Browse the repository at this point in the history
…s 4.4.
  • Loading branch information
hipersayanX committed Oct 3, 2020
1 parent ce8c98e commit 4f6548e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 58 deletions.
63 changes: 20 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,9 @@ matrix:
compiler: gcc
env:
- SYSTEM_VERSION=xenial
- REPOSITORY=v3.16.85
- KERNEL_VERSION=3.16.85-031685
- KERNEL_VERSION_C=202006111533
- export USE_QEMU=1
- os: linux
sudo: required
services:
- docker
compiler: gcc
env:
- SYSTEM_VERSION=xenial
- REPOSITORY=v4.4.227
- KERNEL_VERSION=4.4.227-0404227
- KERNEL_VERSION_C=202006110834
- REPOSITORY=v4.4.238
- KERNEL_VERSION=4.4.238-0404238
- KERNEL_VERSION_C=202010010635
- export USE_QEMU=1
- os: linux
sudo: required
Expand All @@ -31,9 +20,9 @@ matrix:
compiler: gcc
env:
- SYSTEM_VERSION=bionic
- REPOSITORY=v4.9.227
- KERNEL_VERSION=4.9.227-0409227
- KERNEL_VERSION_C=202006110433
- REPOSITORY=v4.9.238
- KERNEL_VERSION=4.9.238-0409238
- KERNEL_VERSION_C=202010011931
- export USE_QEMU=1
- os: linux
sudo: required
Expand All @@ -42,9 +31,9 @@ matrix:
compiler: gcc
env:
- SYSTEM_VERSION=bionic
- REPOSITORY=v4.14.184
- KERNEL_VERSION=4.14.184-0414184
- KERNEL_VERSION_C=202006110833
- REPOSITORY=v4.14.200
- KERNEL_VERSION=4.14.200-0414200
- KERNEL_VERSION_C=202010011243
- UNSIGNED_IMG=1
- NEED_MODULES=1
- export USE_QEMU=1
Expand All @@ -54,22 +43,10 @@ matrix:
- docker
compiler: gcc
env:
- SYSTEM_VERSION=disco
- REPOSITORY=v4.19.128
- KERNEL_VERSION=4.19.128-0419128
- KERNEL_VERSION_C=202006101632
- UNSIGNED_IMG=1
- NEED_MODULES=1
- os: linux
sudo: required
services:
- docker
compiler: gcc
env:
- SYSTEM_VERSION=groovy
- REPOSITORY=v5.4.46
- KERNEL_VERSION=5.4.46-050446
- KERNEL_VERSION_C=202006101938
- SYSTEM_VERSION=focal
- REPOSITORY=v4.19.149
- KERNEL_VERSION=4.19.149-0419149
- KERNEL_VERSION_C=202010011241
- UNSIGNED_IMG=1
- NEED_MODULES=1
- os: linux
Expand All @@ -78,10 +55,10 @@ matrix:
- docker
compiler: gcc
env:
- SYSTEM_VERSION=groovy
- REPOSITORY=v5.6.18
- KERNEL_VERSION=5.6.18-050618
- KERNEL_VERSION_C=202006101539
- SYSTEM_VERSION=focal
- REPOSITORY=v5.4.69
- KERNEL_VERSION=5.4.69-050469
- KERNEL_VERSION_C=202010010842
- UNSIGNED_IMG=1
- NEED_MODULES=1
- os: linux
Expand All @@ -91,9 +68,9 @@ matrix:
compiler: gcc
env:
- SYSTEM_VERSION=groovy
- REPOSITORY=v5.7.2
- KERNEL_VERSION=5.7.2-050702
- KERNEL_VERSION_C=202006101934
- REPOSITORY=v5.8.13
- KERNEL_VERSION=5.8.13-050813
- KERNEL_VERSION_C=202010011235
- UNSIGNED_IMG=1
- NEED_MODULES=1

Expand Down
4 changes: 0 additions & 4 deletions src/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
#include "list.h"
#include "object.h"

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
#define DEFAULT_COLORSPACE V4L2_COLORSPACE_SRGB
#else
#define DEFAULT_COLORSPACE V4L2_COLORSPACE_RAW
#endif

struct akvcam_format
{
Expand Down
4 changes: 0 additions & 4 deletions src/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@
#include "node.h"
#include "object.h"

#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
#define DEFAULT_COLORSPACE V4L2_COLORSPACE_SRGB
#else
#define DEFAULT_COLORSPACE V4L2_COLORSPACE_RAW
#endif

#define AKVCAM_HANDLER(cmd, proc, arg_type) \
{cmd, (akvcam_proc_t) proc, sizeof(arg_type)}
Expand Down
7 changes: 0 additions & 7 deletions src/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@

#include <linux/version.h>

#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0)
#define LOGLEVEL_ERR 3
#define LOGLEVEL_WARNING 4
#define LOGLEVEL_INFO 6
#define LOGLEVEL_DEBUG 7
#endif

#define akpr_file_name (strrchr(__FILE__, '/') + 1)
#define akpr_log_format "[akvcam] %s(%d): "

Expand Down

0 comments on commit 4f6548e

Please sign in to comment.