2 # Copyright (C) 2017 Yegor Yefremov <yegorslists@googlemail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=https
://github.com
/jackmitch
/libsoc.git
15 PKG_MIRROR_HASH
:=bdfaace3d59da30c4aa5ef78b5e235b5e9c41cd56867e04cb0acefc4dcd62d33
16 PKG_SOURCE_DATE
:=2016-12-22
17 PKG_SOURCE_VERSION
:=5b788d4d558a78c52e6cfe97325e4564b307a3a0
19 PKG_MAINTAINER
:=Yegor Yefremov
<yegorslists@googlemail.com
>
21 PKG_LICENSE_FILES
:=LICENCE
27 include $(INCLUDE_DIR
)/package.mk
34 URL
:=https
://github.com
/jackmitch
/libsoc
37 define Package
/libsoc
/description
38 libsoc
: C library for interfacing with common SoC peripherals through
39 generic kernel interfaces
47 define Build
/InstallDev
48 $(INSTALL_DIR
) $(1)/usr
/include
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_board.h
$(1)/usr
/include/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_conffile.h
$(1)/usr
/include/
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_debug.h
$(1)/usr
/include/
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_gpio.h
$(1)/usr
/include/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_i2c.h
$(1)/usr
/include/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_pwm.h
$(1)/usr
/include/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libsoc_spi.h
$(1)/usr
/include/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsoc.
{a
,so
*} $(1)/usr
/lib
/
58 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libsoc.
pc $(1)/usr
/lib
/pkgconfig
62 define Package
/libsoc
/install
63 $(INSTALL_DIR
) $(1)/usr
/lib
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsoc.so.
* $(1)/usr
/lib
/
67 $(eval
$(call BuildPackage
,libsoc
))