4f375bd1bb
Since commit "gpio: add cdev implementation"
(d0a973cca2
),
c-periphery needs linux headers >= 4.8.
The hash of the license file is updated due to an update in the
copyright year:
- Copyright (c) 2014-2016 vsergeev / Ivan (Vanya) A. Sergeev
+ Copyright (c) 2014-2019 vsergeev / Ivan (Vanya) A. Sergeev
Signed-off-by: Joris Offouga <offougajoris@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
28 lines
887 B
Makefile
28 lines
887 B
Makefile
################################################################################
|
|
#
|
|
# c-periphery
|
|
#
|
|
################################################################################
|
|
|
|
C_PERIPHERY_VERSION = 2.1.0
|
|
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))
|