2 # Copyright (C) 2019-2020 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=bcm27xx-userland
11 PKG_VERSION
:=96a7334ae9d5fc9db7ac92e59852377df63f1848
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/raspberrypi
/userland
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=557ee8390de5db1ed90386c1ba0221e7f6f9dd87e858a00a34be3b1f9ede193f
20 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
21 PKG_LICENSE
:=BSD-3-Clause
22 PKG_LICENSE_FILES
:=LICENCE
25 CMAKE_OPTIONS
+=-DVMCS_INSTALL_PREFIX
=/usr
27 ifeq ($(ARCH
),aarch64
)
28 CMAKE_OPTIONS
+=-DARM64
=ON
30 CMAKE_OPTIONS
+=-DARM64
=OFF
33 include $(INCLUDE_DIR
)/package.mk
34 include $(INCLUDE_DIR
)/cmake.mk
36 TAR_OPTIONS
:=--strip-components
1 $(TAR_OPTIONS
)
37 TAR_CMD
=$(HOST_TAR
) -C
$(1) $(TAR_OPTIONS
)
39 define Package
/bcm27xx-userland
42 DEPENDS
:=@TARGET_bcm27xx
43 TITLE
:=BCM27xx userland tools
46 define Package
/bcm27xx-userland
/description
47 BCM27xx userland tools including vcgencmd and tvservice.
50 define Package
/bcm27xx-userland-dev
54 DEPENDS
:=@TARGET_bcm27xx
+bcm27xx-userland
55 TITLE
:=Development files of BCM27xx userland tools
58 define Package
/bcm27xx-userland-dev
/description
59 This package contains the header and static libraries of
60 the BCM27xx userland tools.
63 define Package
/bcm27xx-userland
/install
64 $(INSTALL_DIR
) $(1)/usr
/bin
65 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dtmerge
$(1)/usr
/bin
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dtparam
$(1)/usr
/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dtoverlay
$(1)/usr
/bin
68 ifneq ($(ARCH
),aarch64
)
69 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspistill
$(1)/usr
/bin
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspivid
$(1)/usr
/bin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspividyuv
$(1)/usr
/bin
72 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspiyuv
$(1)/usr
/bin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tvservice
$(1)/usr
/bin
75 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vcgencmd
$(1)/usr
/bin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vcmailbox
$(1)/usr
/bin
78 $(INSTALL_DIR
) $(1)/usr
/lib
/
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/usr
/lib
/
80 ifneq ($(ARCH
),aarch64
)
81 $(INSTALL_DIR
) $(1)/usr
/lib
/plugins
82 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/plugins
/ $(1)/usr
/lib
/
86 define Package
/bcm27xx-userland-dev
/install
87 $(INSTALL_DIR
) $(1)/usr
/include
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ $(1)/usr
/
90 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
$(1)/usr
/lib
/
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.a
$(1)/usr
/lib
/
95 $(eval
$(call BuildPackage
,bcm27xx-userland
))
96 $(eval
$(call BuildPackage
,bcm27xx-userland-dev
))