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
:=c4fd1b8986c6d6d4ae5cd51e65a8bbeb495dfa4e
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
:=ab8a5b27c34cf1b97de87b895448a6355229f73b679866b47c51a723273cc8ae
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
44 DEFAULT
:=y if TARGET_bcm27xx
47 define Package
/bcm27xx-userland
/description
48 BCM27xx userland tools including vcgencmd and tvservice.
51 define Package
/bcm27xx-userland-dev
55 DEPENDS
:=@TARGET_bcm27xx
+bcm27xx-userland
56 TITLE
:=Development files of BCM27xx userland tools
59 define Package
/bcm27xx-userland-dev
/description
60 This package contains the header and static libraries of
61 the BCM27xx userland tools.
64 define Package
/bcm27xx-userland
/install
65 $(INSTALL_DIR
) $(1)/usr
/bin
66 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dtmerge
$(1)/usr
/bin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dtparam
$(1)/usr
/bin
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/dtoverlay
$(1)/usr
/bin
69 ifneq ($(ARCH
),aarch64
)
70 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspistill
$(1)/usr
/bin
71 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspivid
$(1)/usr
/bin
72 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspividyuv
$(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/raspiyuv
$(1)/usr
/bin
75 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/tvservice
$(1)/usr
/bin
76 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vcgencmd
$(1)/usr
/bin
77 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/vcmailbox
$(1)/usr
/bin
79 $(INSTALL_DIR
) $(1)/usr
/lib
/
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/usr
/lib
/
81 ifneq ($(ARCH
),aarch64
)
82 $(INSTALL_DIR
) $(1)/usr
/lib
/plugins
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/plugins
/ $(1)/usr
/lib
/
87 define Package
/bcm27xx-userland-dev
/install
88 $(INSTALL_DIR
) $(1)/usr
/include
89 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/ $(1)/usr
/
91 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
92 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
$(1)/usr
/lib
/
93 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.a
$(1)/usr
/lib
/
96 $(eval
$(call BuildPackage
,bcm27xx-userland
))
97 $(eval
$(call BuildPackage
,bcm27xx-userland-dev
))