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:
parent
df95c6ca83
commit
473a959ec5
10
pkg/libsocketcan/Kconfig
Normal file
10
pkg/libsocketcan/Kconfig
Normal 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
|
9
pkg/libsocketcan/Makefile
Normal file
9
pkg/libsocketcan/Makefile
Normal 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)
|
1
pkg/libsocketcan/Makefile.include
Normal file
1
pkg/libsocketcan/Makefile.include
Normal file
@ -0,0 +1 @@
|
||||
NATIVEINCLUDES += -I"$(PKGDIRBASE)/libsocketcan/include"
|
9
pkg/libsocketcan/Makefile.libsocketcan
Normal file
9
pkg/libsocketcan/Makefile.libsocketcan
Normal 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
16
pkg/libsocketcan/doc.txt
Normal 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
|
||||
*/
|
Loading…
Reference in New Issue
Block a user