mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
16
package/c-periphery/Config.in
Normal file
16
package/c-periphery/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_C_PERIPHERY
|
||||
bool "c-periphery"
|
||||
help
|
||||
c-periphery is a set of C wrapper functions for GPIO, SPI,
|
||||
I2C, MMIO, and Serial peripheral I/O interface access in
|
||||
userspace Linux. The c-periphery wrappers simplify and
|
||||
consolidate the native Linux APIs to these
|
||||
interfaces. c-periphery is useful in embedded Linux
|
||||
environments (including BeagleBone, Raspberry Pi,
|
||||
etc. platforms) for interfacing with external
|
||||
peripherals. c-periphery is re-entrant, uses static
|
||||
allocations, has no dependencies outside the standard C
|
||||
library and Linux, compiles into a static library for easy
|
||||
integration with other projects, and is MIT licensed.
|
||||
|
||||
https://github.com/vsergeev/c-periphery
|
||||
3
package/c-periphery/c-periphery.hash
Normal file
3
package/c-periphery/c-periphery.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 50665a4f298b30e4cc8f7dbd38362fd860cc3746803d00325cb04806674e3166 c-periphery-1.1.3.tar.gz
|
||||
sha256 6b5669a90260126f0600aae98cb10fb5e219269dc9cbd0137f63927b96d5c31d LICENSE
|
||||
27
package/c-periphery/c-periphery.mk
Normal file
27
package/c-periphery/c-periphery.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# c-periphery
|
||||
#
|
||||
################################################################################
|
||||
|
||||
C_PERIPHERY_VERSION = 1.1.3
|
||||
C_PERIPHERY_SITE = $(call github,vsergeev,c-periphery,v$(C_PERIPHERY_VERSION))
|
||||
C_PERIPHERY_INSTALL_STAGING = YES
|
||||
# only a static library
|
||||
C_PERIPHERY_INSTALL_TARGET = NO
|
||||
C_PERIPHERY_LICENSE = MIT
|
||||
C_PERIPHERY_LICENSE_FILES = LICENSE
|
||||
|
||||
define C_PERIPHERY_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
# There is no 'install' rule in the Makefile, so we handle things
|
||||
# manually.
|
||||
define C_PERIPHERY_INSTALL_STAGING_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/periphery.a $(STAGING_DIR)/usr/lib/libc-periphery.a
|
||||
mkdir -p $(STAGING_DIR)/usr/include/c-periphery/
|
||||
cp -dpfr $(@D)/src/*.h $(STAGING_DIR)/usr/include/c-periphery/
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user