1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/socketcan: add to resolve i386 support on Ubuntu

Ubuntu dropped i386 support for socketcan already a while ago.
This commit is contained in:
Daniel Lockau 2022-01-18 16:52:24 +01:00
parent df95c6ca83
commit 473a959ec5
5 changed files with 45 additions and 0 deletions

10
pkg/libsocketcan/Kconfig Normal file
View File

@ -0,0 +1,10 @@
# Copyright (c) ML!PA Consulting GmbH
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config PACKAGE_LIBSOCKETCAN
bool "libsocketcan2 32bit for native Linux builds"
depends on BOARD_NATIVE

View File

@ -0,0 +1,9 @@
PKG_NAME=libsocketcan
PKG_URL=https://git.pengutronix.de/git/tools/libsocketcan
PKG_VERSION=077def398ad303043d73339112968e5112d8d7c8
PKG_LICENSE=LGPL-2.1
include $(RIOTBASE)/pkg/pkg.mk
all:
$(QQ)"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/Makefile.$(PKG_NAME)

View File

@ -0,0 +1 @@
NATIVEINCLUDES += -I"$(PKGDIRBASE)/libsocketcan/include"

View File

@ -0,0 +1,9 @@
MODULE=libsocketcan
CFLAGS += -Wno-strict-prototypes
CFLAGS += -Wno-pointer-arith
CFLAGS += -Wno-old-style-definition
SRC += libsocketcan.c
include $(RIOTBASE)/Makefile.base

16
pkg/libsocketcan/doc.txt Normal file
View File

@ -0,0 +1,16 @@
/**
* @defgroup pkg_libsocketcan Socketcan library
* @ingroup pkg
* @ingroup sys_serialization
* @brief Provides libsocketcan for native 32bit linux builds when not available otherwise
*
* # Introduction
*
* "This library allows you to control some basic functions in SocketCAN from userspace."
*
* # License
*
* Licensed under LGPL 2.1.
*
* @see https://git.pengutronix.de/cgit/tools/libsocketcan
*/